GNUmakefile 575 Bytes
Newer Older
1
2
3
4
5
all:	frisbee fromage

CFROMAGEFLAGS = -O -g -static -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads
CFRISBEEFLAGS = -O -g

6
7
FROMAGELIBS = -lz -L/usr/local/lib -llthread -llgcc_r
FRISBEELIBS = -L/usr/local/lib
8
9

fromage: fromage.o f_chunker.o f_frisbee.o f_network.o f_timer.o
10
	$(CC) $(CFROMAGEFLAGS) fromage.o f_chunker.o f_frisbee.o f_network.o f_timer.o $(FROMAGELIBS) -o fromage
11
12

frisbee: server.o f_network.o f_timer.o
13
	$(CC) $(CFRISBEEFLAGS) server.o f_network.o f_timer.o $(FRISBEELIBS) -o frisbee
14
15
16
17
18

tidy:
	-/bin/rm -f *.o 

clean:	tidy
19
	-/bin/rm fromage frisbee