⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 Upnp开发包文件
💻
字号:
############################################################################### 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.#############################################################################ifeq ($(JNI),1)  TARGET_OUTPUT = libixmlJNI.soelse  TARGET_OUTPUT = libixml.soendififdef TARGET  CC    = $(TARGET)-gcc  AR    = $(TARGET)-ar  LD    = $(TARGET)-ld  STRIP = $(TARGET)-stripelse  CC    = gcc  AR    = ar  LD    = ld  STRIP = stripendififeq ($(INSURE), 1)  CC = insureendififeq ($(DEBUG), 1)  OBJ_DIR     = obj/debug  EXT_LIB_DIR = debugelse  OBJ_DIR     = obj  EXT_LIB_DIR =endififdef TARGET  OBJ_DIR     := $(OBJ_DIR)/$(TARGET)  EXT_LIB_DIR := $(EXT_LIB_DIR)/$(TARGET)endifLFLAGS=-L ../../pil/lib/$(EXT_LIB_DIR)CFLAGS+=-Wall -I./ -I../inc -I../../pil/incDYN_CFLAGS=-fPICifeq ($(DEBUG),1)  DEBUG_FLAGS = -O -g -DDEBUGelse  DEBUG_FLAGS = -Os -DNDEBUG  STRIPU      = $(STRIP) $(OBJ_DIR)/$(TARGET_OUTPUT)endififeq ($(DEBUG),1)  IXML_DIR = ../bin/debug/$(TARGET)else  IXML_DIR = ../bin/$(TARGET)endififeq ($(JNI),1)  OBJ = $(OBJ_DIR)/ixmlJNI.o  LIBS = $(IXML_DIR)libixml.soelse   OBJ = $(OBJ_DIR)/ixml.o       $(OBJ_DIR)/node.o $(OBJ_DIR)/ixmlparser.o \        $(OBJ_DIR)/ixmlmembuf.o $(OBJ_DIR)/nodeList.o \        $(OBJ_DIR)/element.o    $(OBJ_DIR)/attr.o $(OBJ_DIR)/document.o \        $(OBJ_DIR)/namedNodeMap.o  LIBS = endifVERSION=1.2.1CFLAGS += -fPIC -c -WallC2FLAGS = -Wall $(DEFS) -shared -Wl,-soname,$(TARGET_OUTPUT)INCLUDES = -I. -I../inc -Iincifeq ($(EFENCE),1)  C2FLAGS +=  -lefenceendif$(OBJ_DIR)/%.o:	%.c	@-mkdir -p $(OBJ_DIR)	$(CC) $(CFLAGS) $(DEBUG_FLAGS) $(INCLUDES) -c $< -o $@$(OBJ_DIR)/$(TARGET_OUTPUT): $(OBJ)	$(CC) $(C2FLAGS) $(OBJ) $(LIBS) -o $(OBJ_DIR)/$(TARGET_OUTPUT)	$(STRIPU)	@-mkdir -p $(IXML_DIR)	@cp $(OBJ_DIR)/$(TARGET_OUTPUT) $(IXML_DIR)MORE_FLAGS = -I$(JAVA_DIR)/include -I$(JAVA_DIR)/include/linux$(OBJ_DIR)/ixmlJNI.o: jni/ixmlJNI.c  $(IXML_DIR)/ixml.jar	@-mkdir -p $(OBJ_DIR)	$(CC) $(CFLAGS) $(MORE_FLAGS) $(DEBUG_FLAGS) $(INCLUDES) -c jni/ixmlJNI.c -o $@$(IXML_DIR)/ixml.jar: 	$(JAVA_DIR)/bin/javac  jni/com/intel/ixml/*.java	cd jni; $(JAVA_DIR)/bin/jar cf ../$@ com/intel/ixml/*.classclean:	@rm -rf $(OBJ_DIR)	@rm $(IXML) -finstall: $(OBJ_DIR)/$(TARGET_OUTPUT)	@if [ ! -d $(PREFIX)/usr/include/upnp ]; then \		install -d $(PREFIX)/usr/include/upnp; \	fi	@if [ ! -d $(PREFIX)/usr/lib ]; then \		install -d $(PREFIX)/usr/lib; \	fi	@install $(IXML_DIR)/$(TARGET_OUTPUT) $(PREFIX)/usr/libuninstall:	@rm -f $(PREFIX)/usr/include/upnp/ixml.h	@rm -f $(PREFIX)/usr/include/upnp/ixmlold.h	@rm -f $(PREFIX)/usr/lib/$(TARGET_OUTPUT)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -