mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-02-18 16:33:01 +00:00
Makefile more compatible with WINDOWS environment
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
# To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS
|
||||
# To compile on MinGW: add "-lws2_32" to LDFLAGS
|
||||
# To compile on MinGW: add "-lws2_32" to LDFLAGS or define WINDOWS in your env
|
||||
# To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
|
||||
|
||||
CFLAGS += -I../include -D_FILE_OFFSET_BITS=64 -Wall -W -Wdeclaration-after-statement
|
||||
@@ -185,5 +185,10 @@ x509/cert_req: x509/cert_req.c ../library/libpolarssl.a
|
||||
$(CC) $(CFLAGS) $(OFLAGS) x509/cert_req.c $(LDFLAGS) -o $@
|
||||
|
||||
clean:
|
||||
ifndef WINDOWS
|
||||
rm -f $(APPS)
|
||||
endif
|
||||
ifdef WINDOWS
|
||||
del /S /Q /F *.o *.exe
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user