Makefile
731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
TRLIBS = -ltrbase \
-ltrhashing \
-ltrio \
-ltrdata \
-ltrevent \
-ltrcomm
LIBS = $(TRLIBS) \
-lcrypto \
-lssl \
-lrt \
-luuid
PROGRAMS = testserver2 \
testtcp \
testudp \
testiterator
all: $(PROGRAMS)
testserver2: testserver2.o test_handler.o
$(CC) $(LDFLAGS) -std=c99 $(LIBS) -o $@ $< test_handler.o
testtcp: testclient.o
$(CC) $(LDFLAGS) -std=c99 $(LIBS) -o $@ $<
testudp: testclient.o
$(CC) $(LDFLAGS) -std=c99 $(LIBS) -o $@ $<
testiterator: testiterator.o
$(CC) $(LDFLAGS) -std=c99 $(LIBS) -o $@ $<
testudp.o: testclient.c
$(CC) $(CFLAGS) -DUDP=1 -std=c99 -c -o $@ $<
%.o: %.c
$(CC) $(CFLAGS) -std=c99 -c -o $@ $<
.PHONY: clean
clean:
@rm -Rf *.o $(PROGRAMS)