From 268a53de823a6750d6256ee1fb1e7707b4b45740 Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Fri, 18 Oct 2019 00:31:54 +0200 Subject: sdcc-3.9.0 fork implementing GNU assembler syntax This fork aims to provide better support for stm8-binutils --- support/makebin/Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 support/makebin/Makefile (limited to 'support/makebin/Makefile') diff --git a/support/makebin/Makefile b/support/makebin/Makefile new file mode 100644 index 0000000..1a33cd3 --- /dev/null +++ b/support/makebin/Makefile @@ -0,0 +1,25 @@ + +srcdir = . + +top_builddir = ../.. + +SOURCES = makebin.c +BIN = $(top_builddir)/bin/makebin$(EXEEXT) + +include $(top_builddir)/Makefile.common + +all: $(BIN) + +$(BIN): $(OBJ) + mkdir -p $(top_builddir)/bin + $(CC) $(LDFLAGS) -o $(BIN) $(OBJ) + +install: all + mkdir -p $(DESTDIR)$(bindir) + $(INSTALL) $(BIN) $(DESTDIR)$(bindir)/`echo makebin|sed '$(transform)'`$(EXEEXT) + $(STRIP) $(DESTDIR)$(bindir)/`echo makebin|sed '$(transform)'`$(EXEEXT) + +uninstall: + rm -f $(DESTDIR)$(bindir)/`echo makebin|sed '$(transform)'`$(EXEEXT) + +include $(srcdir)/clean.mk -- cgit v1.2.3