2 changed files with 45 additions and 10 deletions
@ -0,0 +1,33 @@ |
|||
TRLIBS = -ltrbase \
|
|||
-ltrhashing \
|
|||
-ltrio \
|
|||
-ltrdata \
|
|||
-ltrevent \
|
|||
-ltrcomm |
|||
|
|||
LIBS = $(TRLIBS) \
|
|||
-lcrypto \
|
|||
-lssl \
|
|||
-lrt \
|
|||
-luuid |
|||
|
|||
PROHRAMS = testserver2 \
|
|||
testtcp \
|
|||
testudp |
|||
|
|||
all: $(PROHRAMS) |
|||
|
|||
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: testudp.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 $@ $< |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue