3 CFLAGS
= -Os
-Wall
$(EXTRACFLAGS
) -fPIC
7 ifeq ($(FULL_OPENSSL
),y
)
8 CFLAGS
+= -I
$(TOP
)/openssl
/include -DUSE_OPENSSL
9 LIBS
+= -L
$(TOP
)/openssl
-lssl
-lcrypto
11 CFLAGS
+= -I
$(TOP
)/cyassl
/include -I
$(TOP
)/cyassl
/ctaocrypt
/include
12 LIBS
+= $(TOP
)/cyassl
/src
/.libs
/libcyassl.a
18 all: libmssl.so libmssl.a
21 $(CC
) -shared
-o
$@
$^
$(LIBS
)
30 rm -f .
*.depend
*.o
*.so
*.a
33 @echo
" [mssl] Installing..."
34 install -D libmssl.so
$(INSTALLDIR
)/usr
/lib
/libmssl.so
35 $(STRIP
) $(INSTALLDIR
)/usr
/lib
/libmssl.so
39 @
$(CC
) $(CFLAGS
) -c
$<
41 .depend
: $(OBJS
:%.o
=%.c
)
42 @
$(CC
) $(CFLAGS
) -M
$^
> .depend
45 @
$(CC
) $(CFLAGS
) -M
$< > $@
47 -include $(OBJS
:%.o
=.
%.depend
)