GNUmakefile 1.35 KB

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