############################################################################# # IPMIPMN.MK # # Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmippm.mk,v $ $Revision: 1.7 $ # $Source: /home/interpeak/CVSRoot/ipmippm/gmake/ipmippm.mk,v $ # $Author: jhorteli $ $Date: 2009-04-23 16:51:57 $ # $State: Exp $ $Locker: $ # # Copyright 2000-2006 Interpeak AB (http://www.interpeak.se). All rights reserved. # ############################################################################# # # Copyright (c) 2006 Wind River Systems, Inc. # # The right to copy, distribute, modify or otherwise make use # of this software may be licensed only pursuant to the terms # of an applicable Wind River license agreement. # # modification history # -------------------- # 01a,31aug06,kch Build ipmipmn_config.o only if $(SKIP_CONFIG) is either # not defined or set to anything other than true. # ifeq ($(IPMIPPM),) ifneq ($(IPCOM_USE_INET),no) IPMIPPM := yes ############################################################################# # PRODUCT ########################################################################### IPPROD ?= ipmippm ############################################################################# # DEFINE ########################################################################### IPDEFINE += -DIPMIPPM ############################################################################# # INCLUDE ########################################################################### IPINCLUDE += -I$(IPMIPPM_ROOT)/config IPINCLUDE += -I$(IPMIPPM_ROOT)/include IPINCLUDE += -I$(IPMIPPM_ROOT)/src ############################################################################# # OBJECTS ########################################################################### # Common files # Library files. IPLIBOBJECTS += ipmippm_client.o IPLIBOBJECTS += ipmippm_reg.o IPLIBOBJECTS += ipmippm_attr.o IPLIBOBJECTS += ipmippm_if.o IPLIBOBJECTS += ipmippm_pktbuf.o IPLIBOBJECTS += ipmippm_cli.o IPLIBOBJECTS += ipmippm_main.o IPLIBOBJECTS += ipmippm_pmipv4.o ifneq ($(IPPORT),lkm) # If las, don't include the entry point files. ifneq ($(IPPORT),las) # Entry point files. IPLIBOBJECTS += ipmippm.o IPLIBOBJECTS += ipmippm_cmd_pm.o endif # LAS # Configuration IPLIBOBJECTS_C += ipmippm_config.o # Compiles the xxx_config.o if the $SKIP_CONFIG macro is either not defined # or set to anything other than true. ifneq ($(SKIP_CONFIG),true) IPLIBOBJECTS += $(IPLIBOBJECTS_C) endif ############################################################################# # VPATH ########################################################################### IPSRCDIRS += $(IPMIPPM_ROOT)/src $(IPMIPPM_ROOT)/config ############################################################################# # LIB ########################################################################### IPLIBS += $(IPLIBROOT)/libipmippm.a ############################################################################# # BINARIES ########################################################################### ifeq ($(IPPORT),las) # Path to binaries IPCMDDIR := $(IPOBJDIR)/bin IPDAEMONDIR := $(IPOBJDIR)/sbin # List of shell commands to build IPMIPPMCMDS = pm _IPIPMIPPMCMDS = $(addprefix $(IPCMDDIR)/,$(IPMIPPMCMDS)) # List of daemons to build IPMIPPMD = pmd _IPMIPPMD = $(addprefix $(IPDAEMONDIR)/,$(IPMIPPMD)) bin: $(_IPIPMIPPMCMDS) $(_IPMIPPMD) $(IPOBJDIR)/ipmippm_cmd_pm.o: $(IPMIPPM_ROOT)/src/ipmippm_cmd_pm.c @$(IPECHO) "+++ Compiling IPMIPPM shell command $<" $(IPVERB)$(IPCC) -Dipmippm_cmd_pm=ipcom_cmd_entry_point $(IPCFLAGS) -o $@ $< $(IPOBJDIR)/ipmippm.o: $(IPMIPPM_ROOT)/src/ipmippm.c @$(IPECHO) "+++ Compiling IPMIPPM daemon $<" $(IPVERB)$(IPCC) -Dipmippm_proc=ipcom_daemon_entry_point -Dipmippm_create=ipcom_daemon_create $(IPCFLAGS) -o $@ $< # Linking shell commands and daemons $(IPCMDDIR)/pm: $(IPOBJDIR)/ipmippm_cmd_pm.o $(IPOBJDIR)/ipcom_shell_cmd_stub.o @$(IPECHO) "+++ Linking IPMIPPM shell command $@" $(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS) $(IPDAEMONDIR)/pmd: $(IPOBJDIR)/ipmippm.o $(IPOBJDIR)/ipcom_daemon_stub.o @$(IPECHO) "+++ Linking IPMIPPMD daemon $@" $(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS) endif # LAS endif # LKM endif # IPCOM_USE_INET endif # IPMIPPM ########################################################################### # END OF IPMIPPM.MK ###########################################################################