Files
harbour-core/harbour/config/os2/global.cf
Przemyslaw Czerpak fbc91bbb33 2007-08-23 02:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/config/darwin/gcc.cf
  * harbour/config/darwin/global.cf
  * harbour/config/hpux/gcc.cf
  * harbour/config/hpux/global.cf
  * harbour/config/dos/owatcom.cf
  * harbour/config/dos/watcom.cf
  * harbour/config/dos/bcc16.cf
  * harbour/config/dos/global.cf
  * harbour/config/dos/rsx32.cf
  * harbour/config/dos/djgpp.cf
  * harbour/config/linux/owatcom.cf
  * harbour/config/linux/gcc.cf
  * harbour/config/linux/global.cf
  * harbour/config/os2/gcc.cf
  * harbour/config/os2/icc.cf
  * harbour/config/os2/global.cf
  * harbour/config/sunos/global.cf
  * harbour/config/bsd/gcc.cf
  * harbour/config/bsd/global.cf
  * harbour/config/w32/msvc.cf
  * harbour/config/w32/owatcom.cf
  * harbour/config/w32/watcom.cf
  * harbour/config/w32/bcc32.cf
  * harbour/config/w32/gcc.cf
  * harbour/config/w32/xcc.cf
  * harbour/config/w32/rsxnt.cf
  * harbour/config/w32/global.cf
  * harbour/config/w32/mingw32.cf
    + added support for linking with all GT libraries - please test

  * harbour/makefile.gc
    * removed system screen libraries - they are set by make_gcc.sh

  * harbour/bin/pack_src.sh
    + added HBDOT

  * harbour/harbour.spec
  * harbour/make_tgz.sh
    * replaced PP with HBDOT
2007-08-23 00:56:18 +00:00

68 lines
1.2 KiB
CFEngine3

#
# $Id$
#
all : first
HB_GT_LIST=\
gtcgi \
gtos2 \
gtpca \
gtstd \
# verify if GT drivers exist
HB_GT_LIBS := $(foreach gt, $(HB_GT_LIST), $(if $(wildcard $(TOP)$(ROOT)source/rtl/$(gt)),$(gt),))
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