10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have a big makefile that I am trying to get my head around, this line is what is confusing me.
LDFLAGS = -Wl,-rpath-link,$(SYSROOT)/lib/arm-linux-gnueabihf,-rpath-link,$(SYSROOT)/usr/lib/arm-linux-gnueabihf --sysroot=$(SYSROOT) -L$(SYSROOT)/lib -L$(SYSROOT)/usr/lib... (5 Replies)
Discussion started by: sesefsefs
5 Replies
2. Programming
Hi All,
We have moved our OS from Sun Solaris to Linux and also some of the compilers.
Our old makefile used to be as below:
CC=cc
FLAGS=-G -KPIC -DLG_SOLARIS_OS
DEFINES=-DSunOS
SYSLIBS=-lc
.SUFFIXES : .c
.c.o : ;$(CC) -c $(FLAGS) $(DEFINES) $*.c -o $*.o
... (3 Replies)
Discussion started by: shash
3 Replies
3. Shell Programming and Scripting
Hi all,
I'm reading the GNU Make book I cannot understand the following syntax from the book.
objects = foo.o bar.o
all : $(objects)
$(objects) : %.o : %.c
$(CC) -c $(CFLAGS) $< -o $@
If I run: make, I get the output:
cc -c foo.c
cc -o foo foo.o
I think I... (3 Replies)
Discussion started by: santiagorf
3 Replies
4. Shell Programming and Scripting
Hello,
I have to write makefile which supports specific targets and I have to do the following things:
- A variable T determines whether the function is executed 1 or 2
- A variable N determines which size will be executed
e.g. it must be read from the command line "make 1500" where 1... (0 Replies)
Discussion started by: StudUni
0 Replies
5. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Discussion started by: Tatl
1 Replies
6. Shell Programming and Scripting
I made a simple makefile and can't figure out why it is getting an error.
It is actually getting two separate errors but I believe the second is a result of the first.
Here is my makefile
myProgram: main.o employee.o address.o
g++ -o main.o employee.o address.o
main.o: main.cpp... (2 Replies)
Discussion started by: zero3ree
2 Replies
7. UNIX for Advanced & Expert Users
I have 2 libraries in 2 different directories that I build with Makefiles.
library B depends on library A. If I modify a .cpp file in library A and run lib B's Makefile can I have B's makefile to automatically rebuild library A?
I am now rebuilding A, followed by B... but I'd like B to... (0 Replies)
Discussion started by: wwuster
0 Replies
8. Programming
hello,
I have a firts makefile who call others makefile. for this i use:
$ make -f linux.mak
and output his:
$ make -f linux.mak all
make -C DerelictAL all PLATFORM=linux
make: Entering directory `/home/builder/rpmbuild/SOURCES/derelict2-20100407/DerelictAL'
make: Nothing to be done for... (2 Replies)
Discussion started by: bioinfornatics
2 Replies
9. UNIX for Advanced & Expert Users
Hi, I'm trying to run the module load command in a Makefile and i'm getting the following error:
make: module: command not found
Why is this? Is there any way to run this command in a Makefile?
NOTE: command - module load msjava/sunjdk/1.5.0 works fine outside of the Makefile (2 Replies)
Discussion started by: hernandinho
2 Replies
10. Programming
can anyone well explain how to create a makefile? especially those commands in the makefile?
BTW, what is CFLAG? (2 Replies)
Discussion started by: ligerdave
2 Replies