############################################################
# The main makefile which will call subdirectory makes
#  Copyright(c) 2011 IIT Kharagpur. All Rights Reserved.
############################################################
DBG=-DDBGLEVEL2
LIBS=-lgmp -lrt
OBJS= primitives.o mrshs256.o reduction.o kem.o

all: kem

kem: kem.o ${OBJS}
	gcc -O3 -I. -o kem ${OBJS} ${LIBS}

.c.o: 
	gcc -O3 -I. -c $<



genkey: primitives.c
	gcc -O3 -I. -D__GENERATE_KEY__ primitives.c -o genkey


clean:
	rm -f *.o kem genkey
