My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. # Sprinter Arduino Project Makefile
  2. #
  3. # Makefile Based on:
  4. # Arduino 0011 Makefile
  5. # Arduino adaptation by mellis, eighthave, oli.keller
  6. # Marlin adaption by Daid
  7. #
  8. # This has been tested with Arduino 0022.
  9. #
  10. # This makefile allows you to build sketches from the command line
  11. # without the Arduino environment (or Java).
  12. #
  13. # Detailed instructions for using the makefile:
  14. #
  15. # 1. Modify the line containg "ARDUINO_INSTALL_DIR" to point to the directory that
  16. # contains the Arduino installation (for example, under Mac OS X, this
  17. # might be /Applications/Arduino.app/Contents/Resources/Java).
  18. #
  19. # 2. Modify the line containing "UPLOAD_PORT" to refer to the filename
  20. # representing the USB or serial connection to your Arduino board
  21. # (e.g. UPLOAD_PORT = /dev/tty.USB0). If the exact name of this file
  22. # changes, you can use * as a wildcard (e.g. UPLOAD_PORT = /dev/tty.usb*).
  23. #
  24. # 3. Set the line containing "MCU" to match your board's processor.
  25. # Older one's are atmega8 based, newer ones like Arduino Mini, Bluetooth
  26. # or Diecimila have the atmega168. If you're using a LilyPad Arduino,
  27. # change F_CPU to 8000000. If you are using Gen7 electronics, you
  28. # probably need to use 20000000. Either way, you must regenerate
  29. # the speed lookup table with create_speed_lookuptable.py.
  30. #
  31. # 4. Type "make" and press enter to compile/verify your program.
  32. #
  33. # 5. Type "make upload", reset your Arduino board, and press enter to
  34. # upload your program to the Arduino board.
  35. #
  36. # Note that all settings are set with ?=, this means you can override them
  37. # from the commandline with "make HARDWARE_MOTHERBOARD=71" for example
  38. # This defined the board you are compiling for (see Configuration.h for the options)
  39. HARDWARE_MOTHERBOARD ?= 11
  40. # Arduino source install directory, and version number
  41. ARDUINO_INSTALL_DIR ?= /Applications/Arduino.app/Contents/Resources/Java
  42. ARDUINO_VERSION ?= 105
  43. # You can optionally set a path to the avr-gcc tools. Requires a trailing slash. (ex: /usr/local/avr-gcc/bin)
  44. AVR_TOOLS_PATH ?=
  45. #Programmer configuration
  46. UPLOAD_RATE ?= 115200
  47. AVRDUDE_PROGRAMMER ?= arduino
  48. UPLOAD_PORT ?= /dev/arduino
  49. #Directory used to build files in, contains all the build files, from object files to the final hex file.
  50. BUILD_DIR ?= applet
  51. # This defines whether Liquid_TWI2 support will be built
  52. LIQUID_TWI2 ?= 0
  53. # this defines if Wire is needed
  54. WIRE ?= 0
  55. ############################################################################
  56. # Below here nothing should be changed...
  57. # Here the Arduino variant is selected by the board type
  58. # HARDWARE_VARIANT = "arduino", "Sanguino", "Gen7", ...
  59. # MCU = "atmega1280", "Mega2560", "atmega2560", "atmega644p", ...
  60. #Gen7
  61. ifeq ($(HARDWARE_MOTHERBOARD),10)
  62. HARDWARE_VARIANT ?= Gen7
  63. MCU ?= atmega644
  64. F_CPU ?= 20000000
  65. else ifeq ($(HARDWARE_MOTHERBOARD),11)
  66. HARDWARE_VARIANT ?= Gen7
  67. MCU ?= atmega644p
  68. F_CPU ?= 20000000
  69. else ifeq ($(HARDWARE_MOTHERBOARD),12)
  70. HARDWARE_VARIANT ?= Gen7
  71. MCU ?= atmega644p
  72. F_CPU ?= 20000000
  73. else ifeq ($(HARDWARE_MOTHERBOARD),13)
  74. HARDWARE_VARIANT ?= Gen7
  75. MCU ?= atmega1284p
  76. F_CPU ?= 20000000
  77. #RAMPS
  78. else ifeq ($(HARDWARE_MOTHERBOARD),3)
  79. HARDWARE_VARIANT ?= arduino
  80. MCU ?= atmega2560
  81. else ifeq ($(HARDWARE_MOTHERBOARD),33)
  82. HARDWARE_VARIANT ?= arduino
  83. MCU ?= atmega2560
  84. else ifeq ($(HARDWARE_MOTHERBOARD),34)
  85. HARDWARE_VARIANT ?= arduino
  86. MCU ?= atmega2560
  87. #Duemilanove w/ ATMega328P pin assignment
  88. else ifeq ($(HARDWARE_MOTHERBOARD),4)
  89. HARDWARE_VARIANT ?= arduino
  90. HARDWARE_SUB_VARIANT ?= standard
  91. MCU ?= atmega328p
  92. #Gen6
  93. else ifeq ($(HARDWARE_MOTHERBOARD),5)
  94. HARDWARE_VARIANT ?= Gen6
  95. MCU ?= atmega644p
  96. else ifeq ($(HARDWARE_MOTHERBOARD),51)
  97. HARDWARE_VARIANT ?= Gen6
  98. MCU ?= atmega644p
  99. #Sanguinololu
  100. else ifeq ($(HARDWARE_MOTHERBOARD),6)
  101. HARDWARE_VARIANT ?= Sanguino
  102. MCU ?= atmega644p
  103. else ifeq ($(HARDWARE_MOTHERBOARD),62)
  104. HARDWARE_VARIANT ?= Sanguino
  105. MCU ?= atmega644p
  106. else ifeq ($(HARDWARE_MOTHERBOARD),63)
  107. HARDWARE_VARIANT ?= Sanguino
  108. MCU ?= atmega644p
  109. else ifeq ($(HARDWARE_MOTHERBOARD),65)
  110. HARDWARE_VARIANT ?= Sanguino
  111. MCU ?= atmega1284p
  112. else ifeq ($(HARDWARE_MOTHERBOARD),66)
  113. HARDWARE_VARIANT ?= Sanguino
  114. MCU ?= atmega1284p
  115. #Ultimaker
  116. else ifeq ($(HARDWARE_MOTHERBOARD),7)
  117. HARDWARE_VARIANT ?= arduino
  118. MCU ?= atmega2560
  119. else ifeq ($(HARDWARE_MOTHERBOARD),71)
  120. HARDWARE_VARIANT ?= arduino
  121. MCU ?= atmega1280
  122. #Teensylu
  123. else ifeq ($(HARDWARE_MOTHERBOARD),8)
  124. HARDWARE_VARIANT ?= Teensy
  125. MCU ?= at90usb1286
  126. else ifeq ($(HARDWARE_MOTHERBOARD),81)
  127. HARDWARE_VARIANT ?= Teensy
  128. MCU ?= at90usb1286
  129. else ifeq ($(HARDWARE_MOTHERBOARD),82)
  130. HARDWARE_VARIANT ?= Teensy
  131. MCU ?= at90usb646
  132. else ifeq ($(HARDWARE_MOTHERBOARD),83)
  133. HARDWARE_VARIANT ?= Teensy
  134. MCU ?= at90usb1286
  135. else ifeq ($(HARDWARE_MOTHERBOARD),84)
  136. HARDWARE_VARIANT ?= Teensy
  137. MCU ?= at90usb1286
  138. #Gen3+
  139. else ifeq ($(HARDWARE_MOTHERBOARD),9)
  140. HARDWARE_VARIANT ?= Sanguino
  141. MCU ?= atmega644p
  142. #Megatronics
  143. else ifeq ($(HARDWARE_MOTHERBOARD),70)
  144. HARDWARE_VARIANT ?= arduino
  145. MCU ?= atmega2560
  146. #Alpha OMCA board
  147. else ifeq ($(HARDWARE_MOTHERBOARD),90)
  148. HARDWARE_VARIANT ?= SanguinoA
  149. MCU ?= atmega644
  150. #Final OMCA board
  151. else ifeq ($(HARDWARE_MOTHERBOARD),91)
  152. HARDWARE_VARIANT ?= Sanguino
  153. MCU ?= atmega644p
  154. #Rambo
  155. else ifeq ($(HARDWARE_MOTHERBOARD),301)
  156. HARDWARE_VARIANT ?= arduino
  157. MCU ?= atmega2560
  158. # Azteeg
  159. else ifeq ($(HARDWARE_MOTHERBOARD),67)
  160. HARDWARE_VARIANT ?= arduino
  161. MCU ?= atmega2560
  162. else ifeq ($(HARDWARE_MOTHERBOARD),68)
  163. HARDWARE_VARIANT ?= arduino
  164. MCU ?= atmega2560
  165. endif
  166. # Be sure to regenerate speed_lookuptable.h with create_speed_lookuptable.py
  167. # if you are setting this to something other than 16MHz
  168. # Set to 16Mhz if not yet set.
  169. F_CPU ?= 16000000
  170. # Arduino containd the main source code for the Arduino
  171. # Libraries, the "hardware variant" are for boards
  172. # that derives from that, and their source are present in
  173. # the main Marlin source directory
  174. ifeq ($(HARDWARE_VARIANT), arduino)
  175. HARDWARE_DIR = $(ARDUINO_INSTALL_DIR)/hardware
  176. else
  177. ifeq ($(shell [ $(ARDUINO_VERSION) -ge 100 ] && echo true), true)
  178. HARDWARE_DIR = ../ArduinoAddons/Arduino_1.x.x
  179. else
  180. HARDWARE_DIR = ../ArduinoAddons/Arduino_0.xx
  181. endif
  182. endif
  183. HARDWARE_SRC = $(HARDWARE_DIR)/$(HARDWARE_VARIANT)/cores/arduino
  184. TARGET = $(notdir $(CURDIR))
  185. # VPATH tells make to look into these directory for source files,
  186. # there is no need to specify explicit pathnames as long as the
  187. # directory is added here
  188. VPATH = .
  189. VPATH += $(BUILD_DIR)
  190. VPATH += $(HARDWARE_SRC)
  191. ifeq ($(HARDWARE_VARIANT), arduino)
  192. VPATH += $(ARDUINO_INSTALL_DIR)/libraries/LiquidCrystal
  193. VPATH += $(ARDUINO_INSTALL_DIR)/libraries/SPI
  194. ifeq ($(LIQUID_TWI2), 1)
  195. VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire
  196. VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire/utility
  197. VPATH += $(ARDUINO_INSTALL_DIR)/libraries/LiquidTWI2
  198. endif
  199. ifeq ($(WIRE), 1)
  200. VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire
  201. VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire/utility
  202. endif
  203. else
  204. VPATH += $(HARDWARE_DIR)/libraries/LiquidCrystal
  205. VPATH += $(HARDWARE_DIR)/libraries/SPI
  206. ifeq ($(LIQUID_TWI2), 1)
  207. VPATH += $(HARDWARE_DIR)/libraries/Wire
  208. VPATH += $(HARDWARE_DIR)/libraries/Wire/utility
  209. VPATH += $(HARDWARE_DIR)/libraries/LiquidTWI2
  210. endif
  211. ifeq ($(WIRE), 1)
  212. VPATH += $(HARDWARE_DIR)/libraries/Wire
  213. VPATH += $(HARDWARE_DIR)/libraries/Wire/utility
  214. endif
  215. endif
  216. ifeq ($(HARDWARE_VARIANT), arduino)
  217. HARDWARE_SUB_VARIANT ?= mega
  218. VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/variants/$(HARDWARE_SUB_VARIANT)
  219. else
  220. HARDWARE_SUB_VARIANT ?= standard
  221. VPATH += $(HARDWARE_DIR)/$(HARDWARE_VARIANT)/variants/$(HARDWARE_SUB_VARIANT)
  222. endif
  223. SRC = wiring.c \
  224. wiring_analog.c wiring_digital.c \
  225. wiring_pulse.c \
  226. wiring_shift.c WInterrupts.c
  227. ifeq ($(HARDWARE_VARIANT), Teensy)
  228. SRC = wiring.c
  229. VPATH += $(ARDUINO_INSTALL_DIR)/hardware/teensy/cores/teensy
  230. endif
  231. CXXSRC = WMath.cpp WString.cpp Print.cpp Marlin_main.cpp \
  232. MarlinSerial.cpp Sd2Card.cpp SdBaseFile.cpp SdFatUtil.cpp \
  233. SdFile.cpp SdVolume.cpp motion_control.cpp planner.cpp \
  234. stepper.cpp temperature.cpp cardreader.cpp ConfigurationStore.cpp \
  235. watchdog.cpp SPI.cpp Servo.cpp Tone.cpp ultralcd.cpp digipot_mcp4451.cpp \
  236. vector_3.cpp qr_solve.cpp
  237. ifeq ($(LIQUID_TWI2), 0)
  238. CXXSRC += LiquidCrystal.cpp
  239. else
  240. SRC += twi.c
  241. CXXSRC += Wire.cpp LiquidTWI2.cpp
  242. endif
  243. ifeq ($(WIRE), 1)
  244. SRC += twi.c
  245. CXXSRC += Wire.cpp
  246. endif
  247. #Check for Arduino 1.0.0 or higher and use the correct sourcefiles for that version
  248. ifeq ($(shell [ $(ARDUINO_VERSION) -ge 100 ] && echo true), true)
  249. CXXSRC += main.cpp
  250. else
  251. SRC += pins_arduino.c main.c
  252. endif
  253. FORMAT = ihex
  254. # Name of this Makefile (used for "make depend").
  255. MAKEFILE = Makefile
  256. # Debugging format.
  257. # Native formats for AVR-GCC's -g are stabs [default], or dwarf-2.
  258. # AVR (extended) COFF requires stabs, plus an avr-objcopy run.
  259. DEBUG = stabs
  260. OPT = s
  261. DEFINES ?=
  262. # Program settings
  263. CC = $(AVR_TOOLS_PATH)avr-gcc
  264. CXX = $(AVR_TOOLS_PATH)avr-g++
  265. OBJCOPY = $(AVR_TOOLS_PATH)avr-objcopy
  266. OBJDUMP = $(AVR_TOOLS_PATH)avr-objdump
  267. AR = $(AVR_TOOLS_PATH)avr-ar
  268. SIZE = $(AVR_TOOLS_PATH)avr-size
  269. NM = $(AVR_TOOLS_PATH)avr-nm
  270. AVRDUDE = avrdude
  271. REMOVE = rm -f
  272. MV = mv -f
  273. # Place -D or -U options here
  274. CDEFS = -DF_CPU=$(F_CPU) ${addprefix -D , $(DEFINES)}
  275. CXXDEFS = $(CDEFS)
  276. ifeq ($(HARDWARE_VARIANT), Teensy)
  277. CDEFS += -DUSB_SERIAL
  278. SRC += usb.c pins_teensy.c
  279. CXXSRC += usb_api.cpp
  280. endif
  281. # Add all the source directories as include directories too
  282. CINCS = ${addprefix -I ,${VPATH}}
  283. CXXINCS = ${addprefix -I ,${VPATH}}
  284. # Compiler flag to set the C Standard level.
  285. # c89 - "ANSI" C
  286. # gnu89 - c89 plus GCC extensions
  287. # c99 - ISO C99 standard (not yet fully implemented)
  288. # gnu99 - c99 plus GCC extensions
  289. #CSTANDARD = -std=gnu99
  290. CDEBUG = -g$(DEBUG)
  291. CWARN = -Wall -Wstrict-prototypes
  292. CTUNING = -funsigned-char -funsigned-bitfields -fpack-struct \
  293. -fshort-enums -w -ffunction-sections -fdata-sections \
  294. -DARDUINO=$(ARDUINO_VERSION)
  295. ifneq ($(HARDWARE_MOTHERBOARD),)
  296. CTUNING += -DMOTHERBOARD=${HARDWARE_MOTHERBOARD}
  297. endif
  298. #CEXTRA = -Wa,-adhlns=$(<:.c=.lst)
  299. CEXTRA = -fno-use-cxa-atexit
  300. CFLAGS := $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CWARN) $(CEXTRA) $(CTUNING)
  301. CXXFLAGS := $(CDEFS) $(CINCS) -O$(OPT) -Wall $(CEXTRA) $(CTUNING)
  302. #ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs
  303. LDFLAGS = -lm
  304. # Programming support using avrdude. Settings and variables.
  305. AVRDUDE_PORT = $(UPLOAD_PORT)
  306. AVRDUDE_WRITE_FLASH = -U flash:w:$(BUILD_DIR)/$(TARGET).hex:i
  307. ifeq ($(shell uname -s), Linux)
  308. AVRDUDE_CONF = $(ARDUINO_INSTALL_DIR)/hardware/tools/avrdude.conf
  309. else
  310. AVRDUDE_CONF = $(ARDUINO_INSTALL_DIR)/hardware/tools/avr/etc/avrdude.conf
  311. endif
  312. AVRDUDE_FLAGS = -D -C $(AVRDUDE_CONF) \
  313. -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) \
  314. -b $(UPLOAD_RATE)
  315. # Define all object files.
  316. OBJ = ${patsubst %.c, $(BUILD_DIR)/%.o, ${SRC}}
  317. OBJ += ${patsubst %.cpp, $(BUILD_DIR)/%.o, ${CXXSRC}}
  318. OBJ += ${patsubst %.S, $(BUILD_DIR)/%.o, ${ASRC}}
  319. # Define all listing files.
  320. LST = $(ASRC:.S=.lst) $(CXXSRC:.cpp=.lst) $(SRC:.c=.lst)
  321. # Combine all necessary flags and optional flags.
  322. # Add target processor to flags.
  323. ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS)
  324. ALL_CXXFLAGS = -mmcu=$(MCU) $(CXXFLAGS)
  325. ALL_ASFLAGS = -mmcu=$(MCU) -x assembler-with-cpp $(ASFLAGS)
  326. # set V=1 (eg, "make V=1") to print the full commands etc.
  327. ifneq ($V,1)
  328. Pecho=@echo
  329. P=@
  330. else
  331. Pecho=@:
  332. P=
  333. endif
  334. # Default target.
  335. all: sizeafter
  336. build: $(BUILD_DIR) elf hex
  337. # Creates the object directory
  338. $(BUILD_DIR):
  339. $P mkdir -p $(BUILD_DIR)
  340. elf: $(BUILD_DIR)/$(TARGET).elf
  341. hex: $(BUILD_DIR)/$(TARGET).hex
  342. eep: $(BUILD_DIR)/$(TARGET).eep
  343. lss: $(BUILD_DIR)/$(TARGET).lss
  344. sym: $(BUILD_DIR)/$(TARGET).sym
  345. # Program the device.
  346. # Do not try to reset an arduino if it's not one
  347. upload: $(BUILD_DIR)/$(TARGET).hex
  348. ifeq (${AVRDUDE_PROGRAMMER}, arduino)
  349. stty hup < $(UPLOAD_PORT); true
  350. endif
  351. $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH)
  352. ifeq (${AVRDUDE_PROGRAMMER}, arduino)
  353. stty -hup < $(UPLOAD_PORT); true
  354. endif
  355. # Display size of file.
  356. HEXSIZE = $(SIZE) --target=$(FORMAT) $(BUILD_DIR)/$(TARGET).hex
  357. ELFSIZE = $(SIZE) --mcu=$(MCU) -C $(BUILD_DIR)/$(TARGET).elf; \
  358. $(SIZE) $(BUILD_DIR)/$(TARGET).elf
  359. sizebefore:
  360. $P if [ -f $(BUILD_DIR)/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(HEXSIZE); echo; fi
  361. sizeafter: build
  362. $P if [ -f $(BUILD_DIR)/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
  363. # Convert ELF to COFF for use in debugging / simulating in AVR Studio or VMLAB.
  364. COFFCONVERT=$(OBJCOPY) --debugging \
  365. --change-section-address .data-0x800000 \
  366. --change-section-address .bss-0x800000 \
  367. --change-section-address .noinit-0x800000 \
  368. --change-section-address .eeprom-0x810000
  369. coff: $(BUILD_DIR)/$(TARGET).elf
  370. $(COFFCONVERT) -O coff-avr $(BUILD_DIR)/$(TARGET).elf $(TARGET).cof
  371. extcoff: $(TARGET).elf
  372. $(COFFCONVERT) -O coff-ext-avr $(BUILD_DIR)/$(TARGET).elf $(TARGET).cof
  373. .SUFFIXES: .elf .hex .eep .lss .sym
  374. .PRECIOUS: .o
  375. .elf.hex:
  376. $(Pecho) " COPY $@"
  377. $P $(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@
  378. .elf.eep:
  379. -$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \
  380. --change-section-lma .eeprom=0 -O $(FORMAT) $< $@
  381. # Create extended listing file from ELF output file.
  382. .elf.lss:
  383. $(OBJDUMP) -h -S $< > $@
  384. # Create a symbol table from ELF output file.
  385. .elf.sym:
  386. $(NM) -n $< > $@
  387. # Link: create ELF output file from library.
  388. $(BUILD_DIR)/$(TARGET).elf: $(OBJ) Configuration.h
  389. $(Pecho) " CXX $@"
  390. $P $(CC) $(ALL_CXXFLAGS) -Wl,--gc-sections -o $@ -L. $(OBJ) $(LDFLAGS)
  391. $(BUILD_DIR)/%.o: %.c Configuration.h Configuration_adv.h $(MAKEFILE)
  392. $(Pecho) " CC $<"
  393. $P $(CC) -MMD -c $(ALL_CFLAGS) $< -o $@
  394. $(BUILD_DIR)/%.o: $(BUILD_DIR)/%.cpp Configuration.h Configuration_adv.h $(MAKEFILE)
  395. $(Pecho) " CXX $<"
  396. $P $(CXX) -MMD -c $(ALL_CXXFLAGS) $< -o $@
  397. $(BUILD_DIR)/%.o: %.cpp Configuration.h Configuration_adv.h $(MAKEFILE)
  398. $(Pecho) " CXX $<"
  399. $P $(CXX) -MMD -c $(ALL_CXXFLAGS) $< -o $@
  400. # Target: clean project.
  401. clean:
  402. $(Pecho) " RM $(BUILD_DIR)/*"
  403. $P $(REMOVE) $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).eep $(BUILD_DIR)/$(TARGET).cof $(BUILD_DIR)/$(TARGET).elf \
  404. $(BUILD_DIR)/$(TARGET).map $(BUILD_DIR)/$(TARGET).sym $(BUILD_DIR)/$(TARGET).lss $(BUILD_DIR)/$(TARGET).cpp \
  405. $(OBJ) $(LST) $(SRC:.c=.s) $(SRC:.c=.d) $(CXXSRC:.cpp=.s) $(CXXSRC:.cpp=.d)
  406. $(Pecho) " RMDIR $(BUILD_DIR)/"
  407. $P rm -rf $(BUILD_DIR)
  408. .PHONY: all build elf hex eep lss sym program coff extcoff clean depend sizebefore sizeafter
  409. # Automaticaly include the dependency files created by gcc
  410. -include ${wildcard $(BUILD_DIR)/*.d}