diff options
author | rsiddharth <s@ricketyspace.net> | 2020-04-09 20:37:12 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2020-04-17 20:56:37 -0400 |
commit | d5cedc6f28a60301bad21a16fdb047fdb82ff883 (patch) | |
tree | 8cb7e49633c52250447843e06b34b51e2eca8669 /nserver/Makefile | |
parent | 3430edf9a8497ae4552d44b753a674da9167b577 (diff) |
nserver: Add db.h
* nserver/.gitignore: Add nserver.db
* nserver/Makefile ($(PROGRAMS))
(tests): Link gdbm.
(clean): Remove nserver.db
* nserver/src/db.c (db_init): New function.
* nserver/src/db.h (db_init): New function declaration.
* nserver/tests/db_tests.c: Tests for db.h
Diffstat (limited to 'nserver/Makefile')
-rw-r--r-- | nserver/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nserver/Makefile b/nserver/Makefile index 5c6bc9c..3ecfd8d 100644 --- a/nserver/Makefile +++ b/nserver/Makefile @@ -28,7 +28,7 @@ $(TARGET): build $(OBJECTS) $(SO_TARGET): $(TARGET) $(OBJECTS) $(CC) -shared -o $@ $(OBJECTS) -$(PROGRAMS): LDLIBS += $(TARGET) -lm +$(PROGRAMS): LDLIBS += $(TARGET) -lm -L/usr/local/lib -lgdbm build: @mkdir -p build @@ -36,7 +36,7 @@ build: # The Unit Tests .PHONY: tests -tests: LDLIBS += $(TARGET) -lm +tests: LDLIBS += $(TARGET) -lm -L/usr/local/lib -lgdbm tests: $(TESTS) sh ./tests/runtests.sh @@ -46,6 +46,7 @@ clean: rm -f tests/tests.log find . -name "*.gc" -exec rm {} \; rm -rf `find . -name "*.dSYM" -print` + rm -rf nserver.db # The Install install: all |