* clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth...
[fw/sdcc] / sim / ucsim / xa.src / Makefile.in
index de6236827d7606f4968c7502696f9dd47cf8393e..f1af695e06fc4201a2f408186af56b7b0eefbe36 100644 (file)
@@ -15,7 +15,7 @@ INSTALL               = @INSTALL@
 
 PRJDIR         = ..
 
-EXEEXT          = @EXEEXT@
+EXEEXT         = @EXEEXT@
 
 DEFS            = $(subs -DHAVE_CONFIG_H,,@DEFS@)
 CPPFLAGS        = @CPPFLAGS@ -I. -I$(PRJDIR) \
@@ -24,7 +24,7 @@ CFLAGS          = @CFLAGS@ -Wall
 CXXFLAGS        = @CXXFLAGS@ -Wall
 M_OR_MM         = @M_OR_MM@
 
-LIBS           = @LIBS@ -L$(PRJDIR) -lsim -lutil -lcmd -lguiucsim
+LIBS           = @LIBS@ -L$(PRJDIR) -lsim -lutil -lguiucsim -lcmd -lsim
 
 prefix          = @prefix@
 exec_prefix     = @exec_prefix@
@@ -57,13 +57,13 @@ tests: $(TEST_OBJ)
 # Compiling and installing everything and runing test
 # ---------------------------------------------------
 install: all installdirs
-       $(INSTALL) -s sxa$(EXEEXT) $(bindir)
+       $(INSTALL) -s sxa$(EXEEXT) $(DESTDIR)$(bindir)
 
 
 # Deleting all the installed files
 # --------------------------------
 uninstall:
-       rm -f $(bindir)/sxa$(EXEEXT)
+       rm -f $(DESTDIR)$(bindir)/sxa$(EXEEXT)
 
 
 # Performing self-test
@@ -79,7 +79,7 @@ installcheck:
 # Creating installation directories
 # ---------------------------------
 installdirs:
-       test -d $(bindir) || $(INSTALL) -d $(bindir)
+       test -d $(DESTDIR)$(bindir) || $(INSTALL) -d $(DESTDIR)$(bindir)
 
 
 # Creating dependencies