Initial import of v2 goggles that use ws2812 rings from adafruit
[goggles] / nbproject / Makefile-XC8_PIC12F1840.mk
CommitLineData
5fc23db2
JM
1#
2# Generated Makefile - do not edit!
3#
4# Edit the Makefile in the project folder instead (../Makefile). Each target
5# has a -pre and a -post target defined where you can add customized code.
6#
7# This makefile implements configuration specific macros and targets.
8
9
10# Include project Makefile
11ifeq "${IGNORE_LOCAL}" "TRUE"
12# do not include local makefile. User is passing all local related variables already
13else
14include Makefile
15# Include makefile containing local settings
16ifeq "$(wildcard nbproject/Makefile-local-XC8_PIC12F1840.mk)" "nbproject/Makefile-local-XC8_PIC12F1840.mk"
17include nbproject/Makefile-local-XC8_PIC12F1840.mk
18endif
19endif
20
21# Environment
22MKDIR=mkdir -p
23RM=rm -f
24MV=mv
25CP=cp
26
27# Macros
28CND_CONF=XC8_PIC12F1840
29ifeq ($(TYPE_IMAGE), DEBUG_RUN)
30IMAGE_TYPE=debug
31OUTPUT_SUFFIX=cof
32DEBUGGABLE_SUFFIX=cof
33FINAL_IMAGE=dist/${CND_CONF}/${IMAGE_TYPE}/goggles_v2.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
34else
35IMAGE_TYPE=production
36OUTPUT_SUFFIX=hex
37DEBUGGABLE_SUFFIX=cof
38FINAL_IMAGE=dist/${CND_CONF}/${IMAGE_TYPE}/goggles_v2.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
39endif
40
41# Object Directory
42OBJECTDIR=build/${CND_CONF}/${IMAGE_TYPE}
43
44# Distribution Directory
45DISTDIR=dist/${CND_CONF}/${IMAGE_TYPE}
46
47# Object Files Quoted if spaced
48OBJECTFILES_QUOTED_IF_SPACED=${OBJECTDIR}/configuration_bits.p1 ${OBJECTDIR}/main.p1 ${OBJECTDIR}/user.p1 ${OBJECTDIR}/ws2811.p1
49POSSIBLE_DEPFILES=${OBJECTDIR}/configuration_bits.p1.d ${OBJECTDIR}/main.p1.d ${OBJECTDIR}/user.p1.d ${OBJECTDIR}/ws2811.p1.d
50
51# Object Files
52OBJECTFILES=${OBJECTDIR}/configuration_bits.p1 ${OBJECTDIR}/main.p1 ${OBJECTDIR}/user.p1 ${OBJECTDIR}/ws2811.p1
53
54
55CFLAGS=
56ASFLAGS=
57LDLIBSOPTIONS=
58
59############# Tool locations ##########################################
60# If you copy a project from one host to another, the path where the #
61# compiler is installed may be different. #
62# If you open this project with MPLAB X in the new host, this #
63# makefile will be regenerated and the paths will be corrected. #
64#######################################################################
65# fixDeps replaces a bunch of sed/cat/printf statements that slow down the build
66FIXDEPS=fixDeps
67
68.build-conf: ${BUILD_SUBPROJECTS}
69 ${MAKE} -f nbproject/Makefile-XC8_PIC12F1840.mk dist/${CND_CONF}/${IMAGE_TYPE}/goggles_v2.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
70
71MP_PROCESSOR_OPTION=12F1840
72# ------------------------------------------------------------------------------------
73# Rules for buildStep: compile
74ifeq ($(TYPE_IMAGE), DEBUG_RUN)
75${OBJECTDIR}/configuration_bits.p1: configuration_bits.c nbproject/Makefile-${CND_CONF}.mk
76 @${MKDIR} ${OBJECTDIR}
77 @${RM} ${OBJECTDIR}/configuration_bits.p1.d
78 ${MP_CC} --pass1 $(MP_EXTRA_CC_PRE) --chip=$(MP_PROCESSOR_OPTION) -Q -G --asmlist -D__DEBUG=1 --debugger=none --double=24 --float=24 --opt=default,+asm,-asmfile,+speed,-space,+debug --addrqual=ignore --mode=free -P -N255 --warn=0 --summary=default,-psect,-class,+mem,-hex,-file --output=default,-inhx032 --runtime=default,+clear,+init,-keep,-no_startup,+osccal,-resetbits,-download,-stackcall,+clib "--errformat=%f:%l: error: %s" "--warnformat=%f:%l: warning: %s" "--msgformat=%f:%l: advisory: %s" -o${OBJECTDIR}/configuration_bits.p1 configuration_bits.c
79 @-${MV} ${OBJECTDIR}/configuration_bits.d ${OBJECTDIR}/configuration_bits.p1.d
80 @${FIXDEPS} ${OBJECTDIR}/configuration_bits.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
81
82${OBJECTDIR}/main.p1: main.c nbproject/Makefile-${CND_CONF}.mk
83 @${MKDIR} ${OBJECTDIR}
84 @${RM} ${OBJECTDIR}/main.p1.d
85 ${MP_CC} --pass1 $(MP_EXTRA_CC_PRE) --chip=$(MP_PROCESSOR_OPTION) -Q -G --asmlist -D__DEBUG=1 --debugger=none --double=24 --float=24 --opt=default,+asm,-asmfile,+speed,-space,+debug --addrqual=ignore --mode=free -P -N255 --warn=0 --summary=default,-psect,-class,+mem,-hex,-file --output=default,-inhx032 --runtime=default,+clear,+init,-keep,-no_startup,+osccal,-resetbits,-download,-stackcall,+clib "--errformat=%f:%l: error: %s" "--warnformat=%f:%l: warning: %s" "--msgformat=%f:%l: advisory: %s" -o${OBJECTDIR}/main.p1 main.c
86 @-${MV} ${OBJECTDIR}/main.d ${OBJECTDIR}/main.p1.d
87 @${FIXDEPS} ${OBJECTDIR}/main.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
88
89${OBJECTDIR}/user.p1: user.c nbproject/Makefile-${CND_CONF}.mk
90 @${MKDIR} ${OBJECTDIR}
91 @${RM} ${OBJECTDIR}/user.p1.d
92 ${MP_CC} --pass1 $(MP_EXTRA_CC_PRE) --chip=$(MP_PROCESSOR_OPTION) -Q -G --asmlist -D__DEBUG=1 --debugger=none --double=24 --float=24 --opt=default,+asm,-asmfile,+speed,-space,+debug --addrqual=ignore --mode=free -P -N255 --warn=0 --summary=default,-psect,-class,+mem,-hex,-file --output=default,-inhx032 --runtime=default,+clear,+init,-keep,-no_startup,+osccal,-resetbits,-download,-stackcall,+clib "--errformat=%f:%l: error: %s" "--warnformat=%f:%l: warning: %s" "--msgformat=%f:%l: advisory: %s" -o${OBJECTDIR}/user.p1 user.c
93 @-${MV} ${OBJECTDIR}/user.d ${OBJECTDIR}/user.p1.d
94 @${FIXDEPS} ${OBJECTDIR}/user.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
95
96${OBJECTDIR}/ws2811.p1: ws2811.c nbproject/Makefile-${CND_CONF}.mk
97 @${MKDIR} ${OBJECTDIR}
98 @${RM} ${OBJECTDIR}/ws2811.p1.d
99 ${MP_CC} --pass1 $(MP_EXTRA_CC_PRE) --chip=$(MP_PROCESSOR_OPTION) -Q -G --asmlist -D__DEBUG=1 --debugger=none --double=24 --float=24 --opt=default,+asm,-asmfile,+speed,-space,+debug --addrqual=ignore --mode=free -P -N255 --warn=0 --summary=default,-psect,-class,+mem,-hex,-file --output=default,-inhx032 --runtime=default,+clear,+init,-keep,-no_startup,+osccal,-resetbits,-download,-stackcall,+clib "--errformat=%f:%l: error: %s" "--warnformat=%f:%l: warning: %s" "--msgformat=%f:%l: advisory: %s" -o${OBJECTDIR}/ws2811.p1 ws2811.c
100 @-${MV} ${OBJECTDIR}/ws2811.d ${OBJECTDIR}/ws2811.p1.d
101 @${FIXDEPS} ${OBJECTDIR}/ws2811.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
102
103else
104${OBJECTDIR}/configuration_bits.p1: configuration_bits.c nbproject/Makefile-${CND_CONF}.mk
105 @${MKDIR} ${OBJECTDIR}
106 @${RM} ${OBJECTDIR}/configuration_bits.p1.d
107 ${MP_CC} --pass1 $(MP_EXTRA_CC_PRE) --chip=$(MP_PROCESSOR_OPTION) -Q -G --asmlist --double=24 --float=24 --opt=default,+asm,-asmfile,+speed,-space,+debug --addrqual=ignore --mode=free -P -N255 --warn=0 --summary=default,-psect,-class,+mem,-hex,-file --output=default,-inhx032 --runtime=default,+clear,+init,-keep,-no_startup,+osccal,-resetbits,-download,-stackcall,+clib "--errformat=%f:%l: error: %s" "--warnformat=%f:%l: warning: %s" "--msgformat=%f:%l: advisory: %s" -o${OBJECTDIR}/configuration_bits.p1 configuration_bits.c
108 @-${MV} ${OBJECTDIR}/configuration_bits.d ${OBJECTDIR}/configuration_bits.p1.d
109 @${FIXDEPS} ${OBJECTDIR}/configuration_bits.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
110
111${OBJECTDIR}/main.p1: main.c nbproject/Makefile-${CND_CONF}.mk
112 @${MKDIR} ${OBJECTDIR}
113 @${RM} ${OBJECTDIR}/main.p1.d
114 ${MP_CC} --pass1 $(MP_EXTRA_CC_PRE) --chip=$(MP_PROCESSOR_OPTION) -Q -G --asmlist --double=24 --float=24 --opt=default,+asm,-asmfile,+speed,-space,+debug --addrqual=ignore --mode=free -P -N255 --warn=0 --summary=default,-psect,-class,+mem,-hex,-file --output=default,-inhx032 --runtime=default,+clear,+init,-keep,-no_startup,+osccal,-resetbits,-download,-stackcall,+clib "--errformat=%f:%l: error: %s" "--warnformat=%f:%l: warning: %s" "--msgformat=%f:%l: advisory: %s" -o${OBJECTDIR}/main.p1 main.c
115 @-${MV} ${OBJECTDIR}/main.d ${OBJECTDIR}/main.p1.d
116 @${FIXDEPS} ${OBJECTDIR}/main.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
117
118${OBJECTDIR}/user.p1: user.c nbproject/Makefile-${CND_CONF}.mk
119 @${MKDIR} ${OBJECTDIR}
120 @${RM} ${OBJECTDIR}/user.p1.d
121 ${MP_CC} --pass1 $(MP_EXTRA_CC_PRE) --chip=$(MP_PROCESSOR_OPTION) -Q -G --asmlist --double=24 --float=24 --opt=default,+asm,-asmfile,+speed,-space,+debug --addrqual=ignore --mode=free -P -N255 --warn=0 --summary=default,-psect,-class,+mem,-hex,-file --output=default,-inhx032 --runtime=default,+clear,+init,-keep,-no_startup,+osccal,-resetbits,-download,-stackcall,+clib "--errformat=%f:%l: error: %s" "--warnformat=%f:%l: warning: %s" "--msgformat=%f:%l: advisory: %s" -o${OBJECTDIR}/user.p1 user.c
122 @-${MV} ${OBJECTDIR}/user.d ${OBJECTDIR}/user.p1.d
123 @${FIXDEPS} ${OBJECTDIR}/user.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
124
125${OBJECTDIR}/ws2811.p1: ws2811.c nbproject/Makefile-${CND_CONF}.mk
126 @${MKDIR} ${OBJECTDIR}
127 @${RM} ${OBJECTDIR}/ws2811.p1.d
128 ${MP_CC} --pass1 $(MP_EXTRA_CC_PRE) --chip=$(MP_PROCESSOR_OPTION) -Q -G --asmlist --double=24 --float=24 --opt=default,+asm,-asmfile,+speed,-space,+debug --addrqual=ignore --mode=free -P -N255 --warn=0 --summary=default,-psect,-class,+mem,-hex,-file --output=default,-inhx032 --runtime=default,+clear,+init,-keep,-no_startup,+osccal,-resetbits,-download,-stackcall,+clib "--errformat=%f:%l: error: %s" "--warnformat=%f:%l: warning: %s" "--msgformat=%f:%l: advisory: %s" -o${OBJECTDIR}/ws2811.p1 ws2811.c
129 @-${MV} ${OBJECTDIR}/ws2811.d ${OBJECTDIR}/ws2811.p1.d
130 @${FIXDEPS} ${OBJECTDIR}/ws2811.p1.d $(SILENT) -rsi ${MP_CC_DIR}../
131
132endif
133
134# ------------------------------------------------------------------------------------
135# Rules for buildStep: assemble
136ifeq ($(TYPE_IMAGE), DEBUG_RUN)
137else
138endif
139
140# ------------------------------------------------------------------------------------
141# Rules for buildStep: link
142ifeq ($(TYPE_IMAGE), DEBUG_RUN)
143dist/${CND_CONF}/${IMAGE_TYPE}/goggles_v2.${IMAGE_TYPE}.${OUTPUT_SUFFIX}: ${OBJECTFILES} nbproject/Makefile-${CND_CONF}.mk
144 @${MKDIR} dist/${CND_CONF}/${IMAGE_TYPE}
145 ${MP_CC} $(MP_EXTRA_LD_PRE) --chip=$(MP_PROCESSOR_OPTION) -G --asmlist -mdist/${CND_CONF}/${IMAGE_TYPE}/goggles_v2.${IMAGE_TYPE}.map -D__DEBUG=1 --debugger=none --double=24 --float=24 --opt=default,+asm,-asmfile,+speed,-space,+debug --addrqual=ignore --mode=free -P -N255 --warn=0 --summary=default,-psect,-class,+mem,-hex,-file --output=default,-inhx032 --runtime=default,+clear,+init,-keep,-no_startup,+osccal,-resetbits,-download,-stackcall,+clib "--errformat=%f:%l: error: %s" "--warnformat=%f:%l: warning: %s" "--msgformat=%f:%l: advisory: %s" -odist/${CND_CONF}/${IMAGE_TYPE}/goggles_v2.${IMAGE_TYPE}.${DEBUGGABLE_SUFFIX} ${OBJECTFILES_QUOTED_IF_SPACED}
146 @${RM} dist/${CND_CONF}/${IMAGE_TYPE}/goggles_v2.${IMAGE_TYPE}.hex
147
148else
149dist/${CND_CONF}/${IMAGE_TYPE}/goggles_v2.${IMAGE_TYPE}.${OUTPUT_SUFFIX}: ${OBJECTFILES} nbproject/Makefile-${CND_CONF}.mk
150 @${MKDIR} dist/${CND_CONF}/${IMAGE_TYPE}
151 ${MP_CC} $(MP_EXTRA_LD_PRE) --chip=$(MP_PROCESSOR_OPTION) -G --asmlist -mdist/${CND_CONF}/${IMAGE_TYPE}/goggles_v2.${IMAGE_TYPE}.map --double=24 --float=24 --opt=default,+asm,-asmfile,+speed,-space,+debug --addrqual=ignore --mode=free -P -N255 --warn=0 --summary=default,-psect,-class,+mem,-hex,-file --output=default,-inhx032 --runtime=default,+clear,+init,-keep,-no_startup,+osccal,-resetbits,-download,-stackcall,+clib "--errformat=%f:%l: error: %s" "--warnformat=%f:%l: warning: %s" "--msgformat=%f:%l: advisory: %s" -odist/${CND_CONF}/${IMAGE_TYPE}/goggles_v2.${IMAGE_TYPE}.${DEBUGGABLE_SUFFIX} ${OBJECTFILES_QUOTED_IF_SPACED}
152
153endif
154
155
156# Subprojects
157.build-subprojects:
158
159
160# Subprojects
161.clean-subprojects:
162
163# Clean Targets
164.clean-conf: ${CLEAN_SUBPROJECTS}
165 ${RM} -r build/XC8_PIC12F1840
166 ${RM} -r dist/XC8_PIC12F1840
167
168# Enable dependency checking
169.dep.inc: .depcheck-impl
170
171DEPFILES=$(shell "${PATH_TO_IDE_BIN}"mplabwildcard ${POSSIBLE_DEPFILES})
172ifneq (${DEPFILES},)
173include ${DEPFILES}
174endif