author | viric@llimona |
Tue, 03 Apr 2007 23:53:06 +0200 | |
changeset 83 | 94945f1c7326 |
parent 79 | f99c2548fac4 |
child 85 | 36bec04b8afd |
permissions | -rw-r--r-- |
78 | 1 |
PREFIX?=/usr/local |
48 | 2 |
GCCFLAGS=-D_XOPEN_SOURCE -D__STRICT_ANSI__ |
44 | 3 |
CFLAGS=-pedantic -ansi -Wall -g -O0 ${GCCFLAGS} |
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 \ |
13 |
mail.o |
|
78 | 14 |
INSTALL=/usr/bin/install -c |
30
ab88478a7e9b
The commandline parameters are centered in a struct.
viric@llimona
parents:
18
diff
changeset
|
15 |
|
83 | 16 |
ts: $(OBJECTS) |
17 |
gcc -o ts $^ |
|
18 |
||
79 | 19 |
# Dependencies |
78 | 20 |
main.o: main.c main.h |
21 |
server_start.o: server_start.c main.h |
|
22 |
server.o: server.c main.h msg.h |
|
23 |
client.o: client.c main.h msg.h |
|
24 |
msgdump.o: msgdump.c main.h msg.h |
|
25 |
jobs.o: jobs.c main.h msg.h |
|
26 |
execute.o: execute.c main.h msg.h |
|
27 |
msg.o: msg.c main.h msg.h |
|
28 |
client_run.o: client_run.c main.h |
|
29 |
mail.o: mail.c main.h |
|
32 | 30 |
|
30
ab88478a7e9b
The commandline parameters are centered in a struct.
viric@llimona
parents:
18
diff
changeset
|
31 |
clean: |
ab88478a7e9b
The commandline parameters are centered in a struct.
viric@llimona
parents:
18
diff
changeset
|
32 |
rm -f *.o ts |
78 | 33 |
|
34 |
install: |
|
35 |
$(INSTALL) -d $(PREFIX)/bin |
|
36 |
$(INSTALL) ts $(PREFIX)/bin |
|
37 |
$(INSTALL) -d $(PREFIX)/man/man1 |
|
38 |
$(INSTALL) -m 644 ts.1 $(PREFIX)/man/man1 |
|
39 |
gzip $(PREFIX)/man/man1/ts.1 |