]> rtime.felk.cvut.cz Git - coffee/mt-apps.git/blobdiff - Makefile
almost ready
[coffee/mt-apps.git] / Makefile
index e5737b7fc53e02981460382b1e1f8e26bdccc8bf..de477554d707e8d1e45eda0be37c7035325f7519 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,15 @@
-all: main.c
-       $(CC) -o mt-rfidi $(INC) main.c -luFCoder-armhf
+all: mt-rfid mt-server mt-ps
+
+mt-rfid: $(SOURCE_FILES)
+       $(CC) $(CFLAGS) -DIS_MAIN -o mt_rfid mt_rfid.c ev_signal_exit.c -lev -luFCoder-armhf
+
+mt-server: mt_server.c
+       $(CC) $(CFLAGS) -DIS_MAIN -o mt-server mt_server.c ev_signal_exit.c -lev -lwebsockets
+
+mt-ps: mtps.c mt_rfid.c mt_server.c
+       $(CC) $(CFLAGS) -o mt-ps mtps.c mt_rfid.c mt_server.c ev_signal_exit.c -lev -luFCoder-armhf -lwebsockets
+
+.PHONY: clean
+
+clean:
+       rm -f mt-*