nostril/Makefile
William Casarin 68ff7a6282 cflags
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-14 08:17:10 -07:00

28 lines
562 B
Makefile

CFLAGS = -Wall -O2
OBJS = sha256.o nostril.o
HEADERS = hex.h random.h config.h sha256.h
all: nostril
%.o: %.c config.h
@echo "cc $<"
@$(CC) $(CFLAGS) -c $< -o $@
nostril: $(HEADERS) $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -lsecp256k1 -o $@
config.h: configurator
./configurator > $@
configurator: configurator.c
$(CC) $< -o $@
clean:
rm -f nostril *.o
tags: fake
ctags *.c *.h
.PHONY: fake