LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 07-09-2022, 12:57 AM   #1
ClubPenguin
LQ Newbie
 
Registered: Jul 2022
Posts: 23

Rep: Reputation: 0
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.
 
Old 07-09-2022, 01:21 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,882
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
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.
Old 07-09-2022, 05:24 AM   #3
ClubPenguin
LQ Newbie
 
Registered: Jul 2022
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by NevemTeve View Post
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.
 
Old 07-09-2022, 05:41 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,882
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
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.
Old 07-09-2022, 07:07 AM   #5
ClubPenguin
LQ Newbie
 
Registered: Jul 2022
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by NevemTeve View Post
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...
 
Old 07-09-2022, 10:12 AM   #6
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,786

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
Quote:
Originally Posted by ClubPenguin View Post
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.
Old 07-09-2022, 11:33 AM   #7
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,003

Rep: Reputation: 474Reputation: 474Reputation: 474Reputation: 474Reputation: 474
Quote:
Originally Posted by ClubPenguin View Post
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.
Old 07-09-2022, 05:37 PM   #8
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by ClubPenguin View Post
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.
Old 07-09-2022, 06:08 PM   #9
ClubPenguin
LQ Newbie
 
Registered: Jul 2022
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ntubski View Post
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.
 
Old 07-09-2022, 06:10 PM   #10
ClubPenguin
LQ Newbie
 
Registered: Jul 2022
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EdGr View Post
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.
 
Old 07-09-2022, 06:11 PM   #11
ClubPenguin
LQ Newbie
 
Registered: Jul 2022
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rtmistler View Post
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...
 
Old 07-09-2022, 06:52 PM   #12
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,003

Rep: Reputation: 474Reputation: 474Reputation: 474Reputation: 474Reputation: 474
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.
Old 07-09-2022, 06:55 PM   #13
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,250

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
Quote:
Originally Posted by ntubski View Post
Usually the command to run for a makefile is make.
Yes. What happens when you do that?
 
1 members found this post helpful.
Old 07-10-2022, 12:58 AM   #14
ClubPenguin
LQ Newbie
 
Registered: Jul 2022
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EdGr View Post
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
 
Old 07-10-2022, 12:59 AM   #15
ClubPenguin
LQ Newbie
 
Registered: Jul 2022
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by dugan View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Guys, I will really appreciate your help if you can help me get the answers to the following questions: anon200 LinuxQuestions.org Member Intro 1 05-17-2019 03:54 AM
LXer: Sweet Home 3D: An open source tool to help you decide on your dream home LXer Syndicated Linux News 0 03-16-2019 12:50 AM
LXer: CAN-SPAM Act - Is it working? You Decide. LXer Syndicated Linux News 0 04-01-2007 08:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration