summaryrefslogtreecommitdiff
path: root/arch/arm/lpc17xx/Drivers/source/makefile
blob: 8cf581ca768de17010d7698b39c14879cfe65a42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
######################################################################## 
# $Id:: makefile 814 2008-06-19 19:57:32Z pdurgesh                     $
# 
# Project: Standard compile makefile
# 
# Description: 
#  Makefile
# 
######################################################################## 
# Software that is described herein is for illustrative purposes only  
# which provides customers with programming information regarding the  
# products. This software is supplied "AS IS" without any warranties.  
# NXP Semiconductors assumes no responsibility or liability for the 
# use of the software, conveys no license or title under any patent, 
# copyright, or mask work right to the product. NXP Semiconductors 
# reserves the right to make changes in the software without 
# notification. NXP Semiconductors also make no representation or 
# warranty that such application will be suitable for the specified 
# use without further testing or modification. 
########################################################################

########################################################################
#
# Pick up the configuration file in make section
#
########################################################################
include ../../makesection/makeconfig 

########################################################################
#
# Pick up the default build rules 
#
########################################################################

include $(PROJ_ROOT)/makesection/makerule/$(DEVICE)/make.$(DEVICE).$(TOOL)

########################################################################
#
# Pick up the assembler and C source files in the directory  
#
########################################################################
include $(PROJ_ROOT)\makesection\makerule\common\make.rules.ftypes
AFLAGS +=-I../include 
CFLAGS +=-I../include 


########################################################################
#
# Build the library
#
########################################################################

$(TARGET_FWLIB_LIB) : .vias $(OBJS) $(FWLIB_LIB_DIR)
	$(ECHO) "creating" $(FWLIB) "Firmware support package library" 
	$(AR) $@ $(OBJS)

$(FWLIB_LIB_DIR):
	$(MKDIR) $(FWLIB_LIB_DIR)	

# delete all targets this Makefile can make
lib_clean:
	-@$(RM) $(TARGET_FWLIB_LIB)

# delete all targets this Makefile can make and all built libraries
# linked in
lib_realclean: 
	-@$(RM) $(FWLIB_LIB_DIR)/*.a
	-@$(RMDIR) $(FWLIB_LIB_DIR)
	
clean: lib_clean
realclean: lib_realclean

########################################################################
#
# Compile the code base 
#
########################################################################

include $(PROJ_ROOT)/makesection/makerule/common/make.rules.build

.PHONY: all lib_clean lib_realclean