* sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
[fw/sdcc] / sim / ucsim / main_in.mk
index 9c277c2da9ff47c0e5e0ab079231cb6c30509777..ea45c8eda03317cc070a31aeca20edd958b7d118 100644 (file)
@@ -30,7 +30,7 @@ M_OR_MM         = @M_OR_MM@
 
 EXEEXT         = @EXEEXT@
 
-LIB_LIST       = util cmd sim
+LIB_LIST       = ucsimutil cmd sim
 UCSIM_LIBS     = -Wl,--start-group $(patsubst %,-l%,$(LIB_LIST)) -Wl,--end-group
 UCSIM_LIB_FILES        = $(patsubst %,lib%.a,$(LIB_LIST))
 
@@ -61,7 +61,7 @@ enable_ucsim  = @enable_ucsim@
 # ------------------------------------------
 all: checkconf libs
 
-libs: libutil.a
+libs: libucsimutil.a
 
 main_app: checkconf ucsim_app
 
@@ -102,7 +102,7 @@ dep: main.dep
 main.dep: $(ALL_SOURCES) *.h $(srcdir)/*.h
        $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) $(filter %.cc,$^) >main.dep
 
-include main.dep
+-include main.dep
 include $(srcdir)/clean.mk
 
 #parser.cc: parser.y
@@ -111,7 +111,7 @@ include $(srcdir)/clean.mk
 
 # My rules
 # --------
-libutil.a: $(OBJECTS)
+libucsimutil.a: $(OBJECTS)
        ar -rcu $*.a $(OBJECTS)
        $(RANLIB) $*.a