Files
harbour-core/harbour/source/pp/Makefile
Viktor Szakats fb63a2d9cc 2009-07-16 16:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
  * config/rules.cf
  * config/global.cf
    + Added new internal variable HB_HOST_BIN_DIR to avoid touching
      original HB_BIN_COMPILE and in turn mess up __PLATFORM__ macro
      definitions in recursive runs to GNU Make.
2009-07-16 14:38:30 +00:00

48 lines
869 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_HOST_BIN_DIR)/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))