Commit graph

19 commits

Author SHA1 Message Date
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
bf16c6714b make, scripts: Re-add files necessary for building ytools

Re-add everthing needed for building and packaging ytools. This is a big commit, 2002 lines of code. It mostly consists of C/C++ machinery, plus some documentation-related stuff.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-11-14 15:59:49 +01:00
bc883deed4 Everywhere: Remove everything non-essential for "make clean all"

This commit removes everything not strictly necessary for running "make clean all" inside jw-build.

packaging jw-devtest. This cuts the repo down from 24077 to 4725 lines of code.

The idea is to

1) Further remove bloat from the remaining bits

2) Re-add what's necessary to build and package other essential repos.

The decision should be based on whether or not jw-build can also be useful in a non-janware context.

Signed-off-by: Jan Lindemann <jan@janware.com>
2025-11-14 15:02:56 +01:00
d6e1eaf547 depend.mk: Make .o.dep.mk also depend on $(SRC_H)

This should prevent some errors during compilation.

Signed-off-by: Jan Lindemann <jan@janware.com>
2020-12-01 16:24:43 +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
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
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
0eaef0c326 conf/jcs, make, tmpl/doxygen: Align equal signs in makefiles to column 30
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-03 18:12:28 +00:00
915e150f04 depend.mk: Add target show-vars
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-11-24 15:27:56 +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
2594143b1f make: Improvements to a couple of makefiles

- Depend.mk, ldlibpath.mk: add multiple inclusion guards - Flex-bison.mk some dependency fiddling - Py-defs.mk: remove *.pyc on clean

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-10-30 12:02:43 +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
405761957e depend.mk: Make DEPEND_MK a += assignment
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-05-10 17:58:46 +00:00
Jan Lindemann
5358a6ece7 depend.mk: Add convenience target dep

- Add convenience target dep - Code beautification

2009-06-06 14:29:32 +00:00
Jan Lindemann
6a6692bab5 depend.mk: Include $(DEPEND_MK) only for targets all and empty 2007-09-10 14:49:19 +00:00
Jan Lindemann
d21d6cad8a depend.mk: Make $(DEPEND_MK) depend on $(PREREQ_DONE) 2006-03-07 20:21:03 +00:00
Jan Lindemann
5447b4cdb4 depend.mk, rules.mk: Fix dependency checking

Fix dependency checking, create seperate depfiles for every object file.

2006-03-04 13:41:35 +00:00
Jan Lindemann
a0e2104011 depend.mk: Add -D__MAKEDEPEND__ to DEPEND_CFLAGS

- Add -D__MAKEDEPEND__ to DEPEND_CFLAGS - Deal less verbose with (initially) missing depend.mk

2006-02-11 16:11:55 +00:00
Jan Lindemann
f462e16491 depend.mk: Add file 2006-01-11 19:53:01 +00:00