#
#
-# HACK
-PORT = mcs51
-
# Version
VERSION = @VERSION@
VERSIONHI = @VERSIONHI@
CPP = @CPP@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
-YACC = @YACC@
+YACC = @YACC@
LEX = @LEX@
AWK = @AWK@
-
+STRIP = @STRIP@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
man2dir = $(mandir)/man2
infodir = @infodir@
srcdir = @srcdir@
+docdir = @docdir@
+
+include_dir_suffix = @include_dir_suffix@
+lib_dir_suffix = @lib_dir_suffix@
+
+# Modules to enable/disable
+OPT_ENABLE_UCSIM = @OPT_ENABLE_UCSIM@
+OPT_ENABLE_DEVICE_LIB_BUILD = @OPT_ENABLE_DEVICE_LIB_BUILD@
+OPT_ENABLE_PACKIHX = @OPT_ENABLE_PACKIHX@
+
+SLIB = $(PRJDIR)/support/Util
+
+transform = @program_transform_name@
# Flags
+
DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
-CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR)
-CFLAGS = @CFLAGS@ -Wall
+CPPFLAGS = $(INCLUDEFLAGS) -I. -I$(PRJDIR) -I$(SLIB)
+CFLAGS = -Wall @CFLAGS@
M_OR_MM = @M_OR_MM@
+EXTRALIBS = @LIBS@
+
# Shared settings between all the sub Makefiles
# Done here so that we don't have to start a Make from the top levelport
# directory.
# Library compilation options
-SCC = $(PRJDIR)/src/sdcc
-SAS = $(PRJDIR)/as/$(PORT)/as
-CLEANSPEC = *.lst *.asm *.sym *~ *.cdb
+CLEANSPEC = *.lst *.asm *.sym *~ *.cdb *.dep *.rul
+
+OBJ = $(SOURCES:.c=.o)