Harald Welte | 283c7fd | 2015-12-21 23:35:56 +0100 | [diff] [blame^] | 1 | LDADD := -ltalloc -lsctp $(shell pkg-config --libs libosmo-sccp) $(shell pkg-config --libs libosmocore) $(shell pkg-config --libs libosmo-netif) |
| 2 | LDFLAGS += $(LDADD) |
| 3 | CFLAGS += -Wall |
| 4 | |
| 5 | all: sua_client_test sua_server_test |
| 6 | |
| 7 | %.o: %.c |
| 8 | $(CC) $(CFLAGS) -o $@ -c $^ |
| 9 | |
| 10 | sua_client_test: sccp_sap.o sua.o sua_client_test.o sua_test_common.o /usr/local/lib/libxua.a |
| 11 | $(CC) $(LDFLAGS) -o $@ $^ |
| 12 | |
| 13 | sua_server_test: sccp_sap.o sua.o sua_server_test.o sua_test_common.o /usr/local/lib/libxua.a |
| 14 | $(CC) $(LDFLAGS) -o $@ $^ |
| 15 | |
| 16 | clean: |
| 17 | @rm *.o sua_client_test sua_server_test |