ed17aaa6c9
make: Align equal signs in *.mk to column 30
...
Chore: Format equal signs uniformly. They should all be at column 30 but aren't. Fix that.
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-03-16 14:57:50 +01:00
f869b5aaca
defs.mk: Define Q and use it in *.mk
...
Define Q ?= @, and replace @<command> in recipes by $(Q)<command>. Meant to be overridden from the environment for debugging as in
Q= make
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-01-26 17:58:23 +01:00
f90f5aeebe
Everywhere: Replace "JW_BUILD" by "JW_PKG"
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2025-11-28 13:35:56 +01:00
336d1a5133
make: Add definitions and rules for *.tmpfiles
...
Add support for *.tmpfiles. xxx.tmpfiles gets installed by conf.mk as /usr/lib/tmpfiles.d/xxx.conf.
Signed-off-by: Jan Lindemann <jan@janware.com>
2025-09-14 13:29:04 +00:00
c575537456
defs.mk / rules.mk: Add support for PACKAGE_INSTALL_DIR
...
PACKAGE_INSTALL_DIR, true by default, can be used to turn off target dir creation from a directory to avoid duplication from other packages
Signed-off-by: Jan Lindemann <jan@janware.com>
2024-12-06 14:35:59 +00:00
86ec95f6dc
defs.mk / rules.mk: Add .target file support to LOCAL_SYSTEMD
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2024-12-03 12:28:15 +00:00
a1bf4d9562
make: Remove variables referencing other janware-projects
...
jw-build is meant as a generic set of tools for building other projects, so references to projects being built by jw-build introduce a circular dependency. Remove those references from defs.mk and rules.mk.
Variables removed by this commit:
BTOOLS_DIR
FEEDFSD_DIR
FEEDFS_DIR
FEEDFS_GUI_DIR
FEEDFS_OBJECTS_DIR
FEEDFS_UTILS_DIR
FEEDFS_WT_DIR
JUX_SHARED_DIR
SITE_DIR
VALDI_DIR
XCHANGE_DIR
Signed-off-by: Jan Lindemann <jan@janware.com>
2024-07-16 10:41:20 +00:00
6bdb16878a
make: Replace "pereq" in targets by "deps"
...
"prereq" is simply impossible to use in explanations with a straight face.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-12-07 19:21:08 +00:00
bdd66dbc26
Everywhere: Rename MOD_SCRIPT_DIR -> JWB_SCRIPT_DIR
...
Follow name change of MODDIR -> JWBDIR.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-29 21:45:24 +00:00
b2d6e6f554
Everywhere: Rename MODDIR -> JWBDIR
...
Rename the omnipresent MODDIR variable to JWBDIR, since that's more to the point.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-29 21:34:18 +00:00
3365aa3db6
make: Replace BUILD_XXX make flag variables by FINAL_XXX
...
The following BUILD_XXX variables are renamed to their respective FINAL_XXX counterparts, as that name is more expressive:
BUILD_CFLAGS, BUILD_CPPFLAGS, BUILD_CXXFLAGS, BUILD_EXTRA_DEBUG_FLAGS, BUILD_INCLUDE, BUILD_LDFLAGS, BUILD_LIBFLAGS, BUILD_LPPFLAGS
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-24 12:58:53 +00:00
cbd944d254
rules.mk: Use $(CXX) instead of $(LD) for linking
...
CXX is used for linking instead of LD now, since LD might point to the real linker, which doesn't understand -Wl,--blah options, of course.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-15 10:06:50 +00:00
b1187d9d8a
rules.mk: Use $(CXX) instead of $(LD) for linking
...
CXX is used for linking instead of LD now, since LD might point to the real linker, which doesn't understand -Wl,--blah options, of course.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-15 10:03:22 +00:00
17a080138c
make: Prefix BUILD_ to a couple of makefile variables
...
Rename variables to avoid collision:
OBJ -> BUILD_OBJ INCLUDE -> BUILD_INCLUDE LIBFLAGS -> BUILD_LIBFLAGS LPPFLAGS -> BUILD_LPPFLAGS
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-04-08 18:26:45 +00:00
5210ba2acf
make: Improve dependency tracking for exe targets
...
- Add wildcarded linker scripts to dependencies - Run flash-push only on current hex file
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-29 16:44:42 +00:00
ed76759a42
defs-cpp.mk, mcu-defs.mk, rules.mk: Code beautification and re-ordering
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-22 21:43:16 +00:00
58ab619f0b
make: Rename CFLAGS, CXXFLAGS and CPPFLAGS variables
...
Rename CFLAGS and friends to follow the conventions of the implicit rules defined by GNU Make:
- $(CPPFLAGS) is passed to both C++ and C compiler - $(CXXFLAGS) is passed to C++ compiler only - $(CFLAGS) is passed to C compiler only - C++ compiler is in $(CXX)
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-19 07:07:00 +00:00
ea7cb92324
defs-cpp.mk, rules.mk: New variables REAL_(CPP|C|LD)FLAGS
...
These variables denote the flags used in compiler and linker rules. They are defined as REAL_(CPP|C|LD)FLAGS ?= BUILD_(CPP|C|LD)FLAGS and provide a means to override the flags assembled cumulatively.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-13 08:59:20 +00:00
aa85417a17
Everywhere: Purge spaces in text files
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-06 12:38:20 +00:00
691bf17057
rules.mk: Add target echo-compilers (still incomplete)
...
Add target echo-compilers, currently only supports GCC
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-03 14:47:41 +00:00
f80c64c548
rules.mk: Add target echo-target
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-03 09:07:04 +00:00
621c39f076
rules.mk: Pass -D to /usr/bin/install $(BUILD_XXX)/%
...
This is an experimental commit, mostly facilitating creation of more intricate include file structures below $(TOPDIR)/include. Probably doesn't hurt but is only part of the story, since proper clean target support isn't provided per se.
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-12-27 16:59:29 +00:00
e827efadd5
make, scripts: Replace list-vcs-files.sh by scm.sh ls-files
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-12-16 10:30:49 +00:00
9b532fd601
make, scripts: Rename list-cvs-files.sh to list-vcs-files.sh
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-12-13 18:15:12 +00:00
d684f198b2
make: Add dev-utils.mk for convenience targets
...
dev-utils.mk is meant to provide targets like install-to-system, which will be invoked during development
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-11-27 15:10:18 +00:00
adb18caa13
make, scripts: git submodule update --init --recursive
...
Consistently run git submodule update with --init --recursive.
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-11-18 18:31:30 +00:00
1b7645f67e
rules.mk: Add sudo systemctl restart \$(RESTART_SERVICES) after install-to-system
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-08-27 17:24:23 +00:00
7ffe0c4b81
rules.mk, swig.mk: Add dependencies for Debian Stretch / Unstable
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-12-28 20:07:25 +00:00
e37efb1a5e
depend.mk, rules.mk: Move dependency rules from rules.mk to depend.mk
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-11-23 08:41:06 +00:00
7f2983b3a5
rules.mk: Add --relative --no-prefix to diff target
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-09-07 10:04:27 +00:00
f5c43f706a
make: Replace some executables by absolute paths to improve performance
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-09-02 19:26:52 +00:00
d4581f488a
defs.mk, rules.mk: Add MAKEFLAGS += -r
...
This disables implicit rules and should speed up the build a tad.
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-09-02 14:44:18 +00:00
92040c66e7
make, scripts: Preserve modification time on installation
...
Implemented -p switch on pkg.sh log-install and used it on standard installation rules.
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-08-31 19:40:39 +00:00
37c11af458
rules.mk: Add lots of targets to .PHONY
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-08-20 08:51:57 +00:00
db1e6097fa
ldlibpath.mk, py-defs.mk, rules.mk: Add ldlibpath.mk to py-defs.mk
...
Since python might need bound C libraries, too, this looks like a good idea.
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-08-01 21:53:36 +00:00
fa08895775
rules.mk: Add target install-to-system
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-03 11:51:57 +00:00
dc56f89e1f
rules.mk: Fix depclean target
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-05-21 11:33:11 +00:00
10df082e7f
rules.mk: Add target push
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-04-29 21:45:28 +00:00
b8626d161c
rules.mk: Fix syntax error in diff target
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-04-14 11:36:32 +00:00
027d82c016
rules.mk: Rename make_version_script.sh to make-version-script.sh
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-04-07 15:44:37 +00:00
fb39ae6376
rules.mk: Add precaution against failure of make_version_script.sh
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-04-07 15:00:59 +00:00
55fa0eaec5
$(TOPDIR), make, scripts: Search-and-replace ytools -> jw-build
...
This project was copied from ytools, with anything not related to providing build-functionality left out. This commit replaces the occurences of ytools with jw-build, and removes some but most certainly not all legacy ytools references.
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-04-07 12:15:48 +00:00
cb1e735f9c
make: Add projects.mk and prefixed win32 objects with win32-
...
- Add new makefile projects.mk, which is the place to define the minimally required set of variables to get a project's makefile oriented about the build machinery itself, mostly its locations in the file system. This also includes querying other projects. It's been pushed into a seperate makefile includeable early in the Makefile hierarchy, so that other special build variables (i.e. TARGET) can be specialized from within the project later to define build characteristics. - Prefixed object files with $(FLAVOUR_PREFIX), to allow for building two targets from the same directory
Signed-off-by: Jan Lindemann <jan@janware.com>
2016-12-25 13:45:12 +00:00
f37e996098
rules.mk: Add target collect
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2016-10-05 19:29:05 +00:00
bd884bf260
rules.mk: Add target lddtree
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2016-09-17 08:38:14 +00:00
840edfea64
rules.mk: Add target find
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2016-05-03 12:25:11 +00:00
8a54182154
rules.mk: Add target echo-path
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2016-03-27 10:58:38 +00:00
47ed821800
rules.mk: Fix compilation with clang
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2016-03-03 16:03:56 +00:00
59d3f1e721
rules.mk: Add PREREQ to echo-prereq target
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2016-02-23 19:06:25 +00:00
6d80dde8b5
rules.mk: Fix C++ compilation for .cc suffix
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2015-12-14 14:16:11 +00:00