mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@78 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
67 lines
1.6 KiB
Makefile
67 lines
1.6 KiB
Makefile
#
|
|
# Copyright(C) 2006 Cameron Rich
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
#
|
|
|
|
all : sample
|
|
|
|
include ../../config/.config
|
|
include ../../config/makefile.conf
|
|
|
|
ifndef CONFIG_PLATFORM_WIN32
|
|
|
|
ifdef CONFIG_PLATFORM_CYGWIN
|
|
TARGET=../../$(STAGE)/axssl.exe
|
|
else
|
|
TARGET=../../$(STAGE)/axssl
|
|
endif # cygwin
|
|
|
|
LIBS=../../$(STAGE)
|
|
CFLAGS += -I../../ssl -I../../config
|
|
else
|
|
TARGET=../../$(STAGE)/axssl.exe
|
|
CFLAGS += /I"..\..\ssl" /I"..\..\config"
|
|
endif
|
|
|
|
ifndef CONFIG_C_SAMPLES
|
|
sample:
|
|
|
|
else
|
|
sample : $(TARGET)
|
|
OBJ= axssl.o
|
|
include ../../config/makefile.post
|
|
|
|
ifndef CONFIG_PLATFORM_WIN32
|
|
|
|
$(TARGET): $(OBJ) $(LIBS)/libaxtls.a
|
|
$(LD) $(LDFLAGS) -o $@ $< -L$(LIBS) -laxtls
|
|
ifndef CONFIG_DEBUG
|
|
ifndef CONFIG_PLATFORM_SOLARIS
|
|
strip --remove-section=.comment $(TARGET)
|
|
endif # SOLARIS
|
|
endif # CONFIG_DEBUG
|
|
else # Win32
|
|
|
|
$(TARGET): $(OBJ)
|
|
$(LD) $(LDFLAGS) ..\\..\\config\\axtls.res /out:$@ $^ /libpath:"../../$(STAGE)" axtls.lib
|
|
endif
|
|
|
|
endif # CONFIG_C_SAMPLES
|
|
|
|
clean::
|
|
-@rm -f ../../$(STAGE)/axssl*
|
|
|