mirror of
https://github.com/jb55/nostril.git
synced 2024-11-21 16:29:06 -05:00
251031f5a5
Signed-off-by: William Casarin <jb55@jb55.com>
32 lines
645 B
Makefile
32 lines
645 B
Makefile
|
|
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)
|
|
$(CC) $(CFLAGS) $(OBJS) -lsecp256k1 -o $@
|
|
|
|
install: nostril
|
|
mkdir -p $(PREFIX)/bin
|
|
cp nostril $(PREFIX)/bin
|
|
|
|
config.h: configurator
|
|
./configurator > $@
|
|
|
|
configurator: configurator.c
|
|
$(CC) $< -o $@
|
|
|
|
clean:
|
|
rm -f nostril *.o
|
|
|
|
tags: fake
|
|
ctags *.c *.h
|
|
|
|
.PHONY: fake
|