#
# Make rules common to all target platforms.
# This file is included by the individual target makefiles in the
# lower level platform build directories.
#
ifndef DS_ROOT
TARGETS = libcsl.a libcsl_dev.a
endif

CFILES = aes.c aes_api.c  aes_imp.c sha1.c  integer_math.c poly_math.c elliptic_math.c algorithms.c  convecc.c convrsa.c cslecc.c

default: $(TARGETS)

libcsl.a: $(OBJECTS) cslrsa.o
	ar cru $@ $?

cslrsa_dev.o: cslrsa.c
	$(CC) $(CFLAGS) -DRVL_DEVEL -c $^ -o $@

libcsl_dev.a: $(OBJECTS) cslrsa_dev.o
	ar cru $@ $?

