test entry in makefile

This commit is contained in:
Romain de Laage 2021-02-16 09:10:25 +01:00
parent 80bd96004d
commit 691ea94549
Signed by: rdelaage
GPG Key ID: 534845FADDF0C329
1 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,12 @@ debug:
mkdir -p build/debug
$(CC) -o $(BUILD_DIR)/debug/$(BUILD_NAME)-$(OS) $(CFLAGS) src/*
test: testgemparse testurllib
testgemparse:
mkdir -p $(BUILD_DIR)/test
$(CC) -o $(BUILD_DIR)/test/gemparse-$(OS) -D TESTGEMPARSE src/gemparse.c
testurllib:
mkdir -p $(BUILD_DIR)/test
$(CC) -o $(BUILD_DIR)/test/urllib-$(OS) -D TESTURLLIB lib/url.c