1#******************************************************************************
2#
3# Makefile.driverlib-cm4f - Rules for building the driver library.
4#
5# Copyright (c) 2005-2012 Texas Instruments Incorporated.  All rights reserved.
6# Software License Agreement
7#
8# Texas Instruments (TI) is supplying this software for use solely and
9# exclusively on TI's microcontroller products. The software is owned by
10# TI and/or its suppliers, and is protected under applicable copyright
11# laws. You may not combine this software with "viral" open-source
12# software in order to form a larger program.
13#
14# THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
15# NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
16# NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17# A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
18# CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
19# DAMAGES, FOR ANY REASON WHATSOEVER.
20#
21# This is part of revision 9453 of the Stellaris Peripheral Driver Library.
22#
23#******************************************************************************
24
25#
26# Defines the directory suffix that this project uses.
27#
28SUFFIX=-cm4f
29
30#
31# Set the processor variant.
32#
33VARIANT=cm4f
34
35#
36# The base directory for StellarisWare.
37#
38ROOT=..
39
40#
41# Include the common make definitions.
42#
43include ${ROOT}/makedefs
44
45#
46# Where to find header files that do not live in the source directory.
47#
48IPATH=..
49
50#
51# The default rule, which causes the driver library to be built.
52#
53all: ${COMPILER}-cm4f
54all: ${COMPILER}-cm4f/libdriver-cm4f.a
55
56#
57# The rule to clean out all the build products.
58#
59clean:
60	@rm -rf ${COMPILER}-cm4f ${wildcard *~}
61
62#
63# The rule to create the target directory.
64#
65${COMPILER}-cm4f:
66	@mkdir -p ${COMPILER}-cm4f
67
68#
69# Rules for building the driver library.
70#
71${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/adc.o
72${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/can.o
73${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/comp.o
74${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/cpu.o
75${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/eeprom.o
76${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/epi.o
77${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/ethernet.o
78${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/fan.o
79${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/flash.o
80${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/fpu.o
81${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/gpio.o
82${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/hibernate.o
83${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/i2c.o
84${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/i2s.o
85${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/interrupt.o
86${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/lpc.o
87${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/mpu.o
88${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/peci.o
89${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/pwm.o
90${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/qei.o
91${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/ssi.o
92${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/sysctl.o
93${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/sysexc.o
94${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/systick.o
95${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/timer.o
96${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/uart.o
97${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/udma.o
98${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/usb.o
99${COMPILER}-cm4f/libdriver-cm4f.a: ${COMPILER}-cm4f/watchdog.o
100
101#
102# Include the automatically generated dependency files.
103#
104ifneq (${MAKECMDGOALS},clean)
105-include ${wildcard ${COMPILER}-cm4f/*.d} __dummy__
106endif
107