Files
harbour-core/harbour/source/pp/Makefile
Viktor Szakats 2b2a377ff9 2009-07-15 03:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
  * config/hpux/global.cf
  * config/darwin/global.cf
  * config/dos/global.cf
  * config/lib.cf
  * config/win/global.cf
  * config/linux/global.cf
  * config/bin.cf
  * config/os2/global.cf
  * config/test.cf
  * config/sunos/global.cf
  * config/bsd/global.cf
  * config/wce/global.cf
    * ARCH_COMP_OS  -> OBJ_DIR_OS
    * ARCH_COMP_DIR -> OBJ_DIR
    (using names that make more sense)
2009-07-15 01:31:27 +00:00

50 lines
810 B
Makefile

#
# $Id$
#
ROOT = ../../
C_SOURCES=\
pptable.c \
ppcore.c \
pplib.c \
pplib2.c \
pplib3.c \
LIBNAME=hbpp
LIBS=\
hbcommon \
hbnulrtl \
ifeq ($(HB_PPGEN_PATH),)
HB_PPGEN_PATH=.
endif
include $(TOP)$(ROOT)config/lib.cf
INSTALL_RULE_LIBRARIES := $(INSTALL_RULE)
HB_VERHEADER=$(TOP)$(ROOT)include/hbverbld.h
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 -v$(HB_VERHEADER)
endif
ifneq ($(HB_BIN_INSTALL),)
INSTALL_FILES = $(OBJ_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))