mirror of https://github.com/sipwise/libtcap.git
- Use built-in rules whenever possible. - Split between optional and required options in flag variables. - Refactor tests into a variable. Change-Id: I1f82648c8b9757fc98acbcc1d8d7157a83f4ec79pu/github-actions
parent
61b54b7d6c
commit
a72c272615
@ -1,12 +1,13 @@
|
||||
.PHONY: all clean
|
||||
|
||||
all: basic encode
|
||||
CPPFLAGS += -I ../include -I../asn1-compiled
|
||||
CFLAGS := -Wall -g
|
||||
LDFLAGS += -L../src
|
||||
LDLIBS += -ltcap
|
||||
|
||||
basic: basic.c ../src/libtcap.so.0
|
||||
gcc -Wall -g -I ../include -I../asn1-compiled basic.c -o basic -L../src -ltcap
|
||||
TESTS = basic encode
|
||||
|
||||
encode: encode.c ../src/libtcap.so.0
|
||||
gcc -Wall -g -I ../include -I../asn1-compiled encode.c -o encode -L../src -ltcap
|
||||
all: $(TESTS)
|
||||
|
||||
clean:
|
||||
rm -f basic encode
|
||||
rm -f $(TESTS)
|
||||
|
Loading…
Reference in new issue