From 2ba4b0716c266cb987ce7dea2892b59c895293d9 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 31 May 2018 09:10:02 +0300 Subject: [PATCH] Cleanup BCC makefile (remove absolute GC paths, fix del cmd, update clean) * BCC_MAKEFILE (gcinclude1): Use relative path. * BCC_MAKEFILE (gcinclude2): Remove. * BCC_MAKEFILE (gc.lib, clean): Ignore errors of "del" command. * BCC_MAKEFILE (gc_cpp.cpp, scratch): Remove rule. * BCC_MAKEFILE (.rc.res, gctest.exe, cord\de.exe, test_cpp.exe): Use tabs consistently. * BCC_MAKEFILE (clean): Remove also *.log, *.tds, "gc.#0*" files, and the ones which were specified for scratch rule. --- BCC_MAKEFILE | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/BCC_MAKEFILE b/BCC_MAKEFILE index bc4f3205..bebde20e 100644 --- a/BCC_MAKEFILE +++ b/BCC_MAKEFILE @@ -5,14 +5,13 @@ bcbin= $(bc)\bin bclib= $(bc)\lib bcinclude= $(bc)\include -gcinclude1 = $(bc)\gc6.2\include -gcinclude2 = $(bc)\gc6.2\cord +gcinclude1 = .\include cc= $(bcbin)\bcc32 rc= $(bcbin)\brc32 lib= $(bcbin)\tlib link= $(bcbin)\ilink32 -cflags= -O2 -R -v- -vi -H -H=gc.csm -I$(bcinclude);$(gcinclude1);$(gcinclude2) -L$(bclib) \ +cflags= -O2 -R -v- -vi -H -H=gc.csm -I$(bcinclude);$(gcinclude1) -L$(bclib) \ -w-pro -w-aus -w-par -w-ccc -w-inl -w-rch -a4 defines= -DALL_INTERIOR_POINTERS -DNO_GETENV -DJAVA_FINALIZATION -DENABLE_DISCLAIM -DGC_OPERATOR_NEW_ARRAY @@ -27,7 +26,7 @@ defines= -DALL_INTERIOR_POINTERS -DNO_GETENV -DJAVA_FINALIZATION -DENABLE_DISCLA | .rc.res: - $(rc) -i$(bcinclude) -r -fo$* $*.rc + $(rc) -i$(bcinclude) -r -fo$* $*.rc XXXOBJS= XXXalloc.obj XXXreclaim.obj XXXallchblk.obj XXXmisc.obj \ XXXmach_dep.obj XXXos_dep.obj XXXmark_rts.obj XXXheaders.obj XXXmark.obj \ @@ -43,13 +42,13 @@ all: gctest.exe cord\de.exe test_cpp.exe $(OBJS) test.obj: include\private\gc_priv.h include\private\gc_hdrs.h include\gc.h include\private\gcconfig.h MAKEFILE gc.lib: $(OBJS) - del gc.lib + -del gc.lib $(lib) $* @&&| $(XXXOBJS:XXX=+) | gctest.exe: tests\test.obj gc.lib - $(cc) @&&| + $(cc) @&&| $(cflags) -W -e$* tests\test.obj gc.lib | @@ -62,25 +61,18 @@ cord\de.exe: cord\cordbscs.obj cord\cordxtra.obj cord\tests\de.obj \ $(cflags) -W -e$* cord\cordbscs.obj cord\cordxtra.obj \ cord\tests\de.obj cord\tests\de_win.obj gc.lib | - $(rc) cord\tests\de_win.res cord\de.exe + $(rc) cord\tests\de_win.res cord\de.exe gc_cpp.obj: include\gc_cpp.h include\gc.h -gc_cpp.cpp: gc_cpp.cc - copy gc_cpp.cc gc_cpp.cpp - test_cpp.cpp: tests\test_cpp.cc copy tests\test_cpp.cc test_cpp.cpp test_cpp.exe: test_cpp.obj include\gc_cpp.h include\gc.h gc.lib - $(cc) @&&| + $(cc) @&&| $(cflags) -W -e$* test_cpp.obj gc.lib | -scratch: - -del *.obj *.res *.exe *.csm cord\*.obj cord\*.res cord\*.exe cord\*.csm - clean: - del gc.lib - del *.obj - del tests\test.obj + -del *.obj *.res *.exe *.csm cord\*.obj cord\*.res cord\*.exe cord\*.csm + -del *.log *.tds gc.lib tests\test.obj "gc.#0*" -- 2.50.1