############################################################################### # # Makefile - makefile skeleton for the Application developer # # This make file generates 3 Application files : # # 1) APPLICA.out - Application without Kernel which can be # loaded dynamically to VxWorks running target. # # 2) APPLICA - Application file with Kernel which loaded # by the VxWorks Boot. # # 3) APPLICA.bin - Application Binary file made from APPLICA # # where APPLICA is a variable name defined by the user # # VARIABLES # # The following variables must be defined: # # CARDNAME TARGET CARD name # APP_OBJECTS applications object to compile # APP_LIB_EXTRA additional libraries to link with Application # APPLICA Application name # BIN_VERSION Application version which will be put in bin file header # # The following variables are optionally defined: # # CC_DEBUG if this var is set to '-g' debug information will be added # to the object file. # ADDED_CFALGS Any additional flags to the compiler # ADDED_LDFLAGS Any additional LD flags # EXTRA_INCLUDE Additional path for include files - example -I\mypath # LIB_PATH Path to SWINFRA Libraries # FCDTIN_PATH FCTD input files path # FCDTOUT_PATH FCDT output files path # # ############################################################################## #################### Card name ############################################ # # unremark the TARGET CARD you are using !!!! # CARDNAME = MCU #CARDNAME = PKH #CARDNAME = ODLI #CARDNAME = BRI #CARDNAME = BRI4M #CARDNAME = XOMCP #################### Path defines ############################################ VPATH = src LIB_PATH = LIBS FCDTIN_PATH = FCDT.IN FCDTOUT_PATH = FCDT.OUT #################### Compiler and Linker extra information ################### #CC_DEBUG = CC_DEBUG = -g ADDED_CFLAGS = -MMD -O0 -D DEBUG ADDED_LDFLAGS = EXTRA_INCLUDE = -I$(WIND_BASE)/target/h/snmp -I$(FCDTOUT_PATH) -I include AUTO_DEPEND = NO #-D DSP_SIMULATOR #################### Application information ######################################## # # APPLICA = App BIN_VERSION = "PROXY SERVER 0120" ################################ MIB Compiler ######################################## # # APP_MIB_OUT = MIB_FLAGS = -l $(WIND_BASE)\target\src\snmpv1\mibs -l $(FCDTOUT_PATH) -l dcme_mib -nowarn MIB_INC = rfc1155.smi rfc1213.mib dcme.mib himux.mib ################### Application objects ###################################### # # if APP_OBJECTS = AUTO , all .C files in the current dir will be compile and link # APP_OBJECTS = httpd.o dns.o http_util.o http_protocol.o main.o ################## Application Extra libraries ############################### # # Extra libraries to link with application (typcally swinfra libs) APP_LIB_EXTRA = ################ Default Make Products ####################################### DEFAULT_MAKE = $(APPLICA) DEFAULT_MAKE += $(APPLICA).out DEFAULT_MAKE += $(APPLICA).bin ################ Do not change the folowing line ############################ include $(WIND_BASE)/target/h/make/make.application ################## Application Extra rules ################################### # # Add extra rules here # $(APP_OBJECTS):makefile %.d: echo $(basename $@).o : $@ > $@ include $(OBJECTS:.o=.d)