diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-04 19:50:07 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-04 19:50:07 +0100 |
commit | 7c862a92626e5663bb5e755107095a228a206967 (patch) | |
tree | a323bfce728b991f30cf1bdc3ddbf9490d5022d6 /Makefile | |
parent | add files.o (diff) | |
download | libkeccak-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-- | Makefile | 13 |
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 $@ $< + |