]> rtime.felk.cvut.cz Git - coffee/mt-apps.git/blobdiff - Makefile
websockets server added
[coffee/mt-apps.git] / Makefile
index 1c44f7e4680d537ce28864da8c1cc60df7d31887..964d4b2f5c0d10e8fff0a6c423bdbd0fe4018a47 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,14 @@
 SOURCE_FILES = mt_rfid.c
 OUTPUT_FILE = mt-rfid
+LIBRARIES = -lev -luFCoder-armhf
 
-ifeq ($(OS),Windows_NT)
-       CC = gcc
-       CFLAGS += -Wall -O3 -DPORT_NAME="\"\""
-       UFR_LIB = -L. -luFCoder-x86_64
-else
-       UFR_LIB = -luFCoder-armhf
-endif
+all: mt-rfid mt-server
 
-all: $(SOURCE_FILES)
-       $(CC) $(CFLAGS) -o $(OUTPUT_FILE) $(SOURCE_FILES) $(UFR_LIB)
+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