* harbour/config/os2/global.cf
* harbour/contrib/hgf/os2pm/os2pm.c
* harbour/include/hbdefs.h
* harbour/include/hbgtcore.h
* harbour/source/rdd/dbcmd.c
* harbour/source/vm/mainpm.c
* cleaned OS2 build errors and warnings reported by David Macias.
Modifications not tested - OS2 users will have to make tests and
reports problems.
65 lines
1.1 KiB
CFEngine3
65 lines
1.1 KiB
CFEngine3
#
|
|
# $Id$
|
|
#
|
|
|
|
all : first
|
|
|
|
HB_GT_LIBS=\
|
|
gtcgi \
|
|
gtos2 \
|
|
gtpca \
|
|
gtstd \
|
|
|
|
ifeq ($(HB_GT_LIB),)
|
|
HB_GT_LIB = gtos2
|
|
endif
|
|
|
|
ifeq ($(SHLVL),) # An OS/2 command shell
|
|
|
|
ARCH_DIR = $(HB_ARCH)
|
|
OS2_ARCH_DIR = $(subst /,\,$(HB_ARCH))
|
|
DIRSEP = $(subst /,\,\)
|
|
|
|
MK = $(subst /,\,$(subst \~,~,$(MAKE)))
|
|
|
|
ifeq ($(OS2_SHELL),)
|
|
# Not running on OS/2 (which comes in handy for 'make -r clean')
|
|
RM = del /q
|
|
else
|
|
# Running on OS/2
|
|
RM = del /n
|
|
endif
|
|
RD = rmdir
|
|
CP = copy
|
|
MV = move
|
|
MD = md
|
|
|
|
dirbase::
|
|
-CMD.EXE /c IF NOT EXIST $(HB_ARCHITECTURE) $(MD) $(HB_ARCHITECTURE)
|
|
-CMD.EXE /c IF NOT EXIST $(OS2_ARCH_DIR) $(MD) $(OS2_ARCH_DIR)
|
|
|
|
clean::
|
|
-CMD.EXE /c IF EXIST $(OS2_ARCH_DIR)\\*.* $(RM) $(OS2_ARCH_DIR)\\*.*
|
|
-CMD.EXE /c IF EXIST $(OS2_ARCH_DIR) $(RD) $(OS2_ARCH_DIR)
|
|
-CMD.EXE /c IF EXIST $(HB_ARCHITECTURE) $(RD) $(HB_ARCHITECTURE)
|
|
|
|
else # bash
|
|
|
|
ARCH_DIR = $(HB_ARCH)/
|
|
MK = $(MAKE)
|
|
|
|
RM = rm -f
|
|
RD = rm -f -r
|
|
CP = cp -f
|
|
MV = mv -f
|
|
MD = mkdir
|
|
|
|
dirbase::
|
|
@[ -d $(HB_ARCHITECTURE) ] || $(MD) $(HB_ARCHITECTURE); \
|
|
[ -d $(HB_ARCH) ] || $(MD) $(HB_ARCH)
|
|
|
|
clean::
|
|
-$(RD) $(ARCH_DIR)
|
|
|
|
endif
|