summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 607e8c7..48ddd20 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ LIBS = -lraylib -lm -lpthread -lGLESv2 -lEGL \
-lical -licalss -licalvcal \
$$([ `uname -m` = aarch64 ] && echo '-lvcos -lvchiq_arm -lgbm -ldrm')
-all: check_ical import_booking opplysning select_booking
+all: check_ical opplysning select_booking update
check: all
./check_ical < check_ical_in.ical > check_ical_out.txt
@@ -13,20 +13,17 @@ check: all
clean:
rm -f check_ical check_ical_out.txt
- rm -f import_booking
rm -f opplysning
rm -f select_booking
rm -f sqlite.o
rm -f sqlite3
+ rm -f update
.PHONY: all check clean
check_ical: check_ical.c
$(CC) $(CFLAGS) -o $@ check_ical.c $(LIBS)
-import_booking: import_booking.c sqlite.o
- $(CC) $(CFLAGS) -o $@ import_booking.c sqlite.o -lical -licalss -licalvcal
-
opplysning: opplysning.c sqlite.o
$(CC) $(CFLAGS) -o $@ opplysning.c sqlite.o $(LIBS)
@@ -38,3 +35,6 @@ sqlite.o: sqlite/sqlite3.c
sqlite3: sqlite/shell.c sqlite/sqlite3.c
$(CC) $(CFLAGS) -o sqlite3 sqlite/shell.c sqlite/sqlite3.c -lm
+
+update: update.c sqlite.o
+ $(CC) $(CFLAGS) -o $@ update.c sqlite.o -lical -licalss -licalvcal