]> rtime.felk.cvut.cz Git - coffee/mt-apps.git/blobdiff - Makefile
windows compatible Makefile
[coffee/mt-apps.git] / Makefile
index 2c66d922a20fcb4b7421c49ff2fb0dd34596e580..34bece4e0b26bc48f423a7ea2f8f68c10a3ba141 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,15 @@
-OUTPUT_FILE=mt-rfid
+OUTPUT_FILE = mt-rfid
 
-all: main.c
-       $(CC) $(CFLAGS) -o $(OUTPUT_FILE) main.c -luFCoder-armhf -pthread
+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