############################################################################# # IPMCP.MK # # Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmcp.mk,v $ $Revision: 1.7 $ # $Source: /home/interpeak/CVSRoot/ipmcp/gmake/ipmcp.mk,v $ # $Author: ulf $ $Date: 2009-06-08 11:05:21 $ # $State: Exp $ $Locker: $ # # INTERPEAK_COPYRIGHT_STRING # ############################################################################# ifeq ($(IPMCP_MK_INCLUDED),) IPMCP_MK_INCLUDED := yes ############################################################################# # PRODUCT ########################################################################### IPPROD ?= ipmcp ############################################################################# # DEFINE ########################################################################### IPDEFINE += -DIPMCP ############################################################################# # INCLUDE ########################################################################### IPINCLUDE += -I$(IPMCP_ROOT)/config IPINCLUDE += -I$(IPMCP_ROOT)/include IPLIBINCLUDE += -I$(IPMCP_ROOT)/src ############################################################################# # OBJECTS ########################################################################### ifneq ($(IPPORT),las) # Configuration IPLIBOBJECTS_C += ipmcp_config.o # Core IPLIBOBJECTS += ipmcp.o endif IPLIBOBJECTS += ipmcp_cmd.o IPLIBOBJECTS += ipmcp_igmp.o IPLIBOBJECTS += ipmcp_mcast.o IPLIBOBJECTS += ipmcp_mld.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 += $(IPMCP_ROOT)/src $(IPMCP_ROOT)/config ############################################################################# # LIB ########################################################################### IPLIBS += $(IPLIBROOT)/libipmcp.a ############################################################################# # BINARIES ############################################################################# ifeq ($(IPPORT),las) # Path to binaries IPDAEMONDIR := $(IPOBJDIR)/sbin # List of daemons to build IPMCPDAEMONS = mcpd _IPMCPDAEMONS = $(addprefix $(IPDAEMONDIR)/,$(IPMCPDAEMONS)) bin: $(_IPMCPSHELLCMDS) $(_IPMCPDAEMONS) $(IPOBJDIR)/ipmcp.o: $(IPMCP_ROOT)/src/ipmcp.c @$(IPECHO) "+++ Compiling IPMCP deamon $<" $(IPVERB)$(IPCC) -Dipmcp_daemon=ipcom_daemon_entry_point -Dipmcp_create=ipcom_daemon_create $(IPCFLAGS) -o $@ $< $(IPOBJDIR)/ipmcp_config.o: $(IPMCP_ROOT)/config/ipmcp_config.c @$(IPECHO) "+++ Compiling IPMCP deamon $<" $(IPVERB)$(IPCC) -Dipmcp_configure=ipcom_daemon_configure $(IPCFLAGS) -o $@ $< $(IPDAEMONDIR)/mcpd: $(IPOBJDIR)/ipmcp.o $(IPOBJDIR)/ipmcp_config.o $(IPOBJDIR)/ipcom_daemon_stub.o @$(IPECHO) "+++ Linking IPMCP daemon $@" $(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS) endif endif # IPMCP_MK_INCLUDED ########################################################################### # END OF IPMCP.MK ###########################################################################