My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Makefile 15KB

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