/******************************************************************* * the C and C++ compilers *******************************************************************/ /******************************************************************* * options to give the C++ compiler *******************************************************************/ /* #ifdef USEEXTRAWARN BDEWARNINGS = \ -Wall \ -Wunused \ -Wstrict-prototypes \ -Wmissing-prototypes \ -Wnested-externs \ -Wenum-clash \ -Woverloaded-virtual \ -W *//*-ansi */ /* #endif */ /******************************************************************* * These are defines to be set during bde compiliation *******************************************************************/ /* #ifdef USEGENV6 GENVERSION = GENV6 #else GENVERSION = GENV8 #endif #ifdef USELCWC DCLCDEFINE = -DLCWC #endif #ifdef USE94SLC S94LCDEFINE = -DS94LC #endif BDEDEFINES = -D$(GENVERSION) $(BDEUSERDEFINES) $(S94LCDEFINE) \ $(DCLCDEFINE) -DDEFAULT_LIB_PATH=\"$(BDE_LIB_PATH)\" */ /******************************************************************* * This is what will actually be used by the C++ compiler *******************************************************************/ /* CPPOPTIONS = -g */ /* set debug flag *//* CPLUSPLUSFLAGS = $(BDEDEFINES) $(CPPOPTIONS) */ /******************************************************************* * Tell imake that we have subdirs and what we want to pass to the * imake files in those subdirs *******************************************************************/ #define IHaveSubdirs #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' \ 'CC=$(CC)' \ 'CPLUSPLUS=$(CPLUSPLUS)' \ 'CPLUSPLUSFLAGS=$(CPLUSPLUSFLAGS)' \ 'GENVERSION=$(GENVERSION)' /* * NamedTargetSubdirs - recursively make a series of steps */ #define ImakeSubdirs(dirs,name) @@\ name:: @@\ @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ @@\ for i in dirs ;\ @@\ do \ @@\ (cd $$i ; echo imakeing "in $(CURRENT_DIR)/$$i..."; \ @@\ sh init_comp); \ @@\ done SUBDIRS = pr_util olc/src OP/src TImer/src JP/src MakeSubdirs($(SUBDIRS)) ImakeSubdirs($(SUBDIRS),imake) DependSubdirs($(SUBDIRS)) clean:: rm `find . -name \*.o -print` `find . -name \*.a -print` `find . -name \*.exe -print` touch schema/jpbatch.sch touch schema/f93olc.sch /******************************************************************* * this ifdef UltrixArchitecture is only needed to work around * a bug in the imake templates on our ultrix machines, * this can be removed as soon as the bug is fixed *******************************************************************/ #ifdef UltrixArchitecture IMAKE_CMD = $(IMAKE) -DUseInstalled -Dnostdinc\ -I/usr/lib/X11/config \ $(IMAKE_DEFINES) DEPXMLIB = /usr/include #endif