Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed makefile to not recompile everything on every run

  • Loading branch information...
commit e49f5c025997e81a3ce1182fef7c15bab2e9a7d7 1 parent 6122dd5
@deoxxa authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 Makefile
View
14 Makefile
@@ -1,27 +1,27 @@
CFLAGS += -I ./include -std=c99 -Wall -Werror -Wextra -pedantic -O0 -g
-all: bin/example
+all: prepare bin/example
prepare:
if [ ! -e obj ]; then mkdir obj; fi;
if [ ! -e bin ]; then mkdir bin; fi;
-obj/read.o: prepare src/read.c
+obj/read.o: src/read.c
$(CC) $(CFLAGS) $(LDFLAGS) -c -o obj/read.o src/read.c
-obj/parser.o: prepare src/parser.c
+obj/parser.o: src/parser.c
$(CC) $(CFLAGS) $(LDFLAGS) -c -o obj/parser.o src/parser.c
-obj/metadata.o: prepare src/metadata.c
+obj/metadata.o: src/metadata.c
$(CC) $(CFLAGS) $(LDFLAGS) -c -o obj/metadata.o src/metadata.c
-obj/slot.o: prepare src/slot.c
+obj/slot.o: src/slot.c
$(CC) $(CFLAGS) $(LDFLAGS) -c -o obj/slot.o src/slot.c
-obj/example.o: prepare example.c
+obj/example.o: example.c
$(CC) $(CFLAGS) $(LDFLAGS) -c -o obj/example.o example.c
-bin/example: prepare obj/read.o obj/parser.o obj/metadata.o obj/slot.o obj/example.o
+bin/example: obj/read.o obj/parser.o obj/metadata.o obj/slot.o obj/example.o
$(CC) $(CFLAGS) $(LDFLAGS) -o bin/example obj/example.o obj/read.o obj/parser.o obj/metadata.o obj/slot.o
clean:
Please sign in to comment.
Something went wrong with that request. Please try again.