nostril/Makefile

32 lines
481 B
Makefile
Raw Normal View History

CFLAGS = -Wall -Og
OBJS = sha256.o nostril.o aes.o base64.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)
2022-07-06 11:19:23 -04:00
$(CC) $(CFLAGS) $(OBJS) -lsecp256k1 -o $@
install: nostril
mkdir -p $(PREFIX)/bin
cp nostril $(PREFIX)/bin
2022-07-06 11:19:23 -04:00
config.h: configurator
./configurator > $@
2022-07-06 11:19:23 -04:00
configurator: configurator.c
$(CC) $< -o $@
clean:
rm -f nostril *.o
tags: fake
ctags *.c *.h
.PHONY: fake