+2001-09-29 Michael Hope <michaelh@juju.net.nz>
+
+ * Makefile (sdcc-libs): Added makebin to the list of standard targets.
+
+ * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
+
2001-09-25 Michael Hope <michaelh@juju.net.nz>
* configure.in: Fixed up so that ucsim is only configured once.
include $(PRJDIR)/Makefile.common
SDCC_MISC = debugger/mcs51 sim/ucsim
-SDCC_LIBS = support/cpp support/cpp2
+SDCC_LIBS = support/cpp support/cpp2 support/makebin
SDCC_DOC = doc
# Parts that are not normally compiled but need to be cleaned
-SDCC_EXTRA = support/regression support/makebin
+SDCC_EXTRA = support/regression
SDCC_ASLINK = as/mcs51 as link
SDCC_PACKIHX = packihx
-BIN = makebin
-OBJ = makebin.o
+PRJDIR = ../..
+
+SOURCES = makebin.c
+BIN = $(PRJDIR)/bin/makebin
+
+include $(PRJDIR)/Makefile.common
all: $(BIN)
-clean:
- rm -f $(BIN) $(OBJ) *~
+$(BIN): $(OBJ)
+ $(CC) -o $(BIN) $(OBJ)
install: all
- install --strip $(BIN) /usr/bin
\ No newline at end of file
+ $(INSTALL) $(BIN) `echo $(bindir)/makebin|sed '$(transform)'`
+
+include clean.mk
# Rule to generate a Emulator .bin file from the .ihx linker output.
%$(EXEEXT): %.ihx
- ../makebin/makebin -s 32768 < $< > $@ # Must be 32768 due to a bug in ConsoleZ80
+ $(SDCC_DIR)/bin/makebin -s 32768 < $< > $@
# Rule to link into .ihx
%.ihx: %.c $(EXTRAS)
$(SDCC) $(SDCCFLAGS) $< $(EXTRAS)
%$(OBJEXT): %.asm
- ../../bin/as-z80 -plosgff $@ $<
+ $(SDCC_DIR)/bin/as-z80 -plosgff $@ $<
%$(OBJEXT): %.s
- ../../bin/as-z80 -plosgff $@ $<
+ $(SDCC_DIR)/bin/as-z80 -plosgff $@ $<
%$(OBJEXT): %.c
$(SDCC) $(SDCCFLAGS) -c $<