summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Stensgård <mastensg@mastensg.net>2025-04-18 18:06:33 +0200
committerMartin Stensgård <mastensg@mastensg.net>2025-04-18 18:06:33 +0200
commit6888113d42ba2e1e4c0690e82e61092872cdffb3 (patch)
treec4e55e435534829b39b022f0576e7561355b7813 /Makefile
parent156827816395ff0ccf9535f502c6d80736244c41 (diff)
check_ical: parse events
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8792f2e..d172224 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,24 @@
.POSIX:
CFLAGS = -Wall -Wextra -pedantic -O2 -g
+LIBS = -lraylib -lm -lpthread -lGLESv2 -lEGL \
+ -lical -licalss -licalvcal \
+ $$([ `uname -m` = aarch64 ] && echo '-lvcos -lvchiq_arm -lgbm -ldrm')
+
+all: check_ical opplysning
-all: opplysning
+check: all
+ ./check_ical < check_ical_in.ical > check_ical_out.txt
+ diff -u check_ical_ans.txt check_ical_out.txt && echo PASS || echo FAIL
clean:
+ rm -f check_ical check_ical_out.txt
rm -f opplysning
-.PHONY: all clean
+.PHONY: all check clean
-LIBS = -lraylib -lm -lpthread -lGLESv2 -lEGL \
- $$([ `uname -m` = aarch64 ] && echo '-lvcos -lvchiq_arm -lgbm -ldrm')
+check_ical: check_ical.c
+ $(CC) $(CFLAGS) -o $@ check_ical.c $(LIBS)
opplysning: opplysning.c
$(CC) $(CFLAGS) -o $@ opplysning.c $(LIBS)