-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (25 loc) · 799 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# CC = m68k-next-nextstep3-gcc
CC = i386-next-nextstep3-gcc
# Where to find openssl distribution
SSL_DIR=/me/openssl-1.0.2l.dirty
# Flags to pass to compiler
DEBUG_LEVEL = -g -DNDEBUG=1
EXTRA_CFLAGS = -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror
CFLAGS = $(DEBUG_LEVEL) $(EXTRA_CFLAGS)
# Arch
#ARCH = $(`hostinfo|awk '/Processor type:/ {print $3}'`
# Flags to pass to C pre-processor
CPPFLAGS = -I$(SSL_DIR)/include
# Flags to pass to linker.
LDFLAGS = -L$(SSL_DIR)
# Libraries to link with.
LDLIBS = -lcrypto $(SSL_DIR)/getattr.o
PROGS = t-rsa-$(ARCH).exe t-hmac-$(ARCH).exe
OBJS = t-rsa.o t-hmac.o
.PHONY: all
all: $(PROGS)
$(OBJS):
$(CC) $(CPPFLAGS) $(CFLAGS) -o $*-$(ARCH).exe $< $(LDFLAGS) $(LDLIBS)
$(PROGS): $(OBJS)
clean:
rm -f ${PROGS}