summaryrefslogtreecommitdiffstats
path: root/mingw32
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2011-01-17 21:09:56 -0600
committerKamil Kaminski <kamilkss@gmail.com>2011-01-17 21:09:56 -0600
commit34ceeacc8679b6ee01e785de2508c5cfec91d993 (patch)
treef2000f1e0c6f2c8d609196e8e40e49633a46946c /mingw32
parentdc7b772292ddf9f5d1b208ff8c9e2c59c167d0e4 (diff)
downloadtrees-34ceeacc8679b6ee01e785de2508c5cfec91d993.tar.gz
trees-34ceeacc8679b6ee01e785de2508c5cfec91d993.tar.bz2
trees-34ceeacc8679b6ee01e785de2508c5cfec91d993.zip
add mingw32 target
Diffstat (limited to 'mingw32')
-rw-r--r--mingw3221
1 files changed, 21 insertions, 0 deletions
diff --git a/mingw32 b/mingw32
new file mode 100644
index 0000000..b7d6c72
--- /dev/null
+++ b/mingw32
@@ -0,0 +1,21 @@
+PROG = tress
+OBJS = $(PROG).o
+CC = gcc
+DBGFLAGS = -g -O0
+ifdef DEBUG
+ CFLAGS = $(DBGFLAGS) -Wall -std=c99
+else
+ CFLAGS = -Wall -std=c99 -O2 -march=native -mtune=native
+endif
+LDFLAGS = -lm
+
+$(PROG): $(OBJS)
+ $(CC) -o $(PROG) $(OBJS) $(LDFLAGS)
+
+$(PROG).o: $(PROG).c
+ $(CC) -c $(CFLAGS) $(PROG).c
+
+.PHONY: clean
+
+clean:
+ rm -f *.o ./$(PROG).exe