1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

fixed win32 build

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@117 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2007-08-29 13:22:46 +00:00
parent f9ee197cff
commit 2bbf4cfd92
15 changed files with 144 additions and 103 deletions

View File

@ -18,22 +18,22 @@
all : sample
include ../../config/.config
include ../../config/makefile.conf
AXTLS_HOME=../..
include $(AXTLS_HOME)/config/.config
include $(AXTLS_HOME)/config/makefile.conf
ifndef CONFIG_PLATFORM_WIN32
ifdef CONFIG_PLATFORM_CYGWIN
TARGET=../../$(STAGE)/axssl.exe
TARGET=$(AXTLS_HOME)/$(STAGE)/axssl.exe
else
TARGET=../../$(STAGE)/axssl
TARGET=$(AXTLS_HOME)/$(STAGE)/axssl
endif # cygwin
LIBS=../../$(STAGE)
CFLAGS += -I../../crypto -I../../ssl -I../../config
LIBS=$(AXTLS_HOME)/$(STAGE)
else
TARGET=../../$(STAGE)/axssl.exe
CFLAGS += /I"..\..\ssl" /I"..\..\config"
TARGET=$(AXTLS_HOME)/$(STAGE)/axssl.exe
endif
ifndef CONFIG_C_SAMPLES
@ -42,12 +42,12 @@ sample:
else
sample : $(TARGET)
OBJ= axssl.o
include ../../config/makefile.post
include $(AXTLS_HOME)/config/makefile.post
ifndef CONFIG_PLATFORM_WIN32
$(TARGET): $(OBJ) $(LIBS)/libaxtls.a
$(LD) $(LDFLAGS) -o $@ $< -L$(LIBS) -laxtls
$(LD) $(LDFLAGS) -o $@ $(OBJ) -L$(LIBS) -laxtls
ifndef CONFIG_DEBUG
ifndef CONFIG_PLATFORM_SOLARIS
strip --remove-section=.comment $(TARGET)
@ -56,11 +56,11 @@ endif # CONFIG_DEBUG
else # Win32
$(TARGET): $(OBJ)
$(LD) $(LDFLAGS) ..\\..\\config\\axtls.res /out:$@ $^ /libpath:"../../$(STAGE)" axtls.lib
$(LD) $(LDFLAGS) $(AXTLS_HOME)/config/axtls.res /out:$@ $^ /libpath:"$(AXTLS_HOME)/$(STAGE)" axtls.lib
endif
endif # CONFIG_C_SAMPLES
clean::
-@rm -f ../../$(STAGE)/axssl*
-@rm -f $(AXTLS_HOME)/$(STAGE)/axssl*