]> rtime.felk.cvut.cz Git - coffee/mt-apps.git/blobdiff - Makefile
almost ready
[coffee/mt-apps.git] / Makefile
index 1c44f7e4680d537ce28864da8c1cc60df7d31887..de477554d707e8d1e45eda0be37c7035325f7519 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,15 @@
-SOURCE_FILES = mt_rfid.c
-OUTPUT_FILE = mt-rfid
+all: mt-rfid mt-server mt-ps
 
-ifeq ($(OS),Windows_NT)
-       CC = gcc
-       CFLAGS += -Wall -O3 -DPORT_NAME="\"\""
-       UFR_LIB = -L. -luFCoder-x86_64
-else
-       UFR_LIB = -luFCoder-armhf
-endif
+mt-rfid: $(SOURCE_FILES)
+       $(CC) $(CFLAGS) -DIS_MAIN -o mt_rfid mt_rfid.c ev_signal_exit.c -lev -luFCoder-armhf
 
-all: $(SOURCE_FILES)
-       $(CC) $(CFLAGS) -o $(OUTPUT_FILE) $(SOURCE_FILES) $(UFR_LIB)
+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 $(OUTPUT_FILE)
+       rm -f mt-*