GNUmakefile
1.35 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
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
ifdef DEBUG
OPTIMIZER += -DDEBUG
endif
LCOPTS += -Wall
TARGETS = pkigen certsgen idgen bbcert
default : $(TARGETS)
include $(PRDEPTH)/BBrules
exports install: default
$(INSTALL) -F /usr/sbin $(TARGETS)
$(INSTALL) -m 444 -F /usr/host_data -src cert_bpki.sys cert.sys
$(INSTALL) -m 444 -F /usr/host_data cpbindata
$(INSTALL) -m 444 -F /usr/host_data cpcabindata
$(INSTALL) -m 444 -F /usr/host_data tsbindata
$(INSTALL) -m 444 -F /usr/host_data tscabindata
$(INSTALL) -m 444 -F /usr/host_data rootbindata
$(INSTALL) -m 444 -F /usr/host_data cpcert.bin
$(INSTALL) -m 444 -F /usr/host_data cpcacert.bin
$(INSTALL) -m 444 -F /usr/host_data root.key
$(INSTALL) -F /usr/sbin certsgen
certsgen: certsgen.o
$(CCF) -L$(ROOT)/host_lib -o certsgen certsgen.o -lrsaX86 -lcryptoX86 -L/usr/local/ssl/lib -lcrypto -lssl
pkigen: pkigen.o
$(CCF) -L$(ROOT)/host_lib -o pkigen pkigen.o -lrsaX86 -lcryptoX86 -L/usr/local/ssl/lib -lcrypto -lssl
idgen: idgen.o
$(CCF) -L$(ROOT)/host_lib -o idgen idgen.o -lrsaX86 -lcryptoX86 -L/usr/local/ssl/lib -lcrypto -lssl
bbcert: bbcert.o
$(CCF) -L$(ROOT)/host_lib -o bbcert bbcert.o -lcryptoX86 -L/usr/local/ssl/lib -lcrypto -lssl