diff options
author | Kyle K <kylek389@gmail.com> | 2010-11-29 01:38:18 -0600 |
---|---|---|
committer | Kamil Kaminski <kamilkss@gmail.com> | 2010-11-29 01:38:18 -0600 |
commit | e8a9558a65ae43d3fdeecdebe59d4a1c66640435 (patch) | |
tree | 6ce50ae0188b26cd34d502878ec8ff5991192cd6 /Makefile | |
download | trees-e8a9558a65ae43d3fdeecdebe59d4a1c66640435.tar.gz trees-e8a9558a65ae43d3fdeecdebe59d4a1c66640435.tar.bz2 trees-e8a9558a65ae43d3fdeecdebe59d4a1c66640435.zip |
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c6cd713 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +PROG = trees +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) $(LDFLAGS) $(OBJS) -o $(PROG) + +$(PROG).o: $(PROG).c trees.h + $(CC) -c $(CFLAGS) $(PROG).c + +.PHONY: clean + +clean: + rm -f *.o ./$(PROG) |