Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
07-09-2022, 12:57 AM
#1
LQ Newbie
Registered: Jul 2022
Posts: 23
Rep:
Can you guys help me decide how to compile this make file?
Here's a little snippet, sorry I can't paste more but will do if it's necessary:
Code:
CROSS_TOOLS_DIR =
CROSS_COMPILER = mips-linux-uclibc-gnu-
EXTRA_INCLUDES = -I .
EXTRA_INCLUDES += -I component1/
EXTRA_INCLUDES += -I port/
EXTRA_INCLUDES += -I gp_driver/
EXTRA_INCLUDES += -I uart/
EXTRA_INCLUDES += -I spi_slave/
EXTRA_INCLUDES += -I network_interface/
EXTRA_INCLUDES += -I code/
EXTRA_INCLUDES += -I int/
LIBS_INCLUDES =
LDFLAGS = -lpthread
AR = $(CROSS_COMPILER)ar
Somehow the compiler I'm using is telling me this format is unrecognizable therefore it's being treated as linker script.
07-09-2022, 01:21 AM
#2
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,882
Compiler/linker has nothing to do with `Makefile`, there is a dedicated program called `make`.
In the source you have downloaded there should be a file called `Install.txt`or `Build.txt` or `ReadMe.txt` which contains the build instructions.
Last edited by NevemTeve; 07-09-2022 at 01:24 AM .
3 members found this post helpful.
07-09-2022, 05:24 AM
#3
LQ Newbie
Registered: Jul 2022
Posts: 23
Original Poster
Rep:
Quote:
Originally Posted by
NevemTeve
Compiler/linker has nothing to do with `Makefile`, there is a dedicated program called `make`.
In the source you have downloaded there should be a file called `Install.txt`or `Build.txt` or `ReadMe.txt` which contains the build instructions.
Hi it's for embedded arm system so it's cross-platform compilation.
I don't know what command to execute in order to get it to compile.
07-09-2022, 05:41 AM
#4
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,882
In the source you have downloaded there should be a file called `Install.txt`or `Build.txt` or `ReadMe.txt` which contains the build instructions.
1 members found this post helpful.
07-09-2022, 07:07 AM
#5
LQ Newbie
Registered: Jul 2022
Posts: 23
Original Poster
Rep:
Quote:
Originally Posted by
NevemTeve
In the source you have downloaded there should be a file called `Install.txt`or `Build.txt` or `ReadMe.txt` which contains the build instructions.
Hi I didn't download the source, it was given to me by my manufacturer and there are no such files...
07-09-2022, 10:12 AM
#6
Senior Member
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,786
Quote:
Originally Posted by
ClubPenguin
I don't know what command to execute in order to get it to compile.
Usually the command to run for a makefile is
make .
3 members found this post helpful.
07-09-2022, 11:33 AM
#7
Senior Member
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,003
Quote:
Originally Posted by
ClubPenguin
Hi I didn't download the source, it was given to me by my manufacturer and there are no such files...
Maybe you can tell us what you are trying to do.
The answer might be "you are up a creek without a paddle."
Ed
2 members found this post helpful.
07-09-2022, 05:37 PM
#8
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Quote:
Originally Posted by
ClubPenguin
Hi I didn't download the source, it was given to me by my manufacturer and there are no such files...
Then ask them for compile instructions. They should've given you those as well, it only makes common sense.
1 members found this post helpful.
07-09-2022, 06:08 PM
#9
LQ Newbie
Registered: Jul 2022
Posts: 23
Original Poster
Rep:
Quote:
Originally Posted by
ntubski
Usually the command to run for a makefile is make .
Thank you, but I didn't install the compiler from "official" repo with apt get, I "installed" it by placing the relevant files in /opt/ folder as instructed, and then modified the PATH variable in .bashrc.
So "make" doesn't really do anything, which is why I asked people to identify the format of this makefile.
07-09-2022, 06:10 PM
#10
LQ Newbie
Registered: Jul 2022
Posts: 23
Original Poster
Rep:
Quote:
Originally Posted by
EdGr
Maybe you can tell us what you are trying to do.
The answer might be "you are up a creek without a paddle."
Ed
To compile source code on desktop machine A for embedded industrial board machine B, using what maybe a modified version of official gcc arm compiler.
The makefile that comes with the source code should help me do the job by default but it doesn't.
07-09-2022, 06:11 PM
#11
LQ Newbie
Registered: Jul 2022
Posts: 23
Original Poster
Rep:
Quote:
Originally Posted by
rtmistler
Then ask them for compile instructions. They should've given you those as well, it only makes common sense.
They don't have a customer service department or FAE so...
07-09-2022, 06:52 PM
#12
Senior Member
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,003
I would expect an industrial controller to come with decent documentation.
Is there a configure script that you can run? A common build sequence is:
Code:
configure
make
make install
Ed
1 members found this post helpful.
07-09-2022, 06:55 PM
#13
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,250
Quote:
Originally Posted by
ntubski
Usually the command to run for a makefile is make .
Yes. What happens when you do that?
1 members found this post helpful.
07-10-2022, 12:58 AM
#14
LQ Newbie
Registered: Jul 2022
Posts: 23
Original Poster
Rep:
Quote:
Originally Posted by
EdGr
I would expect an industrial controller to come with decent documentation.
Is there a configure script that you can run? A common build sequence is:
Code:
configure
make
make install
Ed
It says make is not installed and I need to install it using such and such apt-get
07-10-2022, 12:59 AM
#15
LQ Newbie
Registered: Jul 2022
Posts: 23
Original Poster
Rep:
Quote:
Originally Posted by
dugan
Yes. What happens when you do that?
It says make is not installed and I need to install it using such and such apt-get
All times are GMT -5. The time now is 10:53 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News