diff options
author | Kyle K <kylek389@gmail.com> | 2011-01-17 21:09:56 -0600 |
---|---|---|
committer | Kamil Kaminski <kamilkss@gmail.com> | 2011-01-17 21:09:56 -0600 |
commit | 34ceeacc8679b6ee01e785de2508c5cfec91d993 (patch) | |
tree | f2000f1e0c6f2c8d609196e8e40e49633a46946c /mingw32 | |
parent | dc7b772292ddf9f5d1b208ff8c9e2c59c167d0e4 (diff) | |
download | trees-34ceeacc8679b6ee01e785de2508c5cfec91d993.tar.gz trees-34ceeacc8679b6ee01e785de2508c5cfec91d993.tar.bz2 trees-34ceeacc8679b6ee01e785de2508c5cfec91d993.zip |
add mingw32 target
Diffstat (limited to 'mingw32')
-rw-r--r-- | mingw32 | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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 |