?? makefile
字號:
############################################################################### Copyright (c) 2000-2003 Intel Corporation ## All rights reserved. #### Redistribution and use in source and binary forms, with or without ## modification, are permitted provided that the following conditions are met: #### * Redistributions of source code must retain the above copyright notice, ## this list of conditions and the following disclaimer. ## * Redistributions in binary form must reproduce the above copyright notice, ## this list of conditions and the following disclaimer in the documentation ## and/or other materials provided with the distribution. ## * Neither name of Intel Corporation nor the names of its contributors ## may be used to endorse or promote products derived from this software ## without specific prior written permission.## ## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ## ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, ## EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, ## PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR ## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY ## OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING## NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ## SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.#############################################################################MAKE = makeifdef TARGETDIR_PATH=$(TARGET)/CROSS=$(TARGET)-CC=$(CROSS)gccAR=$(CROSS)arLD=$(CROSS)ldSTRIP=$(CROSS)stripelseCC = gccAR = arLD = ldSTRIP = stripendififeq ($(INSURE),1)CC=insure -pthreadendififeq ($(DEBUG),1)TARGET_OUTPUT=../bin/debug/$(DIR_PATH)libupnp.soelseTARGET_OUTPUT=../bin/$(DIR_PATH)libupnp.soendififndef JAVA_DIRJAVA_DIR= /usr/java/jdk1.3endifSUBDIRS = ssdp soap genlib gena urlconfig api uuidifeq ($(JNI),1)#LIBS+= $(JAVA_DIR)/jre/lib/i386/client/libjvm.so ../../ixml/bin/libixmlJNI.soLIBS+= ../../ixml/bin/libixmlJNI.soSUBDIRS += jniendififeq ($(EFENCE),1)LIBS+= -lefence endifINCLUDES = -I inc -I ../inc -I inc/toolsC2FLAGS = -Wall $(DEFS) -shared -Wl,-soname,libupnp.soifeq ($(DEBUG),1)DBG=DEBUG=1LIBS+=../bin/debug/$(DIR_PATH)libthreadutil_dbg.so ../bin/debug/$(DIR_PATH)libixml.soLIBDEPS += ../bin/debug/$(DIR_PATH)libthreadutil_dbg.so ../bin/debug/$(DIR_PATH)libixml.soOBJECT_DIR = lib/debug/$(DIR_PATH)elseDBG=LIBS+=../bin/$(DIR_PATH)libthreadutil.so ../bin/$(DIR_PATH)libixml.soLIBDEPS += ../bin/$(DIR_PATH)libthreadutil.so ../bin/$(DIR_PATH)libixml.soOBJECT_DIR = lib/$(DIR_PATH)endifOBJECTS = $(OBJECT_DIR)api.o $(OBJECT_DIR)/ssdp.o $(OBJECT_DIR)/soap.o $(OBJECT_DIR)/uuid.o\ $(OBJECT_DIR)/miniserverall.o $(OBJECT_DIR)/service_table.o \ $(OBJECT_DIR)/uriall.o $(OBJECT_DIR)/client_table.o $(OBJECT_DIR)/utilall.o \ $(OBJECT_DIR)/netall.o $(OBJECT_DIR)/httpall.o $(OBJECT_DIR)/urlconfigall.o \ $(OBJECT_DIR)/gena.oifeq ($(JNI),1)OBJECTS += lib/jniupnpall.oendififeq ($(STATIC),1)all: $(LIBDEPS) @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i $(DBG); done $(AR) r ../bin/libupnp.a $(OBJECTS)elseall: @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i $(DBG); done $(CC) $(C2FLAGS) $(OBJECTS) -o $(TARGET_OUTPUT) $(LD_PATH) $(LIBS)endifclean: @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -