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

📄 makefile.in

📁 一个Megaco实现源代码
💻 IN
字号:
# ``The contents of this file are subject to the Erlang Public License,# Version 1.1, (the "License"); you may not use this file except in# compliance with the License. You should have received a copy of the# Erlang Public License along with this software. If not, it can be# retrieved via the world wide web at http://www.erlang.org/.# # Software distributed under the License is distributed on an "AS IS"# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See# the License for the specific language governing rights and limitations# under the License.# # The Initial Developer of the Original Code is Ericsson Utvecklings AB.# Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings# AB. All Rights Reserved.''# #     $Id$TYPE = debugifeq ($(TYPE),debug)ERL_COMPILE_FLAGS += -Ddebug -Wendifinclude ../../vsn.mkinclude ../../rules.mk# ----------------------------------------------------# The following variables differ on different systems, we set# reasonable defaults, if something different is needed it should# be set for that system only.# ----------------------------------------------------CC          = @CC@CFLAGS      = @DED_CFLAGS@LIBS        = @LIBS@THREAD_LIBS = @THREAD_LIBS@# ----------------------------------------------------# Release directory specification# ----------------------------------------------------APPDIR = $(shell (dirname $(shell (dirname $(shell pwd)))))PROGRAM = mgIC_DIR := $(shell echo 'io:format("~s~n",[code:lib_dir(ic)]),halt().' | erl | sed 's,^[0-9]*> *,,g' | tail +2)EI_DIR := $(shell echo 'io:format("~s~n",[code:lib_dir(erl_interface)]),halt().' | erl | sed 's,^[0-9]*> *,,g' | tail +2)ifeq ($(DEBUG),true)CFLAGS = -ggdb -Wall $(IFLAGS)elseCFLAGS += -Wall $(IFLAGS)endifLDLIBS += -lmegaco_session -lic -lerl_interface -lei $(LIBS)ifeq ($(THREADS),pthreads)CFLAGS += -D_REENTRANT -DPTHREADS LDLIBS += $(THREAD_LIBS)endifCFLAGS += -DVERSION="\"$(MEGACO_SESSION_VSN)\""# ----------------------------------------------------# Target Specs# ----------------------------------------------------# Own C-server filesCMOD = mg mg_userOBJS = $(CMOD:=.o)# IncludesIFLAGS = -I$(APPDIR)/include \	 -I$(IC_DIR)/include \	 -I$(EI_DIR)/include# Library pathsLDFLAGS += -L$(APPDIR)/priv/lib \	   -L$(IC_DIR)/priv/lib \	   -L$(EI_DIR)/lib# ----------------------------------------------------# Targets# ----------------------------------------------------all: $(PROGRAM)gen: debug:	@${MAKE} TYPE=debugclean:	rm -f $(OBJS) $(PROGRAM) core docs:info:	@echo ""	@echo "APPDIR  = $(APPDIR)"	@echo "PROGRAM = $(PROGRAM)"	@echo "CMOD    = $(CMOD)"	@echo "OBJS    = $(OBJS)"	@echo ""	@echo "CC          = $(CC)"	@echo "CFLAGS      = $(CFLAGS)"	@echo "LIBS        = $(LIBS)"	@echo "THREAD_LIBS = $(THREAD_LIBS)"	@echo ""	@echo "CFLAGS  = $(CFLAGS)"	@echo "LDFLAGS = $(LDFLAGS)"	@echo "LDLIBS  = $(LDLIBS)"	@echo ""# ----------------------------------------------------#	Dependency# ----------------------------------------------------mg.o: mg.c mg.h verbose.hmg_user.o: mg_user.c mg_user.h mg.h verbose.h$(PROGRAM): $(OBJS)	@printf "\n\t$(PROGRAM) <- $(OBJS)\n\t"	$(CC) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS) $(LDLIBS)

⌨️ 快捷键说明

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