GNUmakefile
1.58 KB
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
44
45
PRDEPTH = ../..
include $(PRDEPTH)/BBdefs
CC=$(HOST_CC)
GCINCS=-D_LANGUAGE_C -I$(ROOT)/host_include -I$(ROOT)/usr/include
GLDOPTS=-L$(ROOT)/host_lib
LLDLIBS = -lcryptoX86 -lrsaX86
OPTIMIZER = -g -DDEBUG
TARGETS = stategen sigcheck sigadd listcheck
default : $(TARGETS)
include $(PRDEPTH)/BBrules
exports install: default
$(INSTALL) -F /usr/sbin $(TARGETS)
stategen: stategen.o
gcc -g -I/usr/local/ssl/include/ -L$(ROOT)/host_lib -o stategen stategen.o -lrsaX86 -lcryptoX86 -L/usr/local/ssl/lib -lcrypto -lssl
stategen.o: stategen.c
gcc -g -c -I/usr/local/ssl/include/ -D_LANGUAGE_C -I$(ROOT)/host_include -I$(ROOT)/usr/include -L$(ROOT)/host_lib stategen.c
sigcheck: sigcheck.o
gcc -Wall -g -I/usr/local/ssl/include/ -L$(ROOT)/host_lib -o sigcheck sigcheck.o -lrsaX86 -lcryptoX86 -L/usr/local/ssl/lib -lcrypto -lssl
sigcheck.o: sigcheck.c
gcc -Wall -g -c -I/usr/local/ssl/include/ -D_LANGUAGE_C -I$(ROOT)/host_include -I$(ROOT)/usr/include -L$(ROOT)/host_lib sigcheck.c
sigadd: sigadd.o
gcc -Wall -g -I/usr/local/ssl/include/ -L$(ROOT)/host_lib -o sigadd sigadd.o -lrsaX86 -lcryptoX86 -L/usr/local/ssl/lib -lcrypto -lssl
sigadd.o: sigadd.c
gcc -Wall -g -c -I/usr/local/ssl/include/ -D_LANGUAGE_C -I$(ROOT)/host_include -I$(ROOT)/usr/include -L$(ROOT)/host_lib sigadd.c
listcheck: listcheck.o
gcc -Wall -g -I/usr/local/ssl/include/ -L$(ROOT)/host_lib -o listcheck listcheck.o -lrsaX86 -lcryptoX86 -L/usr/local/ssl/lib -lcrypto -lssl
listcheck.o: listcheck.c
gcc -Wall -g -c -I/usr/local/ssl/include/ -D_LANGUAGE_C -I$(ROOT)/host_include -I$(ROOT)/usr/include -L$(ROOT)/host_lib listcheck.c