Commits

Ragnara committed 7a8e42d

Added mingw32 cross-compilation support

  • Participants
  • Parent commits 5634760

Comments (0)

Files changed (2)

 CC=clang 
+CCWIN=i486-mingw32-gcc
 CFLAGS=-std=c11 -g -Wall -Wextra -Werror -pedantic
 
+all: buildcounter.exe buildcounter
+
 
 buildcounter: buildcounter.c
 	$(CC) $(CFLAGS) -o buildcounter buildcounter.c
 	@buildcounter -s buildno.h || echo "No buildcounting"
 
+buildcounter.exe: buildcounter.c
+	$(CCWIN) $(CFLAGS) -o buildcounter.exe buildcounter.c	
+
 clean:
+	-rm buildcounter.exe
 	-rm buildcounter
 
-#define BUILDNO 16
+#define BUILDNO 18