diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-04-04 02:25:21 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-04-04 02:25:21 +0200 |
commit | a83aee989b06729078e6ba7c8448b30a3bab4e1d (patch) | |
tree | 0c39dee6cd7715ebb4d90e37efd774d1797c7151 /Makefile | |
parent | c36c7fedf969fa49e832c7d2739ea4d1ad1108f2 (diff) | |
download | dns-a83aee989b06729078e6ba7c8448b30a3bab4e1d.tar.gz |
Moved server to server.h/.c, added tests
- All server functions have been moved to server.h/.c
- main call run_dns_server() or run_test() depending on makefile target
- Makefile target test is now available
- test.h/.c provide unit tests
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ CC = clang CFLAGS = -Wall -LDFLAGS = +LDFLAGS = -lm BUILDDIR = build SOURCEDIR = src OBJECTDIR = obj @@ -18,7 +18,7 @@ build: dir $(OBJ) debug: CFLAGS += -g -D _DEBUG debug: build; -test: LDFLAGS += -Wl,-etest_main +test: CFLAGS += -D _TEST test: debug $(BUILDDIR)/$(OUTPUT) |