![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to make sound using C under UNIX | trapeze | UNIX for Dummies Questions & Answers | 6 | 12-10-2007 10:14 PM |
| to make groupings of object using unix command | cdfd123 | UNIX for Dummies Questions & Answers | 1 | 08-03-2007 12:10 PM |
| Make a copy of a unix HDD | josramon | UNIX for Dummies Questions & Answers | 0 | 03-20-2007 07:57 AM |
| Make file in Unix | gandhevinod | UNIX Desktop for Dummies Questions & Answers | 6 | 04-20-2005 04:15 PM |
| How can I make ls -l in HP-UNIX? | sangjinn | High Level Programming | 1 | 09-24-2001 02:39 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Unix Make
I need tutorial on Make utility on Unix.
Any help or link appreciated. many thanks Mirko |
| Forum Sponsor | ||
|
|
|
|||
|
Hi,
Two main things to understand about make... 1. it's all based around dependancies 2. those dependancies all center around the date of a file. If you have hello.c and want to build it, then create a "Makefile" as follows... Code:
all: hello
hello.o: hello.c
$(CC) $(CFLAGS) -c hello.c -o $@
hello: hello.o
$(CC) $(CFLAGS) hello.o -o $@
$@ means the target for the rule So it will say, I want to make "all", so I want to make "hello", that depends on "hello.o" and here are the rules. Ah, I need hello.o first, and there are the rules to make that. make (software) - Wikipedia, the free encyclopedia |