X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=link%2Fz80%2FMakefile.in;h=e51841862da8bd04ebdbcd4aa9a4166ecc8585df;hb=f1c40004ae349f7cd3a1a5c5c85f62f695196370;hp=3eae501720d38c5170e1e801631b6b3ef09e48c1;hpb=2d68a8dff5ebde9772c9f8467064324d8d408e8d;p=fw%2Fsdcc diff --git a/link/z80/Makefile.in b/link/z80/Makefile.in index 3eae5017..e5184186 100644 --- a/link/z80/Makefile.in +++ b/link/z80/Makefile.in @@ -14,6 +14,8 @@ INSTALL = @INSTALL@ PRJDIR = ../.. +EXEEXT = @EXEEXT@ + srcdir = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ @@ -40,24 +42,24 @@ LKOBJECTS = lkarea.o lkdata.o lkeval.o lkhead.o lkihx.o lklex.o \ lkgb.o lkgg.o LKSOURCES = $(patsubst %.o,%.c,$(LKOBJECTS)) -LKZ80 = $(PRJDIR)/bin/link-z80 +LKZ80 = $(PRJDIR)/bin/link-z80$(EXEEXT) # Compiling entire program or any subproject # ------------------------------------------ all: checkconf $(LKZ80) $(LKZ80): $(SLIBOBJS) $(LKOBJECTS) - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SLIBOBJS) $(LKOBJECTS) + $(CC) $(CFLAGS) -o $@ $(SLIBOBJS) $(LKOBJECTS) $(LDFLAGS) # Compiling and installing everything and runing test # --------------------------------------------------- install: all installdirs - $(INSTALL) $(LKZ80) $(bindir)/link-z80 + $(INSTALL) $(LKZ80) $(DESTDIR)$(bindir)/link-z80$(EXEEXT) # Deleting all the installed files # -------------------------------- uninstall: - rm -f $(bindir)/link-z80 + rm -f $(DESTDIR)$(bindir)/link-z80$(EXEEXT) # Performing self-test @@ -73,7 +75,7 @@ installcheck: # Creating installation directories # --------------------------------- installdirs: - $(INSTALL) -d $(bindir) + $(INSTALL) -d $(DESTDIR)$(bindir) # Creating dependencies