]> rtime.felk.cvut.cz Git - coffee/mt-apps.git/blobdiff - Makefile
websockets server added
[coffee/mt-apps.git] / Makefile
index ee73c394c79b7f867f78aeb63ecf11bb2ba81132..964d4b2f5c0d10e8fff0a6c423bdbd0fe4018a47 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,14 @@ SOURCE_FILES = mt_rfid.c
 OUTPUT_FILE = mt-rfid
 LIBRARIES = -lev -luFCoder-armhf
 
-all: $(SOURCE_FILES)
+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: