aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-01-17 14:28:49 -0500
committerCalvin Morrison <mutantturkey@gmail.com>2014-01-17 14:28:49 -0500
commitb09eecbec7e7cca1c133ba5923f55713cf7a78cf (patch)
tree6ff08efad3b5dcd2aef32905b4637625d6c8d6ea /Makefile
parentecc00aae08c06ae2da5629533ef69d7c5ffd86fe (diff)
update makefile and make a src directory
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 0a9e43f..d5e673a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,17 @@
VERSION=\"v0.0.1\"
CC = gcc
CFLAGS = -O3 -s -mtune=native -Wall -DVERSION=$(VERSION) -Wextra
+SRC = src
+BIN = bin
-all: strstream melting_range strstreamone
+all: $(BIN)/strstream $(BIN)/melting_range $(BIN)/strstreamone
-strstream: strstream.c
- $(CC) strstream.c -o strstream $(CLIBS) $(CFLAGS)
-strstreamone: strstreamone.c
- $(CC) strstreamone.c -o strstreamone $(CLIBS) $(CFLAGS)
-melting_range: melting_range.c
- $(CC) melting_range.c -o melting_range $(CLIBS) $(CFLAGS)
+$(BIN)/strstream: $(SRC)/strstream.c
+ $(CC) $(SRC)/strstream.c -o $(BIN)/strstream $(CLIBS) $(CFLAGS)
+$(BIN)/strstreamone: $(SRC)/strstreamone.c
+ $(CC) $(SRC)/strstreamone.c -o $(BIN)/strstreamone $(CLIBS) $(CFLAGS)
+$(BIN)/melting_range: $(SRC)/melting_range.c
+ $(CC) $(SRC)/melting_range.c -o $(BIN)/melting_range $(CLIBS) $(CFLAGS)
clean:
- rm -vf strstream melting_range
+ rm -vf $(BIN)/strstream $(BIN)/melting_range $(BIN)/strstreamone