# /* # * Copyright 2008 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 # -------------------- # 01d,20may10,ggz Add TCP/IP profile files # 01c,16dec09,ggz Add ESP/UDP profile files # 01b,28mar08,tlu Add more files # 01a,20feb08,tlu Initial creation # */ ############################################################################# # PRODUCT ########################################################################### IPPROD ?= iprohc ############################################################################# # DEFINE ########################################################################### IPDEFINE += -DIPROHC ############################################################################# # INCLUDE ########################################################################### IPINCLUDE += -I$(IPROHC_ROOT)/config IPINCLUDE += -I$(IPROHC_ROOT)/include IPINCLUDE += -I$(IPROHC_ROOT)/src ############################################################################# # OBJECTS ########################################################################### # Configuration IPLIBOBJECTS_C += iprohc_config.o # Main IPLIBOBJECTS += iprohc.o IPLIBOBJECTS += iprohc_comp.o IPLIBOBJECTS += iprohc_decomp.o IPLIBOBJECTS += iprohc_util.o IPLIBOBJECTS += iprohc_parser.o IPLIBOBJECTS += iprohc_format.o IPLIBOBJECTS += iprohc_feedback.o IPLIBOBJECTS += iprohc_ip.o IPLIBOBJECTS += iprohc_esp_ip.o IPLIBOBJECTS += iprohc_udp_ip.o IPLIBOBJECTS += iprohc_tcp_ip.o IPLIBOBJECTS += iprohc_uncompressed.o IPLIBOBJECTS += iprohc_coding_util.o ifneq ($(IPPORT),lkm) IPLIBOBJECTS += iprohc_cmd_rohc.o endif # 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 += $(IPROHC_ROOT)/src $(IPROHC_ROOT)/config ############################################################################# # LIB ########################################################################### IPLIBS += $(IPLIBROOT)/libiprohc.a ############################################################################# # BINARIES ############################################################################# ifeq ($(IPPORT),las) # Path to binaries IPCMDDIR := $(IPOBJDIR)/bin # List of shell commands to build IPROHCSHELLCMDS = rohc _IPROHCSHELLCMDS = $(addprefix $(IPCMDDIR)/,$(IPROHCSHELLCMDS)) bin: $(_IPROHCSHELLCMDS) $(IPOBJDIR)/iprohc_cmd_%.o: $(IPROHC_ROOT)/src/iprohc_cmd_%.c @$(IPECHO) "+++ Compiling IPROHC shell command $<" $(IPVERB)$(IPCC) -Diprohc_cmd_$*=ipcom_cmd_entry_point $(IPCFLAGS) -o $@ $< $(IPCMDDIR)/%: $(IPOBJDIR)/iprohc_cmd_%.o $(IPOBJDIR)/ipcom_shell_cmd_stub.o @$(IPECHO) "+++ Linking IPROHC shell command $@" $(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS) endif ########################################################################### # END OF IPROHC.MK ###########################################################################