質問編集履歴
1
Makefileの中身を追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -147,3 +147,239 @@
|
|
147
147
|
OSはwindows10。
|
148
148
|
|
149
149
|
コンパイラをHI-TECH PICCに変えて、コードもそれ用に修正したらちゃんとコンパイルできた。が、xc8を使う必要があるため、これではダメ。
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
makefileの中身も公開したほうが良い、と言われたので追加します。なお、これは自分で書いたものではなくMPLABの方で自動生成されたものです。
|
154
|
+
|
155
|
+
```Makefile
|
156
|
+
|
157
|
+
#
|
158
|
+
|
159
|
+
# There exist several targets which are by default empty and which can be
|
160
|
+
|
161
|
+
# used for execution of your targets. These targets are usually executed
|
162
|
+
|
163
|
+
# before and after some main targets. They are:
|
164
|
+
|
165
|
+
#
|
166
|
+
|
167
|
+
# .build-pre: called before 'build' target
|
168
|
+
|
169
|
+
# .build-post: called after 'build' target
|
170
|
+
|
171
|
+
# .clean-pre: called before 'clean' target
|
172
|
+
|
173
|
+
# .clean-post: called after 'clean' target
|
174
|
+
|
175
|
+
# .clobber-pre: called before 'clobber' target
|
176
|
+
|
177
|
+
# .clobber-post: called after 'clobber' target
|
178
|
+
|
179
|
+
# .all-pre: called before 'all' target
|
180
|
+
|
181
|
+
# .all-post: called after 'all' target
|
182
|
+
|
183
|
+
# .help-pre: called before 'help' target
|
184
|
+
|
185
|
+
# .help-post: called after 'help' target
|
186
|
+
|
187
|
+
#
|
188
|
+
|
189
|
+
# Targets beginning with '.' are not intended to be called on their own.
|
190
|
+
|
191
|
+
#
|
192
|
+
|
193
|
+
# Main targets can be executed directly, and they are:
|
194
|
+
|
195
|
+
#
|
196
|
+
|
197
|
+
# build build a specific configuration
|
198
|
+
|
199
|
+
# clean remove built files from a configuration
|
200
|
+
|
201
|
+
# clobber remove all built files
|
202
|
+
|
203
|
+
# all build all configurations
|
204
|
+
|
205
|
+
# help print help mesage
|
206
|
+
|
207
|
+
#
|
208
|
+
|
209
|
+
# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and
|
210
|
+
|
211
|
+
# .help-impl are implemented in nbproject/makefile-impl.mk.
|
212
|
+
|
213
|
+
#
|
214
|
+
|
215
|
+
# Available make variables:
|
216
|
+
|
217
|
+
#
|
218
|
+
|
219
|
+
# CND_BASEDIR base directory for relative paths
|
220
|
+
|
221
|
+
# CND_DISTDIR default top distribution directory (build artifacts)
|
222
|
+
|
223
|
+
# CND_BUILDDIR default top build directory (object files, ...)
|
224
|
+
|
225
|
+
# CONF name of current configuration
|
226
|
+
|
227
|
+
# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration)
|
228
|
+
|
229
|
+
# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration)
|
230
|
+
|
231
|
+
# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration)
|
232
|
+
|
233
|
+
# CND_PACKAGE_DIR_${CONF} directory of package (current configuration)
|
234
|
+
|
235
|
+
# CND_PACKAGE_NAME_${CONF} name of package (current configuration)
|
236
|
+
|
237
|
+
# CND_PACKAGE_PATH_${CONF} path to package (current configuration)
|
238
|
+
|
239
|
+
#
|
240
|
+
|
241
|
+
# NOCDDL
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
# Environment
|
248
|
+
|
249
|
+
MKDIR=mkdir
|
250
|
+
|
251
|
+
CP=cp
|
252
|
+
|
253
|
+
CCADMIN=CCadmin
|
254
|
+
|
255
|
+
RANLIB=ranlib
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
# build
|
262
|
+
|
263
|
+
build: .build-post
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
.build-pre:
|
268
|
+
|
269
|
+
# Add your pre 'build' code here...
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
.build-post: .build-impl
|
274
|
+
|
275
|
+
# Add your post 'build' code here...
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
# clean
|
282
|
+
|
283
|
+
clean: .clean-post
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
.clean-pre:
|
288
|
+
|
289
|
+
# Add your pre 'clean' code here...
|
290
|
+
|
291
|
+
# WARNING: the IDE does not call this target since it takes a long time to
|
292
|
+
|
293
|
+
# simply run make. Instead, the IDE removes the configuration directories
|
294
|
+
|
295
|
+
# under build and dist directly without calling make.
|
296
|
+
|
297
|
+
# This target is left here so people can do a clean when running a clean
|
298
|
+
|
299
|
+
# outside the IDE.
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
.clean-post: .clean-impl
|
304
|
+
|
305
|
+
# Add your post 'clean' code here...
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
# clobber
|
312
|
+
|
313
|
+
clobber: .clobber-post
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
.clobber-pre:
|
318
|
+
|
319
|
+
# Add your pre 'clobber' code here...
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
.clobber-post: .clobber-impl
|
324
|
+
|
325
|
+
# Add your post 'clobber' code here...
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
# all
|
332
|
+
|
333
|
+
all: .all-post
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
.all-pre:
|
338
|
+
|
339
|
+
# Add your pre 'all' code here...
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
.all-post: .all-impl
|
344
|
+
|
345
|
+
# Add your post 'all' code here...
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
# help
|
352
|
+
|
353
|
+
help: .help-post
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
.help-pre:
|
358
|
+
|
359
|
+
# Add your pre 'help' code here...
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
.help-post: .help-impl
|
364
|
+
|
365
|
+
# Add your post 'help' code here...
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
# include project implementation makefile
|
374
|
+
|
375
|
+
include nbproject/Makefile-impl.mk
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
# include project make variables
|
380
|
+
|
381
|
+
include nbproject/Makefile-variables.mk
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
```
|