Files
harbour-core/harbour/source/pp/Makefile
Viktor Szakats a255567515 2009-06-14 19:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    * Updated.

  * source/pp/Makefile
    ! Fixed to ignore clean command result which is a TOFIX.
      (anyone to help here?)
    ! Changed ChangeLog file detection to specifically look 
      for CHANGE~1 and to not look for CHANGE~* and CHANG~* 
      where the latter cannot exist and the former may 
      accidentally pick up wrong file.
2009-06-14 17:59:01 +00:00

60 lines
1.1 KiB
Makefile

#
# $Id$
#
ROOT = ../../
C_SOURCES=\
pptable.c \
ppcore.c \
pplib.c \
pplib2.c \
pplib3.c \
LIBNAME=hbpp
LIBS=\
hbcommon \
ifeq ($(HB_PPGEN_PATH),)
HB_PPGEN_PATH=.
endif
include $(TOP)$(ROOT)config/lib.cf
INSTALL_RULE_LIBRARIES := $(INSTALL_RULE)
# TOFIX: Convert to backslash *when* needed.
HB_VERHEADER=$(TOP)$(ROOT)include/hbverbld.h
ifeq ($(HB_CHANGELOG),)
HB_CHANGELOG:=$(wildcard $(TOP)$(ROOT)ChangeLog)
ifeq ($(HB_CHANGELOG),)
HB_CHANGELOG:=$(wildcard $(TOP)$(ROOT)[Cc]hange[Ll]o)
ifeq ($(HB_CHANGELOG),)
HB_CHANGELOG:=$(wildcard $(TOP)$(ROOT)[Cc]hange~1)
endif
endif
endif
ifneq ($(HB_PP_RULES),)
pptable.c : $(HB_PP_RULES)
$(CP) $(subst /,$(DIRSEP),$<) $@
else
pptable.c : hbpp$(EXE_EXT)
$(HB_PPGEN_PATH)/hbpp$(EXE_EXT) $(TOP)$(ROOT)include/hbstdgen.ch -opptable.c -q -c$(HB_CHANGELOG) -v$(HB_VERHEADER)
endif
ifneq ($(HB_BIN_INSTALL),)
INSTALL_OBJS = $(ARCH_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) $(HB_VERHEADER)