X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=examples%2Fboard_timer_64led%2FMakefile;h=665025f3a6d0b1c66d60b062f242bb51afb0fd5a;hb=2215adbdec3b89b5c9bd8128537541a41fe741ee;hp=cde8e4c10c2fe7bac6bcc96b9d656a58dcdc38fd;hpb=5183ee71b76d81d2833a1febb4ed897e117e9a28;p=simavr diff --git a/examples/board_timer_64led/Makefile b/examples/board_timer_64led/Makefile index cde8e4c..665025f 100644 --- a/examples/board_timer_64led/Makefile +++ b/examples/board_timer_64led/Makefile @@ -16,13 +16,11 @@ # You should have received a copy of the GNU General Public License # along with simavr. If not, see . -board= timer_64led -firm_src = ${wildcard at*${board}.c} +target= timer_64led +firm_src = ${wildcard at*${target}.c} firmware = ${firm_src:.c=.axf} simavr = ../../ -SHELL = /bin/bash - IPATH = . IPATH += ../parts IPATH += ${simavr}/include @@ -38,16 +36,18 @@ else LDFLAGS += -framework GLUT -framework OpenGL endif -all: obj ${firmware} ${board} +all: obj ${firmware} ${target} include ${simavr}/Makefile.common -${board} : ${simavr}/simavr/libsimavr.a +board = ${OBJ}/${target}.elf + ${board} : ${OBJ}/button.o ${board} : ${OBJ}/hc595.o -${board} : ${OBJ}/${board}.o - @echo LD $@ - @gcc -MD ${CFLAGS} ${LFLAGS} -o $@ $^ $(LDFLAGS) +${board} : ${OBJ}/${target}.o + +${target}: ${board} + @echo $@ done -clean: - rm -rf obj *.hex *.a *.axf ${board} *.vcd +clean: clean-${OBJ} + rm -rf *.a *.axf ${target} *.vcd