aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: c07470aca37a873a93cd23d7ff63ae3a85973a66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
LIBHAL = ../../../sw/libhal
CFLAGS = -Wall -Wextra -g -I$(LIBHAL)

all: hashsig

hashsig: hashsig_naive.o xdr.o errorstrings.o
	$(CC) -o $@ $^ -lcrypto

xdr.o: $(LIBHAL)/xdr.c
	$(CC) -c $(CFLAGS) -o $@ $^

errorstrings.o: $(LIBHAL)/errorstrings.c
	$(CC) -c $(CFLAGS) -o $@ $^

clean:
	rm -f hashsig hashsig_naive.o xdr.o errorstrings.o