aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 3878841e0051024fac26de8f866c9a55f3a7dffe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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 $@ $<