diff options
author | Johnny Richard <johnny@johnnyrichard.com> | 2022-04-10 04:53:29 +0200 |
---|---|---|
committer | Johnny Richard <johnny@johnnyrichard.com> | 2022-04-11 01:51:19 +0200 |
commit | 6108b3a1c10d66f8c446ee54acdbe52efcfdf4e8 (patch) | |
tree | c2b7c5bbe659ce2631f2d028ebca2ca0bfcb3097 /Makefile | |
parent | cfd0f74bb8156a537a9482222be31723420b035e (diff) |
Add testing support
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1,4 +1,20 @@ CFLAGS=-DLOG_USE_COLOR +CC=gcc +.PHONY: all all: main.c server.c log.c $(CC) $(CFLAGS) -g -o papo main.c server.c log.c + +.PHONY: test +test: libpapo.so + @python test.py + +libpapo.so: server.o log.o + $(CC) $(CFLAGS) -shared -o libpapo.so server.o log.o + +log.o: log.c + $(CC) $(CFLAGS) -fPIC -c log.c + +.PHONY: clean +clean: + rm *.o *.so |