aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
blob: 6ff396360401c5d6aeb2e13ab51f792b49c9b7cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CRYPTLIB_DIR := /Users/sra/cryptlib/cryptlib-3.4.2

CFLAGS	+= -g -I${CRYPTLIB_DIR} -DAES_KEY_WRAP_SELF_TEST
LDFLAGS += -g -L${CRYPTLIB_DIR} -lcl

EXE := aes_key_wrap
SRC := $(wildcard *.c)
OBJ := $(SRC:.c=.o)

all: ${EXE}

clean:
	rm -f *.o ${EXE}

${EXE}: ${OBJ}
	${CC} ${LDFLAGS} -o $@ $^

aes_key_wrap.o = aes_key_wrap.c aes_key_wrap.h

test: ${EXE}
	./${EXE}