質問するログイン新規登録

質問編集履歴

1

Makefileの中身を追記しました

2017/06/20 14:14

投稿

lefirea
lefirea

スコア20

title CHANGED
File without changes
body CHANGED
@@ -72,4 +72,122 @@
72
72
 
73
73
  ###補足情報(言語/FW/ツール等のバージョンなど)
74
74
  OSはwindows10。
75
- コンパイラをHI-TECH PICCに変えて、コードもそれ用に修正したらちゃんとコンパイルできた。が、xc8を使う必要があるため、これではダメ。
75
+ コンパイラをHI-TECH PICCに変えて、コードもそれ用に修正したらちゃんとコンパイルできた。が、xc8を使う必要があるため、これではダメ。
76
+
77
+ makefileの中身も公開したほうが良い、と言われたので追加します。なお、これは自分で書いたものではなくMPLABの方で自動生成されたものです。
78
+ ```Makefile
79
+ #
80
+ # There exist several targets which are by default empty and which can be
81
+ # used for execution of your targets. These targets are usually executed
82
+ # before and after some main targets. They are:
83
+ #
84
+ # .build-pre: called before 'build' target
85
+ # .build-post: called after 'build' target
86
+ # .clean-pre: called before 'clean' target
87
+ # .clean-post: called after 'clean' target
88
+ # .clobber-pre: called before 'clobber' target
89
+ # .clobber-post: called after 'clobber' target
90
+ # .all-pre: called before 'all' target
91
+ # .all-post: called after 'all' target
92
+ # .help-pre: called before 'help' target
93
+ # .help-post: called after 'help' target
94
+ #
95
+ # Targets beginning with '.' are not intended to be called on their own.
96
+ #
97
+ # Main targets can be executed directly, and they are:
98
+ #
99
+ # build build a specific configuration
100
+ # clean remove built files from a configuration
101
+ # clobber remove all built files
102
+ # all build all configurations
103
+ # help print help mesage
104
+ #
105
+ # Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and
106
+ # .help-impl are implemented in nbproject/makefile-impl.mk.
107
+ #
108
+ # Available make variables:
109
+ #
110
+ # CND_BASEDIR base directory for relative paths
111
+ # CND_DISTDIR default top distribution directory (build artifacts)
112
+ # CND_BUILDDIR default top build directory (object files, ...)
113
+ # CONF name of current configuration
114
+ # CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration)
115
+ # CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration)
116
+ # CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration)
117
+ # CND_PACKAGE_DIR_${CONF} directory of package (current configuration)
118
+ # CND_PACKAGE_NAME_${CONF} name of package (current configuration)
119
+ # CND_PACKAGE_PATH_${CONF} path to package (current configuration)
120
+ #
121
+ # NOCDDL
122
+
123
+
124
+ # Environment
125
+ MKDIR=mkdir
126
+ CP=cp
127
+ CCADMIN=CCadmin
128
+ RANLIB=ranlib
129
+
130
+
131
+ # build
132
+ build: .build-post
133
+
134
+ .build-pre:
135
+ # Add your pre 'build' code here...
136
+
137
+ .build-post: .build-impl
138
+ # Add your post 'build' code here...
139
+
140
+
141
+ # clean
142
+ clean: .clean-post
143
+
144
+ .clean-pre:
145
+ # Add your pre 'clean' code here...
146
+ # WARNING: the IDE does not call this target since it takes a long time to
147
+ # simply run make. Instead, the IDE removes the configuration directories
148
+ # under build and dist directly without calling make.
149
+ # This target is left here so people can do a clean when running a clean
150
+ # outside the IDE.
151
+
152
+ .clean-post: .clean-impl
153
+ # Add your post 'clean' code here...
154
+
155
+
156
+ # clobber
157
+ clobber: .clobber-post
158
+
159
+ .clobber-pre:
160
+ # Add your pre 'clobber' code here...
161
+
162
+ .clobber-post: .clobber-impl
163
+ # Add your post 'clobber' code here...
164
+
165
+
166
+ # all
167
+ all: .all-post
168
+
169
+ .all-pre:
170
+ # Add your pre 'all' code here...
171
+
172
+ .all-post: .all-impl
173
+ # Add your post 'all' code here...
174
+
175
+
176
+ # help
177
+ help: .help-post
178
+
179
+ .help-pre:
180
+ # Add your pre 'help' code here...
181
+
182
+ .help-post: .help-impl
183
+ # Add your post 'help' code here...
184
+
185
+
186
+
187
+ # include project implementation makefile
188
+ include nbproject/Makefile-impl.mk
189
+
190
+ # include project make variables
191
+ include nbproject/Makefile-variables.mk
192
+
193
+ ```