top_builddir = @top_builddir@
VPATH = @srcdir@
-include $(top_builddir)Makefile.common
+include $(top_builddir)/Makefile.common
USE_ALT_LEX = 0
SLIBSOURCES = $(patsubst %.o,$(SLIB)/%.c,$(SLIBOBJS))
SOURCES = $(patsubst %.o,%.c,$(OBJECTS))
-TARGET = $(top_builddir)bin/sdcc$(EXEEXT)
+TARGET = $(top_builddir)/bin/sdcc$(EXEEXT)
# Compiling entire program or any subproject
# ------------------------------------------
FORCE:
-$(top_builddir)support/gc/libgc.a:
- $(MAKE) -C $(top_builddir)support/gc
+$(top_builddir)/support/gc/libgc.a:
+ $(MAKE) -C $(top_builddir)/support/gc
# Compiling and installing everything and runing test
# ---------------------------------------------------
# Remaking configuration
# ----------------------
checkconf:
- @if [ -f $(top_builddir)devel ]; then\
+ @if [ -f $(top_builddir)/devel ]; then\
$(MAKE) -f $(srcdir)/conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" \
freshconf;\
fi