author | viric@llimona |
Mon, 12 Nov 2007 09:57:46 +0100 | |
changeset 140 | 0b99d94818d1 |
parent 133 | 4306e96f5906 |
child 146 | 5e689cb593aa |
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 |
|
133 | 21 |
tsretry: tsretry.c |
22 |
||
83 | 23 |
ts: $(OBJECTS) |
121 | 24 |
$(CC) $(LDFLAGS) -o ts $^ |
25 |
||
26 |
.c.o: |
|
27 |
$(CC) $(CFLAGS) $(GLIBCFLAGS) -c $< |
|
83 | 28 |
|
79 | 29 |
# Dependencies |
78 | 30 |
main.o: main.c main.h |
31 |
server_start.o: server_start.c main.h |
|
118 | 32 |
server.o: server.c main.h |
33 |
client.o: client.c main.h |
|
34 |
msgdump.o: msgdump.c main.h |
|
35 |
jobs.o: jobs.c main.h |
|
36 |
execute.o: execute.c main.h |
|
37 |
msg.o: msg.c main.h |
|
78 | 38 |
client_run.o: client_run.c main.h |
39 |
mail.o: mail.c main.h |
|
118 | 40 |
error.o: error.c main.h |
95 | 41 |
signals.o: signals.c main.h |
117 | 42 |
list.o: list.c main.h |
32 | 43 |
|
30
ab88478a7e9b
The commandline parameters are centered in a struct.
viric@llimona
parents:
18
diff
changeset
|
44 |
clean: |
ab88478a7e9b
The commandline parameters are centered in a struct.
viric@llimona
parents:
18
diff
changeset
|
45 |
rm -f *.o ts |
78 | 46 |
|
109 | 47 |
install: ts |
78 | 48 |
$(INSTALL) -d $(PREFIX)/bin |
49 |
$(INSTALL) ts $(PREFIX)/bin |
|
50 |
$(INSTALL) -d $(PREFIX)/man/man1 |
|
51 |
$(INSTALL) -m 644 ts.1 $(PREFIX)/man/man1 |