X86makefile 1.17 KB
#!smake
#

PRDEPTH = ../..
include $(PRDEPTH)/PRdefs
CC=$(HOST_CC)
GCINCS=-I$(ROOT)/host_include -I/usr/include  -D_LANGUAGE_C
LCOPTS += -g -DINTEL_GCC -DX86_BUILD -Wall
OPTIMIZER=-O2

TARGETS = libcryptoX86.a

CFILES = aes.c sha1.c aes_api.c  aes_imp.c sha1.c  bb_nn.c poly_math.c elliptic_math.c algorithms.c bbtoolsapi.c 

default: $(TARGETS)

headers:
	$(INSTALL) -m 444 -F /host_include -src aes_api.h aes_api.h
	$(INSTALL) -m 444 -F /host_include -src aes.h aes.h
	$(INSTALL) -m 444 -F /host_include -src sha1.h sha1.h 
	$(INSTALL) -m 444 -F /host_include -src algorithms.h algorithms.h
	$(INSTALL) -m 444 -F /host_include -src bbtoolsapi.h  bbtoolsapi.h
	$(INSTALL) -m 444 -F /host_include -src elliptic_math.h  elliptic_math.h
	$(INSTALL) -m 444 -F /host_include -src poly_math.h  poly_math.h
	$(INSTALL) -m 444 -F /host_include -src binary_field.h  binary_field.h
	$(INSTALL) -m 444 -F /host_include -src bb_nn.h  bb_nn.h



exports install: default headers
	$(INSTALL) -m 444 -F /host_lib -src $(TARGETS) libcryptoX86.a

server-export: 
	$(INSTALL) -m 444 -F /../export_headers $(TARGETS)


$(TARGETS): %: %($(OBJECTS))
	ar cru $@ $?
	rm -f $?

LDIRT += $(TARGETS)

include $(COMMONRULES)