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
bindir = @bindir@
libdir = @libdir@
datadir = @datadir@
+datarootdir = @datarootdir@
includedir = @includedir@
mandir = @mandir@
man1dir = $(mandir)/man1
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 $(srcdir)/clean.mk