From b09eecbec7e7cca1c133ba5923f55713cf7a78cf Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Fri, 17 Jan 2014 14:28:49 -0500 Subject: update makefile and make a src directory --- Makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3