CXXCPP = @CXXCPP@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
+STRIP = @STRIP@
PRJDIR = ..
SHAREDLIB = @SHAREDLIB@
EXEEXT = @EXEEXT@
-LIBS = @LIBS@ -L$(PRJDIR) -Wl,--start-group -lsim -lutil -lcmd -lguiucsim -Wl,--end-group
+LIBS = @LIBS@ -L$(PRJDIR) -lsim -lutil -lguiucsim -lcmd -lsim
DL = @DL@
dl_ok = @dl_ok@
# Compiling and installing everything and runing test
# ---------------------------------------------------
install: all installdirs
- $(INSTALL) -s savr$(EXEEXT) $(bindir)
+ $(INSTALL) savr$(EXEEXT) $(DESTDIR)$(bindir)/savr$(EXEEXT)
+ $(STRIP) $(DESTDIR)$(bindir)/savr$(EXEEXT)
# Deleting all the installed files
# --------------------------------
uninstall:
- rm -f $(bindir)/savr
+ rm -f $(DESTDIR)$(bindir)/savr
# Performing self-test
# Creating installation directories
# ---------------------------------
installdirs:
- test -d $(bindir) || $(INSTALL) -d $(bindir)
+ test -d $(DESTDIR)$(bindir) || $(INSTALL) -d $(DESTDIR)$(bindir)
# Creating dependencies