aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 14d5819..e860609 100644
--- a/Makefile
+++ b/Makefile
@@ -53,13 +53,13 @@ FLAGS = $(OPTIMISE) $(WARN) -std=$(STD) \
.PHONY: all
all: bin/file2key
-bin/file2key: obj/file2key.o obj/keccak.o
+bin/file2key: obj/file2key.o
@mkdir -p bin
- $(CC) $(FLAGS) $(LDFLAGS) -lpassphrase -o $@ $^
+ $(CC) $(FLAGS) -lpassphrase -lkeccak -o $@ $^ $(LDFLAGS)
-obj/%.o: src/%.c src/*.h
+obj/%.o: src/%.c
@mkdir -p obj
- $(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+ $(CC) $(FLAGS) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
.PHONY: install