MIPSmakefile 960 Bytes
include $(ROOT)/usr/include/make/commondefs
include $(ROOT)/usr/include/make/PRdefs

TARGETS = libcryptoMIPS.a

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


OPTIMIZER=
LCOPTS += -mips2 -Os -g -fno-builtin -Wall
LLDOPTS += -Ttext 0x80000000 -N -G 0
LDIRT += cpu.log*

ifdef DEBUG
LCOPTS += -DDEBUG -g
endif

default : $(TARGETS) 

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

exports install: default headers
	$(INSTALL) -m 444 -F /usr/lib -src $(TARGETS) libcrypto.a


LDIRT += $(TARGETS)

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

include $(COMMONRULES)