1 CC=gcc 2 CFLAGS=-Wall -Werror -fPIC -I/usr/include/openssl 3 LIBS=-lcrypto -lssl 4 5 %.o: %.c 6 $(CC) $(CFLAGS) -c -o $@ $< $(LIBS) 7 8 OBJS=ec_helper_native.o 9 10 ec_helper_native: $(OBJS) 11 $(CC) -shared -o ec_helper_native.so $(OBJS) $(LIBS) 12 13 clean: 14 rm *.o ec_helper_native.so 15