all: checkconf $(ASXZ80)
$(ASXZ80): $(ASOBJECTS)
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ASOBJECTS)
+ $(CC) $(CFLAGS) -o $@ $(ASOBJECTS) $(LDFLAGS)
# Compiling and installing everything and runing test
# ---------------------------------------------------
install: all installdirs
- $(INSTALL) -s $(ASXZ80) $(bindir)/as-z80
+ $(INSTALL) $(ASXZ80) $(DESTDIR)$(bindir)/as-z80
# Deleting all the installed files
# --------------------------------
uninstall:
- rm -f $(bindir)/as-z80
+ rm -f $(DESTDIR)$(bindir)/as-z80
# Performing self-test
# Creating installation directories
# ---------------------------------
installdirs:
- $(INSTALL) -d $(bindir)
+ $(INSTALL) -d $(DESTDIR)$(bindir)
# Creating dependencies