CC =     gcc
CONF =
CFLAGS = $(CONF) -O2 -Wall -I.


NAME1=	node-gen

OBJS1 = node-gen.o utils.o put-utils.o fdab.o yeswrap.o \
	monocypher.o yespower-opt.o sha256.o

NAME2=  ct-man	

OBJS2 = ct-man.o utils.o yeswrap.o yespower-opt.o sha256.o

DIRLINKS = monocypher yespower

all:	$(NAME1) $(NAME2)

%.o:	%.c $(DIRLINKS)
	$(CC) $(CFLAGS) -c $< -o $@

%:	%.o
	$(CC) -static $^ -o $@

monocypher:
	ln -s . $@

yespower:
	ln -s . $@

$(NAME1): $(OBJS1)

$(NAME2): $(OBJS2)

clean:
	rm -f *.o $(NAME1) $(NAME2) $(DIRLINKS)

