You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
635 B
37 lines
635 B
TRLIBS = -ltrbase \
|
|
-ltrhashing \
|
|
-ltrio \
|
|
-ltrdata \
|
|
-ltrevent \
|
|
-ltrcomm
|
|
|
|
LIBS = $(TRLIBS) \
|
|
-lcrypto \
|
|
-lssl \
|
|
-lrt \
|
|
-luuid
|
|
|
|
PROGRAMS = testserver2 \
|
|
testtcp \
|
|
testudp
|
|
|
|
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: 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 $@ $<
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
@rm -Rf *.o $(PROGRAMS)
|