diff options
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 |