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

📄 makefile

📁 hifn ipsec固件下载工具
💻
字号:
#----------------------------------------------------------------------------## Copyright (c) 2004 by Hifn, Inc, Los Gatos, CA, U.S.A.# All Rights Reserved.## This  software is furnished to licensee under a software license  agreement# and may be used and copied only in accordance with the terms and conditions# of such license and with the inclusion of the above Copyright Notice.  This # software  or  any  other  copies  thereof may not be provided or  otherwise # made  available  to any  other person.  No title to and  ownership  of  the  # software   is   hereby   transferred   and   licensee  is  subject  to  all # confidentiality  provisions set forth in the  software  license  agreement.## The information in this software is  subject to change without notice.##----------------------------------------------------------------------------#----------------------------------------------------------------------------#  $Id: @(#) Makefile 1.9@(#) $#----------------------------------------------------------------------------#----------------------------------------------------------------------------# Makefile for example programs## The following targets are implemented:##  make          - Builds download_configure#  make clean    - Cleans out the bin directory##----------------------------------------------------------------------------PROJECT_ROOT = ../../..include $(PROJECT_ROOT)/Makefile.defaultsSRC_DIR = ../src# If SM-API is available the build will be different, as we will have the# capability to send a policy.SM_INSTALLED = $(shell if [ -d $(SM) ]; then echo -n true; fi)INCLUDES = -I$(SRC_DIR) -I$(PROJECT_INC)CFLAGS += $(INCLUDES)VPATH = $(SRC_DIR)LDLIBS += -lpthread# If SM-API is available, add it as well.  SM-API requires RPCifeq ($(SM_INSTALLED), true)    LIBS += $(PROJECT_LIB)/libhftc_sm.a    LIBS += $(PROJECT_LIB)/libhftc_rpc.aendifLIBS += $(PROJECT_LIB)/libhftc_download.a LIBS += $(PROJECT_LIB)/libhftc_app_utils.a LIBS += $(PROJECT_LIB)/libhftc_ft_min.a LIBS += $(PROJECT_LIB)/libhftc_base.aEXE_SRCS = download_configure.cUTIL_SRCS = download.c load_config_params.c enable_gmacs.c# The utility sources differ depending on whether ike is available or noifeq ($(SM_INSTALLED), true)    UTIL_SRCS += defpolicy_ike.celse    UTIL_SRCS += defpolicy_noike.cendifUTIL_OBJS = $(UTIL_SRCS:.c=.o)SRCS = $(EXE_SRCS) $(UTIL_SRCS)OBJS = $(SRCS:.c=.o)EXE_FILE = $(EXE_SRCS:.c=).PHONY: all clean runtestsall: $(EXE_FILE)$(EXE_FILE): $(UTIL_OBJS) $(LIBS)clean:	-$(RM) $(RMFLAGS) *.o *.d *.exe core $(EXE_FILE)clean-installed-files:	-$(RM) $(RMFLAGS) $(PROJECT_BIN)/$(EXE_FILE)install: all	@echo "   $(EXE_FILE)"	@exe_dir=`pwd` && \	cd $(PROJECT_BIN)  && \	$(INSTALL_CMD) $$exe_dir/$(EXE_FILE) .runtests:	@./download_configure -r $(PROJECT_ROOT) --bypass-policy; \	if [ $$? != 0 ]; then echo "0/1 tests passed."; exit 1; \			 else echo "1/1 tests passed."; fi;# If the make target does not contain 'clean', then include the # .d files for each .c file.  ifeq (, $(findstring clean, $(MAKECMDGOALS)))-include $(SRCS:.c=.d)endif#-----------------------------------------------------------------------------# REV #  DATE       BY    REVISION DESCRIPTION# -----  --------  -----  ----------------------------------------------------# 0001   02/28/05   rlh    Initial version; adapted from #                          ut-dl/tests/bin/linux/Makefile## 0002   03/04/05   msz    No longer need DownloadUtil.c included.# # 0003   06/05/06   rlh   V2.0 changes: made lib names consistent, moved#                         all subsystem dirs into top-level 'src' dir.#                         Use base lib for unit table and OS layer.#                         Fixed dependency rule to work correctly for libs.## 0004   07/13/06   msz   For some reason the line that determines if the#                         sm-api directory is present wasn't working.  Changed#                         the line so it works now.  $$SM to $(SM)## 0005   08/07/06   msz   Bringover of 1.2 change above (SM) messed some#                         things up.  This fixes the bringover/merge.## 0006   08/25/06   rlh   Added rule for install & cleaning installed files; #     	       	     	  moved Makefile.defaults to root; changed to use#     	       	     	  global macro names now that it uses #     	       	     	  Makefile.defaults; Fixed .c=.d rule to work w/ new#     	       	     	  clean-installed-files target.#     	       	     	  # 0007   08/30/06   rlh   Add './' to download_configure call for runtests;#     	       	     	  use '-r' flag to use defaults.#-----------------------------------------------------------------------------

⌨️ 快捷键说明

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