GNUmakefile 1.58 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 -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