]> rtime.felk.cvut.cz Git - coffee/mt-apps.git/blobdiff - Makefile
header file, open arguments from self, getopts beep
[coffee/mt-apps.git] / Makefile
index 6bea021705ccdf56c93840f10280ffc61c237347..34bece4e0b26bc48f423a7ea2f8f68c10a3ba141 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,17 @@
-OUTPUT_FILE=mt-rfid
+OUTPUT_FILE = mt-rfid
 
-all: main.c
-       $(CC) $(CFLAGS) -o $(OUTPUT_FILE) $(IDIR) main.c -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.c mt_rfid.h
+       $(CC) $(CFLAGS) -o $(OUTPUT_FILE) mt_rfid.c $(UFR_LIB)
+
+.PHONY: clean
 
-.PHONY clean
 clean:
        rm $(OUTPUT_FILE)