Get debugger working with --disable-boehm-gc flag
authorstevewilliams <stevewilliams@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 9 Nov 2000 00:58:18 +0000 (00:58 +0000)
committerstevewilliams <stevewilliams@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 9 Nov 2000 00:58:18 +0000 (00:58 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@492 4a8a32a2-be11-0410-ad9d-d568d2c75423

debugger/mcs51/.cvsignore [new file with mode: 0644]
debugger/mcs51/Makefile.in
debugger/mcs51/sdcdb.h

diff --git a/debugger/mcs51/.cvsignore b/debugger/mcs51/.cvsignore
new file mode 100644 (file)
index 0000000..79d1b96
--- /dev/null
@@ -0,0 +1,2 @@
+Makefile
+Makefile.dep
index 086ce97d5a72f2adf06fdd5142b10beb5238d138..f48de5054764a5334b162836b38ebc09ca95182b 100644 (file)
@@ -13,13 +13,14 @@ CPP         = @CPP@
 INSTALL                = @INSTALL@
 
 PRJDIR         = ../..
+DISABLE_GC     = @DISABLE_GC@
 
 srcdir         = @srcdir@
 prefix         = @prefix@
 exec_prefix     = ${prefix}
 bindir          = ${exec_prefix}/bin
 libdir          = ${exec_prefix}/lib
-datadir         = ${prefix}/share
+datadir         = @datadir@
 includedir      = ${prefix}/include
 mandir          = ${prefix}/man
 man1dir         = $(mandir)/man1
@@ -31,8 +32,14 @@ CPPFLAGS     = @CPPFLAGS@ -I. -I$(PRJDIR) -I$(PRJDIR)/support
 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
+endif
 
 
 OBJECTS                = sdcdb.o symtab.o simi.o $(PRJDIR)/src/SDCCset.o \
index 9d15567828852a4999ec8c495403c31df588e925..84fe88c764463fdc78b1e56685ca6ff71ebb03fb 100644 (file)
 #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"