git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@492
4a8a32a2-be11-0410-ad9d-
d568d2c75423
INSTALL = @INSTALL@
PRJDIR = ../..
INSTALL = @INSTALL@
PRJDIR = ../..
+DISABLE_GC = @DISABLE_GC@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
libdir = ${exec_prefix}/lib
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
libdir = ${exec_prefix}/lib
-datadir = ${prefix}/share
includedir = ${prefix}/include
mandir = ${prefix}/man
man1dir = $(mandir)/man1
includedir = ${prefix}/include
mandir = ${prefix}/man
man1dir = $(mandir)/man1
CFLAGS = @CFLAGS@
M_OR_MM = @M_OR_MM@
LDFLAGS = @LDFLAGS@
CFLAGS = @CFLAGS@
M_OR_MM = @M_OR_MM@
LDFLAGS = @LDFLAGS@
+
+ifeq ($(DISABLE_GC),1)
+LIBS = @LIBS@
+LIBDIRS =
+else
LIBS = -lgc @LIBS@
LIBDIRS = -L$(PRJDIR)/support/gc
LIBS = -lgc @LIBS@
LIBDIRS = -L$(PRJDIR)/support/gc
OBJECTS = sdcdb.o symtab.o simi.o $(PRJDIR)/src/SDCCset.o \
OBJECTS = sdcdb.o symtab.o simi.o $(PRJDIR)/src/SDCCset.o \
#include <ctype.h>
#include <limits.h>
#include "sdccconf.h"
#include <ctype.h>
#include <limits.h>
#include "sdccconf.h"
-#ifdef _NO_GC
-
-#define GC_malloc malloc
-#define GC_free free
-#define GC_realloc realloc
-
-#else
-
-#include "gc/gc.h"
-
-#endif
-
+#include "src/SDCCalloc.h"
#include "src/SDCCset.h"
#include "src/SDCChasht.h"
#include "src/SDCCset.h"
#include "src/SDCChasht.h"