Files
harbour-core/harbour/source/pp/Makefile
Viktor Szakats 8803ac29e6 2009-07-15 18:07 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* source/pp/Makefile
  * source/pp/hbpp.c
    + hbpp is now accepting directory for -c parameter and in this
      case it will check ChangLog names in specified dir.
    + Modified make file to pass dir to hbpp so now it configures 
      itself automatically no matter where we move the object directory.
    ; Please review me.
2009-07-15 16:08:52 +00:00

48 lines
860 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$(EXE_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))