mirror of
https://github.com/jb55/nostril.git
synced 2024-12-25 11:35:51 -05:00
98b712700b
Signed-off-by: William Casarin <jb55@jb55.com>
27 lines
523 B
Makefile
27 lines
523 B
Makefile
|
|
OBJS = sha256.o nostril.o
|
|
HEADERS = hex.h random.h config.h sha256.h
|
|
|
|
all: nostril
|
|
|
|
%.o: %.c config.h
|
|
@echo "cc $<"
|
|
@$(CC) -c $< -o $@
|
|
|
|
nostril: $(HEADERS) $(OBJS)
|
|
$(CC) $(OBJS) -lsecp256k1 -o $@
|
|
|
|
config.h: configurator
|
|
./configurator > $@
|
|
|
|
configurator: configurator.c
|
|
$(CC) $< -o $@
|
|
|
|
clean:
|
|
rm -f nostril *.o
|
|
|
|
tags: fake
|
|
ctags *.c *.h
|
|
|
|
.PHONY: fake
|