aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-04 19:50:07 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-04 19:50:07 +0100
commit7c862a92626e5663bb5e755107095a228a206967 (patch)
treea323bfce728b991f30cf1bdc3ddbf9490d5022d6 /Makefile
parentadd files.o (diff)
downloadlibkeccak-7c862a92626e5663bb5e755107095a228a206967.tar.gz
libkeccak-7c862a92626e5663bb5e755107095a228a206967.tar.bz2
libkeccak-7c862a92626e5663bb5e755107095a228a206967.tar.xz
begin makefile + fix warnings and errors
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3878841
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+FLAGS = -std=gnu99
+
+
+OBJ = digest files generalised-spec hex state
+
+
+.PHONY: all
+all: $(foreach O,$(OBJ),obj/libkeccak/$(O).o)
+
+obj/libkeccak/%.o: src/libkeccak/%.c src/libkeccak.h src/libkeccak/*.h
+ @mkdir -p obj/libkeccak
+ $(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+