Files
harbour-core/harbour/source/pp/Makefile
Przemyslaw Czerpak e4cfb37946 2009-07-15 20:02 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/harbour.spec
    ! fixed RPM building after recent modification in Makefiles

  * harbour/harbour-win-spec
  * harbour/harbour-wce-spec
    * updated for new binary files directory and HB_BIN_COMPILE meaning

  * harbour/source/pp/Makefile
  * harbour/config/rules.cf
    ! fixed binary extension used to execute hbpp and harbour,
      AFAIK in current version it should be HB_HOST_BIN_EXT not EXE_EXT

  * harbour/config/global.cf
    ! fixed host architecture autodetection:
         @uname = $(shell uname -a)
      does not execute command silently but creates envvar '@uname'
    % added function for host detection and extended host detection
      rules to work with some envvars
    % test some known OS envvars before calling uname
    ! use 'uname -s' instead of 'uname -a' which may cause wrong host
      detection when host name contains some string we are looking for
    ! set .exe in HB_HOST_BIN_EXT for win_amd64
2009-07-15 18:02:57 +00:00

48 lines
868 B
Makefile

#
# $Id$
#
ROOT = ../../
C_SOURCES=\
pptable.c \
ppcore.c \
pplib.c \
pplib2.c \
pplib3.c \
LIBNAME=hbpp
LIBS=\
hbcommon \
hbnulrtl \
include $(TOP)$(ROOT)config/lib.cf
INSTALL_RULE_LIBRARIES := $(INSTALL_RULE)
HB_VERHEADER=$(TOP)$(ROOT)include/hbverbld.h
vpath hbpp$(EXE_EXT) $(EXE_DIR)
ifneq ($(HB_PP_RULES),)
pptable.c : $(HB_PP_RULES)
$(CP) $(subst /,$(DIRSEP),$<) $@
else
pptable.c : hbpp$(EXE_EXT)
$(HB_BIN_COMPILE)/hbpp$(HB_HOST_BIN_EXT) $(TOP)$(ROOT)include/hbstdgen.ch -opptable.c -q -c$(TOP)$(ROOT) -v$(HB_VERHEADER)
endif
ifneq ($(HB_BIN_INSTALL),)
INSTALL_FILES = $(EXE_DIR)/hbpp$(EXE_EXT)
INSTALL_DIR = $(HB_BIN_INSTALL)
HB_INSTALL_DEF=yes
include $(TOP)$(ROOT)config/install.cf
endif
install::
$(INSTALL_RULE_LIBRARIES)
clean::
-$(RM) $(subst /,$(DIRSEP),$(HB_VERHEADER))
-$(RM) $(subst /,$(DIRSEP),$(EXE_DIR)/hbpp$(EXE_EXT))