* source/pp/Makefile
! Readded empty line after pptable rule.
I couldn't find the reason why this was needed, anyhow
without it the dynamic hbpp obj deletion didn't work.
Which GNU Make syntax rules am I forgetting? Any hints?
; TOFIX: Another issue has shown its ugly head, here clean
in hbpp shows error message from 'del' command on
nt shell deleting the .exe (and .tds), despite the
file is there and we're doing wildcard check too.
Ideas are welcome. This worked a few days ago.
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
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.mk
|
|
|
|
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)
|
|
|
|
# NOTE: Leave the extra empty line after the rules.
|
|
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)
|
|
$(if $(wildcard hbpp$(OBJ_DYN_POSTFIX)$(OBJ_EXT)),-@$(RM) hbpp$(OBJ_DYN_POSTFIX)$(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.mk
|
|
endif
|
|
endif
|
|
|
|
install::
|
|
$(INSTALL_RULE_LIBRARIES)
|
|
|
|
clean::
|
|
$(if $(wildcard $(HB_VERHEADER)), -@$(RM) $(subst /,$(DIRSEP),$(HB_VERHEADER)),)
|
|
$(if $(wildcard $(BIN_DIR)/hbpp$(BIN_EXT)),-@$(RM) $(subst /,$(DIRSEP),$(BIN_DIR)/hbpp$(BIN_EXT)),)
|
|
$(if $(wildcard $(BIN_DIR)/hbpp.tds), -@$(RM) $(subst /,$(DIRSEP),$(BIN_DIR)/hbpp.tds),)
|
|
|
|
endif
|
|
endif
|