summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-11-29 21:02:16 +0100
committerxengineering <me@xengineering.eu>2022-11-30 21:28:51 +0100
commit533619c27d9cc3919bed540ea7f04bebddc71cbe (patch)
tree96496208d135ceb1c5557565fd2c697de962c5b3 /Makefile
parentc233d1b454efc50f913dd48fa11d223950f48947 (diff)
downloadlimox-533619c27d9cc3919bed540ea7f04bebddc71cbe.tar
limox-533619c27d9cc3919bed540ea7f04bebddc71cbe.tar.zst
limox-533619c27d9cc3919bed540ea7f04bebddc71cbe.zip
Add first unit test
This should kick off the infrastructure for unit tests. This can still be improved but getting started is important to make it easier to add unit tests and thus improving the quality.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 18bde1e..f692264 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,16 @@
.PHONY: all clean
-all: build
+all: build/limox build/tests/get_domainpart
+ ./build/tests/get_domainpart
+
+build/limox: build
gcc main.c gui.c xmpp.c -o build/limox -lSDL2
+build/tests/get_domainpart: build
+ gcc tests/get_domainpart.c xmpp.c -o build/tests/get_domainpart -I.
+
build:
- mkdir -p build
+ mkdir -p build/tests
clean:
rm -rf build