#.suffixes: .180 .rel
.phony: all
-all: ../stm32/hdrom.c ../stm32/hdrom.h
+all: hdrom.c hdrom.h
$(OBJ): $(INC)
-../stm32/hdrom.h: ../stm32/hdrom.c
+hdrom.h: hdrom.c
comma:= ,
empty:=
exit $${ERROR}
endef
-../stm32/hdrom.c: hdrom.hex
+hdrom.c: hdrom.hex
srec_cat -o $@ -c_array $(basename $<) -C_COMpressed -include $< -Intel
hdrom.hex : $(OBJ)
BINARY := z180-stamp-stm32
P_BINARY := $(OBJPATH)/$(BINARY)
-TARGETS := $(BINARY).elf #$(BINARY).bin
+TARGETS := $(BINARY).elf
-SRCS := z180-stamp-stm32.c serial.c z80-if.c hdrom.c
+###############################################################################
+# Source files
+SRCS := z180-stamp-stm32.c serial.c z80-if.c hdrom.c
+
+SRCS_VPATH := ../Z180
LIBNAME = opencm3_stm32f1
DEFS = -DSTM32F1 -DDEBUG=2
GDB := $(TOOLCHAIN)-gdb
###############################################################################
-# Source files
-
ifeq ($(VERBOSE),true)
LDLIBS += -l$(LIBNAME)
LDLIBS += -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group
-
-###############################################################################
###############################################################################
images: $(P_BINARY).images
flash: $(P_BINARY).flash
-%.images: %.bin %.hex %.srec %.list
+%.images: %.bin %.hex %.list
$(call echo_cmd,Images generated: $*)
%.bin: %.elf