2021-01-23 03:23:47 +00:00
|
|
|
# This file is part of Notepad++ project
|
2021-08-07 18:56:14 +00:00
|
|
|
# Copyright (C)2021 Ivan U7n <jprofic@yandex.ru>
|
2009-04-24 23:34:47 +00:00
|
|
|
#
|
2021-01-23 03:23:47 +00:00
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# at your option any later version.
|
2009-04-24 23:34:47 +00:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2021-01-23 03:23:47 +00:00
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2009-04-24 23:34:47 +00:00
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2021-01-23 03:23:47 +00:00
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
#
|
|
|
|
# definitions
|
|
|
|
#
|
|
|
|
|
|
|
|
GCC_DIRECTORY := ../gcc
|
|
|
|
GCC_EXCLUDE := $(GCC_DIRECTORY)/gcc-%
|
|
|
|
SRC_DIRECTORY := ../src
|
|
|
|
SRC_EXCLUDE := $(SRC_DIRECTORY)/tools/%
|
|
|
|
BIN_DIRECTORY := ../bin
|
|
|
|
INSTALLER_DIRECTORY := ../installer
|
|
|
|
|
|
|
|
TARGET_BINARY := notepad++.exe
|
|
|
|
SRC_DATA := contextMenu.xml langs.model.xml shortcuts.xml stylers.model.xml
|
|
|
|
BIN_DATA := change.log doLocalConf.xml readme.txt userDefineLangs/
|
|
|
|
INSTALLER_DATA := autoCompletion/ functionList/ localization/ themes/
|
|
|
|
|
|
|
|
SCINTILLA_DIRECTORY := ../../scintilla
|
2022-01-04 23:07:50 +00:00
|
|
|
SCINTILLA_TARGET := libscintilla.a
|
|
|
|
|
|
|
|
LEXILLA_DIRECTORY := ../../lexilla
|
|
|
|
LEXILLA_TARGET := liblexilla.a
|
2021-08-07 18:56:14 +00:00
|
|
|
|
|
|
|
CXX := $(CROSS_COMPILE)g++
|
2021-09-04 19:29:29 +00:00
|
|
|
CXXFLAGS := -include $(GCC_DIRECTORY)/gcc-fixes.h -std=c++17 -Wno-conversion-null
|
2021-08-07 18:56:14 +00:00
|
|
|
RC := $(CROSS_COMPILE)windres
|
|
|
|
RCFLAGS :=
|
2022-01-04 23:07:50 +00:00
|
|
|
CPP_PATH := $(SCINTILLA_DIRECTORY)/include $(LEXILLA_DIRECTORY)/include
|
2021-09-04 19:29:29 +00:00
|
|
|
CPP_DEFINE := UNICODE _UNICODE _WIN32_WINNT=0x0600 TIXML_USE_STL TIXMLA_USE_STL
|
|
|
|
LD := $(CXX)
|
2021-08-07 18:56:14 +00:00
|
|
|
LDFLAGS := -municode -mwindows
|
2021-09-04 19:29:29 +00:00
|
|
|
LD_PATH :=
|
|
|
|
LD_LINK := comctl32 crypt32 dbghelp ole32 sensapi shlwapi uuid uxtheme version wininet wintrust
|
2022-01-04 23:07:50 +00:00
|
|
|
LD_LINK += $(patsubst lib%.a,%,$(SCINTILLA_TARGET)) $(patsubst lib%.a,%,$(LEXILLA_TARGET)) imm32 msimg32 ole32 oleaut32
|
2021-08-07 18:56:14 +00:00
|
|
|
SUBMAKEFLAGS := -O --no-print-directory
|
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
# detect a request for a debug build
|
|
|
|
ifeq "$(filter-out 0,$(DEBUG))" ""
|
|
|
|
BUILD_TYPE := release
|
|
|
|
BUILD_SUFFIX :=
|
2021-12-28 07:57:51 +00:00
|
|
|
CXXFLAGS += -Os
|
2021-09-04 19:29:29 +00:00
|
|
|
CPP_DEFINE += NDEBUG
|
2021-08-07 18:56:14 +00:00
|
|
|
LDFLAGS += -s
|
|
|
|
else
|
2021-09-04 19:29:29 +00:00
|
|
|
BUILD_TYPE := debug
|
|
|
|
BUILD_SUFFIX := -debug
|
|
|
|
CXXFLAGS += -Og -g -Wall -Wpedantic -Wconversion-null
|
2022-05-20 13:00:57 +00:00
|
|
|
CPP_DEFINE += DEBUG
|
2021-09-04 19:29:29 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# preparations
|
|
|
|
#
|
|
|
|
|
2021-12-06 14:45:59 +00:00
|
|
|
# detect Windows directory
|
|
|
|
WIN_DIR := $(or $(windir),$(WINDIR))
|
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
# detect target CPU
|
|
|
|
TARGET_CPU := $(firstword $(subst -, ,$(shell $(CXX) -dumpmachine)))
|
|
|
|
ifeq "$(TARGET_CPU)" ""
|
|
|
|
$(error TARGET_CPU detection failed)
|
2021-08-07 18:56:14 +00:00
|
|
|
endif
|
2021-09-04 19:29:29 +00:00
|
|
|
ifneq "$(filter-out x86_64 i686,$(TARGET_CPU))" ""
|
|
|
|
$(error $(TARGET_CPU) build is unsupported)
|
|
|
|
endif
|
|
|
|
ifeq "$(TARGET_CPU)" "i686"
|
|
|
|
# for some reason i686 versions of MinGW-w64 GCC don't include a linking library for SensApi.dll
|
|
|
|
# thus it is generated on the fly, but first check if the DLL is available
|
2021-12-06 14:45:59 +00:00
|
|
|
ifeq "$(wildcard $(WIN_DIR)/system32/SensApi.dll)" ""
|
2021-09-04 19:29:29 +00:00
|
|
|
$(error $(TARGET_CPU) build requires "%windir%/system32/SensApi.dll" to be present)
|
|
|
|
endif
|
2021-12-28 07:57:51 +00:00
|
|
|
# detect explicit definition of TARGET_CPU via command line to force a 32-bit build for MinGW-w64 with support multilib
|
2021-09-04 19:29:29 +00:00
|
|
|
ifeq "$(origin TARGET_CPU)" "command line"
|
|
|
|
export CXX += -m32
|
|
|
|
export LD += -m32
|
|
|
|
export RC += -Fpe-i386
|
|
|
|
endif
|
2021-12-28 07:57:51 +00:00
|
|
|
# detect explicit definition of TARGET_CPU via command line to force a 64-bit build for MinGW-w64 with support multilib
|
|
|
|
else ifneq "$(and $(findstring x86_64,$(TARGET_CPU)),$(findstring command line,$(origin TARGET_CPU)))" ""
|
|
|
|
export CXX += -m64
|
|
|
|
export LD += -m64
|
|
|
|
export RC += -Fpe-x86-64
|
2021-09-04 19:29:29 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# define target and build directories and update dependent variables
|
|
|
|
TARGET_DIRECTORY := bin.$(TARGET_CPU)$(BUILD_SUFFIX)
|
|
|
|
BUILD_DIRECTORY := $(TARGET_DIRECTORY).build
|
|
|
|
|
|
|
|
TARGET_BINARY := $(TARGET_DIRECTORY)/$(TARGET_BINARY)
|
|
|
|
SRC_DATA := $(addprefix $(TARGET_DIRECTORY)/,$(SRC_DATA))
|
|
|
|
BIN_DATA := $(addprefix $(TARGET_DIRECTORY)/,$(BIN_DATA))
|
|
|
|
INSTALLER_DATA := $(addprefix $(TARGET_DIRECTORY)/,$(INSTALLER_DATA))
|
|
|
|
|
|
|
|
SCINTILLA_TARGET := $(BUILD_DIRECTORY)/$(SCINTILLA_TARGET)
|
2021-12-14 10:30:41 +00:00
|
|
|
SCINTILLA_TARGET_PATH := ../../PowerEditor/gcc/$(SCINTILLA_TARGET)
|
2022-03-29 16:23:44 +00:00
|
|
|
SCINTILLA_BUILD_DIRECTORY := $(BUILD_DIRECTORY)/_scintilla.build
|
|
|
|
SCINTILLA_BUILD_PATH := ../../PowerEditor/gcc/$(SCINTILLA_BUILD_DIRECTORY)
|
2021-09-04 19:29:29 +00:00
|
|
|
|
2022-01-04 23:07:50 +00:00
|
|
|
LEXILLA_TARGET := $(BUILD_DIRECTORY)/$(LEXILLA_TARGET)
|
|
|
|
LEXILLA_TARGET_PATH := ../../PowerEditor/gcc/$(LEXILLA_TARGET)
|
2022-03-29 16:23:44 +00:00
|
|
|
LEXILLA_BUILD_DIRECTORY := $(BUILD_DIRECTORY)/_lexilla.build
|
|
|
|
LEXILLA_BUILD_PATH := ../../PowerEditor/gcc/$(LEXILLA_BUILD_DIRECTORY)
|
2022-01-04 23:07:50 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
LD_PATH += $(BUILD_DIRECTORY)
|
|
|
|
|
|
|
|
# detect a build outside of PowerEditor/gcc and update dependent variables
|
2022-03-29 16:23:44 +00:00
|
|
|
SPACES_ERROR := "For outside build spaces in the project path are not supported! Please move the project files to the correct path."
|
|
|
|
$(foreach makefile,$(MAKEFILE_LIST),$(if $(wildcard $(makefile)),,$(error $(SPACES_ERROR))))
|
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
MAKEFILE_DIRECTORY := $(patsubst %/,%,$(dir $(subst \,/,$(firstword $(MAKEFILE_LIST)))))
|
|
|
|
ifneq "$(MAKEFILE_DIRECTORY)" "."
|
|
|
|
MAKEFILE_PARENT := $(patsubst %/,%,$(dir $(MAKEFILE_DIRECTORY)))
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
BIN_DIRECTORY := $(patsubst ../%,$(MAKEFILE_PARENT)/%,$(BIN_DIRECTORY))
|
|
|
|
GCC_DIRECTORY := $(patsubst ../%,$(MAKEFILE_PARENT)/%,$(GCC_DIRECTORY))
|
|
|
|
GCC_EXCLUDE := $(patsubst ../%,$(MAKEFILE_PARENT)/%,$(GCC_EXCLUDE))
|
|
|
|
SRC_DIRECTORY := $(patsubst ../%,$(MAKEFILE_PARENT)/%,$(SRC_DIRECTORY))
|
|
|
|
SRC_EXCLUDE := $(patsubst ../%,$(MAKEFILE_PARENT)/%,$(SRC_EXCLUDE))
|
|
|
|
INSTALLER_DIRECTORY := $(patsubst ../%,$(MAKEFILE_PARENT)/%,$(INSTALLER_DIRECTORY))
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
SCINTILLA_DIRECTORY := $(patsubst ../%,$(MAKEFILE_PARENT)/%,$(SCINTILLA_DIRECTORY))
|
2021-12-14 10:30:41 +00:00
|
|
|
SCINTILLA_TARGET_PATH := $(CURDIR)/$(SCINTILLA_TARGET)
|
2022-03-29 16:23:44 +00:00
|
|
|
SCINTILLA_BUILD_PATH := $(CURDIR)/$(SCINTILLA_BUILD_DIRECTORY)
|
2021-09-04 19:29:29 +00:00
|
|
|
|
2022-01-04 23:07:50 +00:00
|
|
|
LEXILLA_DIRECTORY := $(patsubst ../%,$(MAKEFILE_PARENT)/%,$(LEXILLA_DIRECTORY))
|
|
|
|
LEXILLA_TARGET_PATH := $(CURDIR)/$(LEXILLA_TARGET)
|
2022-03-29 16:23:44 +00:00
|
|
|
LEXILLA_BUILD_PATH := $(CURDIR)/$(LEXILLA_BUILD_DIRECTORY)
|
2022-01-04 23:07:50 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
CXXFLAGS := $(patsubst ../%,$(MAKEFILE_PARENT)/%,$(CXXFLAGS))
|
|
|
|
CPP_PATH := $(patsubst ../%,$(MAKEFILE_PARENT)/%,$(CPP_PATH))
|
|
|
|
endif
|
|
|
|
|
|
|
|
# detect a request for a verbose output
|
|
|
|
ifeq "$(filter-out 0,$(VERBOSE))" ""
|
2021-08-07 18:56:14 +00:00
|
|
|
AT := @
|
|
|
|
endif
|
2014-12-09 22:19:06 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
# detect the current operating system
|
2021-12-06 14:45:59 +00:00
|
|
|
ifeq "$(WIN_DIR)" ""
|
2021-08-07 18:56:14 +00:00
|
|
|
# not a Windows system
|
|
|
|
MKDIR := mkdir -p
|
2021-09-04 19:29:29 +00:00
|
|
|
CPDIR := cp -r
|
2021-08-07 18:56:14 +00:00
|
|
|
RMDIR := rm -rf
|
|
|
|
CP := cp
|
|
|
|
RM := rm -f
|
|
|
|
normalize-path = $1
|
|
|
|
else ifneq "$(wildcard $(dir $(SHELL))ls.exe)" ""
|
2021-09-04 19:29:29 +00:00
|
|
|
# a Windows system with a proper shell
|
2021-12-06 14:45:59 +00:00
|
|
|
NULL :=
|
|
|
|
SPACE := $(NULL) $(NULL)
|
2022-03-29 16:23:44 +00:00
|
|
|
SHELL_DIRECTORY := $(subst |,$(SPACE),$(dir $(subst $(SPACE),|,$(SHELL))))
|
2021-12-06 14:45:59 +00:00
|
|
|
MKDIR := $(SHELL_DIRECTORY)mkdir.exe -p
|
|
|
|
CPDIR := $(SHELL_DIRECTORY)cp.exe -r
|
|
|
|
RMDIR := $(SHELL_DIRECTORY)rm.exe -rf
|
|
|
|
CP := $(SHELL_DIRECTORY)cp.exe
|
|
|
|
RM := $(SHELL_DIRECTORY)rm.exe -f
|
2021-08-07 18:56:14 +00:00
|
|
|
normalize-path = $1
|
|
|
|
else
|
|
|
|
# a standard Windows system
|
|
|
|
MKDIR := mkdir
|
2021-09-04 19:29:29 +00:00
|
|
|
CPDIR := xcopy /q /e /i /y
|
2021-08-07 18:56:14 +00:00
|
|
|
RMDIR := rmdir /q /s
|
|
|
|
CP := copy /y
|
|
|
|
RM := del /q
|
|
|
|
normalize-path = $(subst /,\,$1)
|
|
|
|
endif
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
# discover files
|
|
|
|
list-subtree = $(foreach i,$(wildcard $1/*),$i $(call list-subtree,$i))
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
GCC_SUBTREE := $(patsubst $(GCC_DIRECTORY)/%,%,$(filter-out $(GCC_EXCLUDE),$(call list-subtree,$(GCC_DIRECTORY))))
|
|
|
|
SRC_SUBTREE := $(patsubst $(SRC_DIRECTORY)/%,%,$(filter-out $(SRC_EXCLUDE),$(call list-subtree,$(SRC_DIRECTORY))))
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
CPP_PATH += $(addprefix $(GCC_DIRECTORY)/,$(sort $(patsubst %/,%,$(dir $(filter %.h %.hpp,$(GCC_SUBTREE))))))
|
|
|
|
CPP_PATH += $(addprefix $(SRC_DIRECTORY)/,$(sort $(patsubst %/,%,$(dir $(filter %.h %.hpp,$(SRC_SUBTREE))))))
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
vpath %.cpp $(GCC_DIRECTORY) $(SRC_DIRECTORY)
|
|
|
|
CXX_TARGETS := $(patsubst %.cpp,$(BUILD_DIRECTORY)/%.o,$(sort $(filter %.cpp,$(GCC_SUBTREE) $(SRC_SUBTREE))))
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
vpath %.rc $(GCC_DIRECTORY) $(SRC_DIRECTORY)
|
|
|
|
RC_TARGETS := $(patsubst %.rc,$(BUILD_DIRECTORY)/%.res,$(sort $(filter %.rc,$(GCC_SUBTREE) $(SRC_SUBTREE))))
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
#
|
|
|
|
# actions
|
|
|
|
#
|
2014-12-09 22:19:06 +00:00
|
|
|
|
2022-03-29 16:23:44 +00:00
|
|
|
.PHONY: .force all binary data clean sciclean lexclean fullclean
|
2021-09-04 19:29:29 +00:00
|
|
|
.force:
|
|
|
|
|
|
|
|
SUBMAKEFLAGS += $(if $(NUMBER_OF_PROCESSORS),-j$(NUMBER_OF_PROCESSORS),)
|
2022-01-04 23:07:50 +00:00
|
|
|
|
|
|
|
all: $(SCINTILLA_TARGET) $(LEXILLA_TARGET)
|
2021-09-04 19:29:29 +00:00
|
|
|
$(AT)$(MAKE) -f $(firstword $(MAKEFILE_LIST)) $(SUBMAKEFLAGS) binary
|
2014-12-09 22:19:06 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
$(BUILD_DIRECTORY):
|
|
|
|
@echo * creating BUILD_DIRECTORY $@
|
|
|
|
$(AT)$(MKDIR) $(call normalize-path,$(sort $@ $(patsubst %/,%,$(dir $(CXX_TARGETS) $(RC_TARGETS)))))
|
2014-12-09 22:19:06 +00:00
|
|
|
|
2022-03-29 16:23:44 +00:00
|
|
|
$(SCINTILLA_BUILD_DIRECTORY):
|
|
|
|
@echo * creating SCINTILLA_BUILD_DIRECTORY $@
|
|
|
|
$(AT)$(MKDIR) $(call normalize-path,$(SCINTILLA_BUILD_DIRECTORY))
|
|
|
|
|
|
|
|
$(LEXILLA_BUILD_DIRECTORY):
|
|
|
|
@echo * creating LEXILLA_BUILD_DIRECTORY $@
|
|
|
|
$(AT)$(MKDIR) $(call normalize-path,$(LEXILLA_BUILD_DIRECTORY))
|
|
|
|
|
|
|
|
ifeq "$(MAKELEVEL)" "0"
|
|
|
|
$(SCINTILLA_TARGET): .force
|
|
|
|
$(LEXILLA_TARGET): .force
|
|
|
|
endif
|
2022-01-04 23:07:50 +00:00
|
|
|
|
2022-03-29 16:23:44 +00:00
|
|
|
$(SCINTILLA_TARGET): | $(BUILD_DIRECTORY) $(SCINTILLA_BUILD_DIRECTORY)
|
2022-04-06 16:37:15 +00:00
|
|
|
$(AT)$(MAKE) $(SUBMAKEFLAGS) -C $(SCINTILLA_DIRECTORY)/win32 -f makefile -f ../../boostregex/nppSpecifics_mingw.mak DIR_O=$(SCINTILLA_BUILD_PATH) LIBSCI=$(SCINTILLA_TARGET_PATH) $(SCINTILLA_TARGET_PATH)
|
2022-03-29 16:23:44 +00:00
|
|
|
|
|
|
|
$(LEXILLA_TARGET): | $(BUILD_DIRECTORY) $(LEXILLA_BUILD_DIRECTORY)
|
|
|
|
$(AT)$(MAKE) $(SUBMAKEFLAGS) -C $(LEXILLA_DIRECTORY)/src DIR_O=$(LEXILLA_BUILD_PATH) LIBLEXILLA=$(LEXILLA_TARGET_PATH) $(LEXILLA_TARGET_PATH)
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
binary: $(TARGET_BINARY) data
|
|
|
|
@echo *** $(TARGET_CPU) $(BUILD_TYPE) : $(CURDIR)/$(TARGET_BINARY) ***
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
$(CXX_TARGETS): $(BUILD_DIRECTORY)/%.o: %.cpp | $(BUILD_DIRECTORY)
|
|
|
|
@echo * compiling $<
|
|
|
|
$(AT)$(CXX) $(CXXFLAGS) $(addprefix -I,$(CPP_PATH)) $(addprefix -D,$(CPP_DEFINE)) -MMD -c -o $@ $<
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
$(RC_TARGETS): $(BUILD_DIRECTORY)/%.res: %.rc | $(BUILD_DIRECTORY)
|
|
|
|
@echo * compiling $<
|
|
|
|
$(AT)$(RC) $(RCFLAGS) $(addprefix -I,$(CPP_PATH)) $(addprefix -D,$(CPP_DEFINE)) -O coff -o $@ -i $<
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
ifeq "$(TARGET_CPU)" "i686"
|
|
|
|
$(TARGET_BINARY): $(BUILD_DIRECTORY)/libsensapi.a
|
|
|
|
$(BUILD_DIRECTORY)/libsensapi.a: | $(BUILD_DIRECTORY)
|
|
|
|
@echo * generating $@
|
2021-12-06 14:45:59 +00:00
|
|
|
$(AT)gendef $(call normalize-path,$(firstword $(wildcard $(WIN_DIR)/syswow64/SensApi.dll $(WIN_DIR)/system32/SensApi.dll)))
|
2021-09-04 19:29:29 +00:00
|
|
|
$(AT)dlltool -mi386 -f--32 -d SensApi.def -k -l $(call normalize-path,$@)
|
|
|
|
$(AT)$(RM) SensApi.def
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(TARGET_DIRECTORY):
|
|
|
|
@echo * creating TARGET_DIRECTORY $@
|
|
|
|
$(AT)$(MKDIR) $(call normalize-path,$@)
|
|
|
|
|
2022-01-04 23:07:50 +00:00
|
|
|
$(TARGET_BINARY): $(CXX_TARGETS) $(RC_TARGETS) $(SCINTILLA_TARGET) $(LEXILLA_TARGET) | $(TARGET_DIRECTORY)
|
2021-09-04 19:29:29 +00:00
|
|
|
@echo * linking $@
|
|
|
|
$(AT)$(LD) $(LDFLAGS) $(filter-out %.a,$^) $(addprefix -L,$(LD_PATH)) $(addprefix -l,$(LD_LINK)) -static -o $@
|
2014-12-09 22:19:06 +00:00
|
|
|
|
2021-09-04 19:29:29 +00:00
|
|
|
data: $(patsubst %/,%,$(SRC_DATA) $(BIN_DATA) $(INSTALLER_DATA))
|
|
|
|
|
|
|
|
$(patsubst %/,%,$(filter %/,$(SRC_DATA))): $(TARGET_DIRECTORY)/%: $(SRC_DIRECTORY)/% | $(TARGET_DIRECTORY)
|
|
|
|
@echo * copying $@
|
|
|
|
$(AT)$(CPDIR) $(call normalize-path,$< $@)
|
|
|
|
$(filter-out %/,$(SRC_DATA)): $(TARGET_DIRECTORY)/%: $(SRC_DIRECTORY)/% | $(TARGET_DIRECTORY)
|
|
|
|
@echo * copying $@
|
|
|
|
$(AT)$(CP) $(call normalize-path,$< $@)
|
|
|
|
|
|
|
|
$(patsubst %/,%,$(filter %/,$(BIN_DATA))): $(TARGET_DIRECTORY)/%: $(BIN_DIRECTORY)/% | $(TARGET_DIRECTORY)
|
|
|
|
@echo * copying $@
|
|
|
|
$(AT)$(CPDIR) $(call normalize-path,$< $@)
|
|
|
|
$(filter-out %/,$(BIN_DATA)): $(TARGET_DIRECTORY)/%: $(BIN_DIRECTORY)/% | $(TARGET_DIRECTORY)
|
|
|
|
@echo * copying $@
|
|
|
|
$(AT)$(CP) $(call normalize-path,$< $@)
|
|
|
|
|
|
|
|
$(TARGET_DIRECTORY)/autoCompletion: $(INSTALLER_DIRECTORY)/APIs
|
|
|
|
$(TARGET_DIRECTORY)/functionList: $(INSTALLER_DIRECTORY)/functionList
|
|
|
|
$(TARGET_DIRECTORY)/localization: $(INSTALLER_DIRECTORY)/nativeLang
|
|
|
|
$(TARGET_DIRECTORY)/themes: $(INSTALLER_DIRECTORY)/themes
|
|
|
|
$(patsubst %/,%,$(filter %/,$(INSTALLER_DATA))): | $(TARGET_DIRECTORY)
|
|
|
|
@echo * copying $@
|
|
|
|
$(AT)$(CPDIR) $(call normalize-path,$< $@)
|
|
|
|
$(filter-out %/,$(INSTALLER_DATA)): | $(TARGET_DIRECTORY)
|
|
|
|
@echo * copying $@
|
2021-08-07 18:56:14 +00:00
|
|
|
$(AT)$(CP) $(call normalize-path,$< $@)
|
2014-12-09 22:19:06 +00:00
|
|
|
|
2009-04-24 23:34:47 +00:00
|
|
|
clean:
|
2021-09-04 19:29:29 +00:00
|
|
|
-$(AT)$(RMDIR) $(call normalize-path,$(BUILD_DIRECTORY))
|
2022-03-29 16:23:44 +00:00
|
|
|
|
|
|
|
sciclean:
|
|
|
|
-$(AT)$(RMDIR) $(call normalize-path,$(SCINTILLA_BUILD_DIRECTORY))
|
|
|
|
|
|
|
|
lexclean:
|
|
|
|
-$(AT)$(RMDIR) $(call normalize-path,$(LEXILLA_BUILD_DIRECTORY))
|
2021-09-04 19:29:29 +00:00
|
|
|
|
|
|
|
fullclean: clean
|
|
|
|
-$(AT)$(RMDIR) $(call normalize-path,$(TARGET_DIRECTORY))
|
2014-12-09 22:19:06 +00:00
|
|
|
|
2021-08-07 18:56:14 +00:00
|
|
|
-include $(CXX_TARGETS:%.o=%.d)
|