DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
# FIXME: -Imcs51 must be removed!!!
-CPPFLAGS = @CPPFLAGS@ -I$(top_builddir). -I$(srcdir) \
+CPPFLAGS = @CPPFLAGS@ -I$(top_builddir) -I$(srcdir) \
-I$(top_srcdir)/$(SIMDIR) \
-I$(top_srcdir)/$(CMDDIR) -I$(top_srcdir)/$(GUIDIR)
CFLAGS = @CFLAGS@ -I$(top_builddir) -Wall
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))
bindir = @bindir@
libdir = @libdir@
datadir = @datadir@
+datarootdir = @datarootdir@
includedir = @includedir@
mandir = @mandir@
man1dir = $(mandir)/man1
# ------------------------------------------
all: checkconf libs
-libs: libutil.a
+libs: libucsimutil.a
main_app: checkconf ucsim_app
dep: main.dep
main.dep: $(ALL_SOURCES) *.h $(srcdir)/*.h
- $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) $^ >main.dep
+ $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) $(filter %.cc,$^) >main.dep
-include main.dep
+-include main.dep
include $(srcdir)/clean.mk
#parser.cc: parser.y
# My rules
# --------
-libutil.a: $(OBJECTS)
+libucsimutil.a: $(OBJECTS)
ar -rcu $*.a $(OBJECTS)
$(RANLIB) $*.a