############################################################################# # IPRADIUS.MK # # Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipradius.mk,v $ $Revision: 1.2 $ # $Source: /home/interpeak/CVSRoot/ipradius/gmake/ipradius.mk,v $ # $Author: lob $ $Date: 2006-09-13 14:19:37 $ # $State: Exp $ $Locker: $ # # INTERPEAK_COPYRIGHT_STRING # ############################################################################# ############################################################################# # PRODUCT ########################################################################### IPPROD ?= ipradius ############################################################################# # DEFINE ########################################################################### IPDEFINE += -DIPRADIUS ############################################################################# # INCLUDE ########################################################################### IPINCLUDE += -I$(IPRADIUS_ROOT)/config IPINCLUDE += -I$(IPRADIUS_ROOT)/include IPLIBINCLUDE += -I$(IPRADIUS_ROOT)/src ############################################################################# # OBJECTS ########################################################################### # Configuration IPLIBOBJECTS_C += ipradius_config.o # Main IPLIBOBJECTS += ipradius.o IPLIBOBJECTS += ipradius_cmd_radiusc.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 += $(IPRADIUS_ROOT)/src $(IPRADIUS_ROOT)/config ############################################################################# # LIB ########################################################################### IPLIBS += $(IPLIBROOT)/libipradius.a ############################################################################# # BINARIES ############################################################################# ifeq ($(IPPORT),las) # Path to binaries IPCMDDIR := $(IPOBJDIR)/bin # List of shell commands to build IPRADIUSSHELLCMDS = radiusc _IPRADIUSSHELLCMDS = $(addprefix $(IPCMDDIR)/,$(IPRADIUSSHELLCMDS)) bin: $(_IPRADIUSSHELLCMDS) $(IPOBJDIR)/ipradius_cmd_%.o: $(IPRADIUS_ROOT)/src/ipradius_cmd_%.c @$(IPECHO) "+++ Compiling IPRADIUS shell command $<" $(IPVERB)$(IPCC) -Dipradius_cmd_$*=ipcom_cmd_entry_point $(IPCFLAGS) -o $@ $< $(IPCMDDIR)/%: $(IPOBJDIR)/ipradius_cmd_%.o $(IPOBJDIR)/ipcom_shell_cmd_stub.o @$(IPECHO) "+++ Linking IPRADIUS shell command $@" $(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS) endif ########################################################################### # END OF IPRADIUS.MK ###########################################################################