2015-05-31 21:09:43 -03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Build sketch objects
|
|
|
|
#
|
|
|
|
|
2017-04-02 11:57:12 -03:00
|
|
|
$(BUILDROOT)/%.o: $(BUILDROOT)/%.cpp $(GENERATE_TARGETS) $(MAVLINK_HEADERS) $(UAVCAN_HEADERS)
|
2015-05-31 21:09:43 -03:00
|
|
|
$(RULEHDR)
|
2018-02-02 16:35:19 -04:00
|
|
|
$(v)$(CCACHE) $(CXX) $(CXXFLAGS) -c -o $@ $< $(SKETCH_INCLUDES)
|
2015-05-31 21:09:43 -03:00
|
|
|
|
2017-04-02 11:57:12 -03:00
|
|
|
$(BUILDROOT)/%.o: $(BUILDROOT)/make.flags $(SRCROOT)/%.cpp $(GENERATE_TARGETS) $(MAVLINK_HEADERS) $(UAVCAN_HEADERS)
|
2015-05-31 21:09:43 -03:00
|
|
|
$(RULEHDR)
|
2018-02-02 16:35:19 -04:00
|
|
|
$(v)$(CCACHE) $(CXX) $(CXXFLAGS) -c -o $@ $*.cpp $(SKETCH_INCLUDES)
|
2015-05-31 21:09:43 -03:00
|
|
|
|
2017-04-02 11:57:12 -03:00
|
|
|
$(BUILDROOT)/%.o: $(SRCROOT)/%.c $(UAVCAN_HEADERS)
|
2015-05-31 21:09:43 -03:00
|
|
|
$(RULEHDR)
|
2018-02-02 16:35:19 -04:00
|
|
|
$(v)$(CCACHE) $(CC) $(CFLAGS) -c -o $@ $< $(SKETCH_INCLUDES)
|
2015-05-31 21:09:43 -03:00
|
|
|
|
|
|
|
$(BUILDROOT)/%.o: $(SRCROOT)/%.S
|
|
|
|
$(RULEHDR)
|
|
|
|
$(v)$(AS) $(ASFLAGS) -c -o $@ $< $(SKETCH_INCLUDES)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build library objects from sources in the sketchbook
|
|
|
|
#
|
|
|
|
|
2017-04-02 11:57:12 -03:00
|
|
|
$(BUILDROOT)/libraries/%.o: $(SKETCHBOOK)/libraries/%.cpp $(GENERATE_TARGETS) $(MAVLINK_HEADERS) $(UAVCAN_HEADERS)
|
2015-05-31 21:09:43 -03:00
|
|
|
$(RULEHDR)
|
2018-02-02 16:35:19 -04:00
|
|
|
$(v)$(CCACHE) $(CXX) $(CXXFLAGS) -c -o $@ $< $(SLIB_INCLUDES)
|
2015-05-31 21:09:43 -03:00
|
|
|
|
|
|
|
$(BUILDROOT)/libraries/%.o: $(SKETCHBOOK)/libraries/%.c
|
|
|
|
$(RULEHDR)
|
2018-02-02 16:35:19 -04:00
|
|
|
$(v)$(CCACHE) $(CC) $(CFLAGS) -c -o $@ $< $(SLIB_INCLUDES)
|
2015-05-31 21:09:43 -03:00
|
|
|
|
|
|
|
$(BUILDROOT)/libraries/%.o: $(SKETCHBOOK)/libraries/%.S
|
|
|
|
$(RULEHDR)
|
|
|
|
$(v)$(AS) $(ASFLAGS) -c -o $@ $< $(SLIB_INCLUDES)
|