]> rtime.felk.cvut.cz Git - coffee/mt-apps.git/blobdiff - Makefile
websockets server added
[coffee/mt-apps.git] / Makefile
index e5737b7fc53e02981460382b1e1f8e26bdccc8bf..964d4b2f5c0d10e8fff0a6c423bdbd0fe4018a47 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,16 @@
-all: main.c
-       $(CC) -o mt-rfidi $(INC) main.c -luFCoder-armhf
+SOURCE_FILES = mt_rfid.c
+OUTPUT_FILE = mt-rfid
+LIBRARIES = -lev -luFCoder-armhf
+
+all: mt-rfid mt-server
+
+mt-rfid: $(SOURCE_FILES)
+       $(CC) $(CFLAGS) -o $(OUTPUT_FILE) $(SOURCE_FILES) $(LIBRARIES)
+
+mt-server: mt_server.c
+       $(CC) $(CFLAGS) -o mt-server mt_server.c $(LIBRARIES) -lwebsockets
+
+.PHONY: clean
+
+clean:
+       rm -f $(OUTPUT_FILE)