author | viric@llimona |
Fri, 13 Apr 2007 20:50:31 +0200 | |
changeset 125 | b60f173b1489 |
parent 121 | 7a42c36de0d0 |
child 133 | 4306e96f5906 |
permissions | -rw-r--r-- |
78 | 1 |
PREFIX?=/usr/local |
121 | 2 |
GLIBCFLAGS=-D_XOPEN_SOURCE=500 -D__STRICT_ANSI__ |
3 |
CFLAGS=-pedantic -ansi -Wall -g -O0 |
|
32 | 4 |
OBJECTS=main.o \ |
5 |
server.o \ |
|
6 |
server_start.o \ |
|
7 |
client.o \ |
|
8 |
msgdump.o \ |
|
9 |
jobs.o \ |
|
10 |
execute.o \ |
|
11 |
msg.o \ |
|
71 | 12 |
client_run.o \ |
92
05004c52ecff
Better error reports on internal handled errors.
viric@llimona
parents:
88
diff
changeset
|
13 |
mail.o \ |
95 | 14 |
error.o \ |
117 | 15 |
signals.o \ |
16 |
list.o |
|
78 | 17 |
INSTALL=/usr/bin/install -c |
30
ab88478a7e9b
The commandline parameters are centered in a struct.
viric@llimona
parents:
18
diff
changeset
|
18 |
|
88
bdd6018f66fd
Fixed the declaration warnings in the compilation.
lbatlle@npdl268.bpo.hp.com
parents:
85
diff
changeset
|
19 |
all: ts |
bdd6018f66fd
Fixed the declaration warnings in the compilation.
lbatlle@npdl268.bpo.hp.com
parents:
85
diff
changeset
|
20 |
|
83 | 21 |
ts: $(OBJECTS) |
121 | 22 |
$(CC) $(LDFLAGS) -o ts $^ |
23 |
||
24 |
.c.o: |
|
25 |
$(CC) $(CFLAGS) $(GLIBCFLAGS) -c $< |
|
83 | 26 |
|
79 | 27 |
# Dependencies |
78 | 28 |
main.o: main.c main.h |
29 |
server_start.o: server_start.c main.h |
|
118 | 30 |
server.o: server.c main.h |
31 |
client.o: client.c main.h |
|
32 |
msgdump.o: msgdump.c main.h |
|
33 |
jobs.o: jobs.c main.h |
|
34 |
execute.o: execute.c main.h |
|
35 |
msg.o: msg.c main.h |
|
78 | 36 |
client_run.o: client_run.c main.h |
37 |
mail.o: mail.c main.h |
|
118 | 38 |
error.o: error.c main.h |
95 | 39 |
signals.o: signals.c main.h |
117 | 40 |
list.o: list.c main.h |
32 | 41 |
|
30
ab88478a7e9b
The commandline parameters are centered in a struct.
viric@llimona
parents:
18
diff
changeset
|
42 |
clean: |
ab88478a7e9b
The commandline parameters are centered in a struct.
viric@llimona
parents:
18
diff
changeset
|
43 |
rm -f *.o ts |
78 | 44 |
|
109 | 45 |
install: ts |
78 | 46 |
$(INSTALL) -d $(PREFIX)/bin |
47 |
$(INSTALL) ts $(PREFIX)/bin |
|
48 |
$(INSTALL) -d $(PREFIX)/man/man1 |
|
49 |
$(INSTALL) -m 644 ts.1 $(PREFIX)/man/man1 |