8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:03:03 +01:00

Fixed CORE-5654: Mixed intermediate build files for plugins examples

This commit is contained in:
AlexPeshkoff 2017-11-03 14:43:17 +03:00
parent 7b0c03512a
commit f418336819
5 changed files with 14 additions and 17 deletions

View File

@ -270,7 +270,7 @@ cross2:
$(MAKE) utilities
$(MAKE) $(GPRE)
$(MAKE) plugins
$(MAKE) -f Makefile.plugins_examples -C $(GEN_ROOT)/examples/
$(MAKE) -f Makefile.plugins_examples
$(MAKE) cross_rest
#___________________________________________________________________________
@ -590,7 +590,7 @@ $(QLI): $(QLI_Objects) $(COMMON_LIB)
examples: include_generic
$(MAKE) -f Makefile.examples -C $(GEN_ROOT)/examples/
$(MAKE) -f Makefile.plugins_examples -C $(GEN_ROOT)/examples/
$(MAKE) -f Makefile.plugins_examples
message_file: $(FIREBIRD_MSG)

View File

@ -28,7 +28,7 @@
# Adriano dos Santos Fernandes
#
ROOT=$(shell cd ../..; pwd)
ROOT=$(shell cd ..; pwd)
ifeq ($(IsDeveloper), Y)
DefaultTarget := Debug
@ -50,19 +50,12 @@ include $(ROOT)/gen/make.shared.variables
@SET_MAKE@
# Override make.defaults
LINK_PLUGIN_SYMBOLS = $(call LIB_LINK_MAPFILE,../$(PLUGIN_VERS))
.PHONY: all udrcpp_example dc_example kh_example crypt_app
all: udrcpp_example dc_example kh_example crypt_app
UDR_Objects = $(call makeObjects,../examples/udr,Functions.cpp) \
$(call makeObjects,../examples/udr,Procedures.cpp) \
$(call makeObjects,../examples/udr,Triggers.cpp)
UDR_Objects = $(call dirObjects,../examples/udr)
UDR_Plugin = $(PLUGINS)/udr/$(LIB_PREFIX)udrcpp_example.$(SHRLIB_EXT)
AllObjects = $(UDR_Objects)

View File

@ -110,6 +110,10 @@ $(OBJ)/%.o: $(SRC_ROOT)/%.cpp
$(CXX) $(WCXXFLAGS) -c $(firstword $<) -o $@
@sed $(INLINE_EDIT_SED) -e "1,2s/:/: \$$(wildcard/" -e "\$$s/\(.*\)/\\1)/" $(patsubst %.o,%.d,$@)
$(OBJ)/%.o: $(ROOT)/%.cpp
$(CC) $(WCFLAGS) -c $(firstword $<) -o $@
@sed $(INLINE_EDIT_SED) -e "1,2s/:/: \$$(wildcard/" -e "\$$s/\(.*\)/\\1)/" $(patsubst %.o,%.d,$@)
.SUFFIXES: .epp .e
# Rules for making resource files

View File

@ -1,6 +1,6 @@
# Helper functions
doObjects= $(patsubst %.y,%.o,$(patsubst %.epp,%.o,$(patsubst %.c,%.o,$(1:.cpp=.o))))
makeObjects= $(addprefix $(OBJ)/$(1)/,$(call doObjects,$2))
makeObjects= $(addprefix $(OBJ)/$(patsubst ../%,%,$(1))/,$(call doObjects,$2))
dirFiles= $(sort $(notdir $(wildcard ../src/$(1)/*.cpp)) $(notdir $(wildcard ../src/$(1)/*.c)) \
$(notdir $(wildcard ../src/$(1)/*.epp)) $(notdir $(wildcard ../src/$(1)/*.y)))
dirInPath= $(call makeObjects,$(1),$(call dirFiles,$(1)))

View File

@ -1232,6 +1232,10 @@ dnl ### TEMP ### directories for generated .cpp, .o and .d by module name
mkdir -p temp/\$fb_tgt/\$src_dir
done
for src_dir in `ls -R -1 examples | grep : | tr -d : | tr "\n" " "`; do
mkdir -p temp/\$fb_tgt/\$src_dir
done
src/misc/writeBuildNum.sh createMakeVersion gen/Make.Version
dnl # sql files for UDF declarations
@ -1240,10 +1244,6 @@ dnl # sql files for UDF declarations
done
done
for src_dir in `ls -R -1 examples | grep : | tr -d : | tr "\n" " "`; do
mkdir -p temp/\$src_dir
done
dnl # rebuild version header if needed
./src/misc/writeBuildNum.sh rebuildHeader
@ -1393,7 +1393,7 @@ gen/make.shared.variables:${MAKE_SRC_DIR}/make.shared.variables
gen/make.shared.targets:${MAKE_SRC_DIR}/make.shared.targets
gen/Makefile:${MAKE_SRC_DIR}/Makefile.in
gen/examples/Makefile.examples:${MAKE_SRC_DIR}/Makefile.in.examples
gen/examples/Makefile.plugins_examples:${MAKE_SRC_DIR}/Makefile.in.plugins_examples
gen/Makefile.plugins_examples:${MAKE_SRC_DIR}/Makefile.in.plugins_examples
gen/Makefile.install:builds/install/arch-specific/${INSTALL_PREFIX}/Makefile.in
Makefile:Makefile.in
)