diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2014-01-17 14:28:49 -0500 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2014-01-17 14:28:49 -0500 |
commit | b09eecbec7e7cca1c133ba5923f55713cf7a78cf (patch) | |
tree | 6ff08efad3b5dcd2aef32905b4637625d6c8d6ea /Makefile | |
parent | ecc00aae08c06ae2da5629533ef69d7c5ffd86fe (diff) |
update makefile and make a src directory
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -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 |