Files
harbour-core/harbour/source/pp/Makefile
Przemyslaw Czerpak 525f08b7dc 2009-08-10 23:16 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/pp/Makefile
  * harbour/config/os2/watcom.cf
    * added workarounds for problems with OS2 builds - please test
2009-08-10 21:16:27 +00:00

56 lines
1013 B
Makefile

#
# $Id$
#
ROOT := ../../
C_SOURCES := \
pptable.c \
ppcore.c \
pplib.c \
pplib2.c \
pplib3.c \
LIBNAME := hbpp
LIBS := \
hbcommon \
hbnortl \
include $(TOP)$(ROOT)config/lib.cf
ifneq ($(HB_ARCHITECTURE),)
ifneq ($(HB_COMPILER),)
INSTALL_RULE_LIBRARIES := $(INSTALL_RULE)
HB_VERHEADER=$(TOP)$(ROOT)include/hbverbld.h
BIN_FILE := $(BIN_DIR)/hbpp$(BIN_EXT)
vpath hbpp$(BIN_EXT) $(BIN_DIR)
pptable.c : hbpp$(BIN_EXT)
$(HB_HOST_BIN_DIR)/hbpp$(HB_HOST_BIN_EXT) $(TOP)$(ROOT)include/hbstdgen.ch -opptable.c -q -c$(TOP)$(ROOT) -v$(HB_VERHEADER)
-@$(RM) hbpp$(OBJ_EXT)
ifneq ($(HB_HOST_BUILD),lib)
ifneq ($(HB_BIN_INSTALL),)
INSTALL_FILES := $(BIN_DIR)/hbpp$(BIN_EXT)
INSTALL_DIR := $(HB_BIN_INSTALL)
HB_INSTALL_DEF := yes
include $(TOP)$(ROOT)config/install.cf
endif
endif
install::
$(INSTALL_RULE_LIBRARIES)
clean::
-@$(RM) $(subst /,$(DIRSEP),$(HB_VERHEADER))
-@$(RM) $(subst /,$(DIRSEP),$(BIN_DIR)/hbpp$(BIN_EXT))
-@$(RM) $(subst /,$(DIRSEP),$(BIN_DIR)/hbpp.tds)
endif
endif