X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fmakebin%2FMakefile;h=66e49b30858715328d7494214e6b6a4cb4e5bde7;hb=7837c232c608353fb948c183d8e92775f427e5a9;hp=6de6460044c056c889e0152343a354c0376e0407;hpb=68f3891d9f67f419f8d6b14b16ea34ab8b137588;p=fw%2Fsdcc diff --git a/support/makebin/Makefile b/support/makebin/Makefile index 6de64600..66e49b30 100644 --- a/support/makebin/Makefile +++ b/support/makebin/Makefile @@ -1,16 +1,21 @@ PRJDIR = ../.. SOURCES = makebin.c -BIN = $(PRJDIR)/bin/makebin +BIN = $(PRJDIR)/bin/makebin$(EXEEXT) include $(PRJDIR)/Makefile.common all: $(BIN) $(BIN): $(OBJ) - $(CC) -o $(BIN) $(OBJ) + $(CC) $(LDFLAGS) -o $(BIN) $(OBJ) install: all - $(INSTALL) $(BIN) `echo $(bindir)/makebin|sed '$(transform)'` + mkdir -p $(bindir) + $(INSTALL) $(BIN) `echo $(bindir)/makebin$(EXEEXT)|sed '$(transform)'` + $(STRIP) `echo $(bindir)/makebin$(EXEEXT)|sed '$(transform)'` + +uninstall: + rm -f $(bindir)/makebin$(EXEEXT) include clean.mk