makefile (2787B)
1 ######################################################################## 2 # $Id:: makefile 814 2008-06-19 19:57:32Z pdurgesh $ 3 # 4 # Project: Standard compile makefile 5 # 6 # Description: 7 # Makefile 8 # 9 ######################################################################## 10 # Software that is described herein is for illustrative purposes only 11 # which provides customers with programming information regarding the 12 # products. This software is supplied "AS IS" without any warranties. 13 # NXP Semiconductors assumes no responsibility or liability for the 14 # use of the software, conveys no license or title under any patent, 15 # copyright, or mask work right to the product. NXP Semiconductors 16 # reserves the right to make changes in the software without 17 # notification. NXP Semiconductors also make no representation or 18 # warranty that such application will be suitable for the specified 19 # use without further testing or modification. 20 ######################################################################## 21 22 ######################################################################## 23 # 24 # Pick up the configuration file in make section 25 # 26 ######################################################################## 27 include ../../makesection/makeconfig 28 29 ######################################################################## 30 # 31 # Pick up the default build rules 32 # 33 ######################################################################## 34 35 include $(PROJ_ROOT)/makesection/makerule/$(DEVICE)/make.$(DEVICE).$(TOOL) 36 37 ######################################################################## 38 # 39 # Pick up the assembler and C source files in the directory 40 # 41 ######################################################################## 42 include $(PROJ_ROOT)/makesection/makerule/common/make.rules.ftypes 43 AFLAGS +=-I../include 44 CFLAGS +=-I../include 45 46 47 ######################################################################## 48 # 49 # Build the library 50 # 51 ######################################################################## 52 53 $(TARGET_FWLIB_LIB) : .vias $(OBJS) $(FWLIB_LIB_DIR) 54 $(ECHO) "creating" $(FWLIB) "Firmware support package library" 55 $(AR) $@ $(OBJS) 56 57 $(FWLIB_LIB_DIR): 58 $(MKDIR) $(FWLIB_LIB_DIR) 59 60 # delete all targets this Makefile can make 61 lib_clean: 62 -@$(RM) $(TARGET_FWLIB_LIB) 63 64 # delete all targets this Makefile can make and all built libraries 65 # linked in 66 lib_realclean: 67 -@$(RM) $(FWLIB_LIB_DIR)/*.a 68 -@$(RMDIR) $(FWLIB_LIB_DIR) 69 70 clean: lib_clean 71 realclean: lib_realclean 72 73 ######################################################################## 74 # 75 # Compile the code base 76 # 77 ######################################################################## 78 79 include $(PROJ_ROOT)/makesection/makerule/common/make.rules.build 80 81 .PHONY: all lib_clean lib_realclean 82 83 84