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
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
5f396a1f95
defs.mk:: Define variables empty, space and comma
...
Move definitions of empty, space and comma from targets-tools.mk into defs.mk.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-21 09:32:54 +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
68f25261ba
make: Clean-indented makefiles
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-17 16:24:26 +00:00
526d559ca2
targets-tools.mk: Ongoing additions to clang-tidy target
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-17 15:17:58 +00:00
2ea96f88a8
targets-tools.mk: Ongoing additions to clang-tidy-xxx targets
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-17 15:11:14 +00:00
d8e76b4400
targets-tools.mk: Add some clang-tidy-xxx targets
...
Still to be refined
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-16 10:43:23 +00:00
f9d398d219
make: Fix MinGW build machinery machinery
...
This commit makes it possible to successfully run "make all" against ytools' again, with TARGET_TUPLE set to i686-ms-w64-mingw. Lots of minor and major tweaks here and there.
The biggest diff is a move of the architecture-related definitions into platform.mk. The are needed pretty early on, so that seems reasonable.
Making this work again is part of the larger effort to support cross buildchains in a more concise way, i.e. without so many if ($(TARGET),mingw)) all over the place. TARGET's relevance should dwindle, until it's finally taken over by the TARGET_XXX variables extracted from TARGET_TUPLE or TARGET_TRIPLET.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-02 17:21:48 +00:00
f1d9bba070
targets-tools.mk: Fix HDRDIR_SCOPE_SUFFIX for nested include dir structure
...
The attempt to have local include directory with HDRDIR_SCOPE_SUFFIX pointing to the working directory failed the last time around. This commit tries to fix that.
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-01-30 16:23:29 +00:00
4d8ff72147
make: Add multiple inclusion preventers around makefile rules
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-12-27 17:02:19 +00:00
ba163044f2
targets-tools.mk: Fix broken clean target for undefined HDRDIR_SCOPE_SUFFIX
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-04-05 13:30:54 +00:00
92c6bf739f
targets-tools.mk: Create $(HDRDIR_SCOPE_SUFFIX) in tools directories
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2014-07-26 10:00:38 +00:00
70fce184a6
targets-tools.mk: Fix broken test for HDRDIR_SCOPE_SUFFIX
...
Signed-off-by: Jan Lindemann <jan@janware.com>
2013-08-02 12:01:10 +00:00
0317219761
targets-tools.mk: Disable explicit scope prefix creation
...
Don't explicitly link to header dir scope prefix anylonger, rely on standard procedure to mkdir in rules.mk instead.
Signed-off-by: Jan Lindemann <jan@janware.com>
2013-06-11 13:49:52 +00:00
Jan Lindemann
50d9375560
targets-tools.mk: Search for headers in build directory first
...
Use target all.link only aftr headers have been copied, to have build directory searched for header files first.
Signed-off-by: Jan Lindemann <jan@jannet.de>
2013-05-30 12:50:40 +00:00
Jan Lindemann
78bd6215b4
$(TOPDIR), make, scripts: Merged changes from V_1_2_3_33_YAPPLICATION_INIFILE_CTOR
...
Signed-off-by: Jan Lindemann <jan@jannet.de>
2012-09-02 16:06:47 +00:00
Jan Lindemann
16090f9371
targets-tools.mk, tools.mk: Preparted for SRC_ALL_CPP empty
2012-02-28 12:44:27 +00:00
Jan Lindemann
fb63b57edd
targets-tools.mk: Add targets link and clean-link
2009-06-06 15:29:36 +00:00
Jan Lindemann
42851f44b8
make: Header generation targets-tools.mk -> include.mk
...
Move project header generation mechanics from targets-tools.mk into include.mk.
2009-06-06 15:15:58 +00:00
Jan Lindemann
8687f170c3
targets-tools.mk: Support PROJ_H
...
Support the PROJ_H variable, which is undefined by default.
PROJ_H is +=-added to SRC_H, thus solving failure to produce .dep.mk and copying the stuff to the include directory.
I suppose this would be most cleanly handled in include.mk.
2009-06-06 14:46:29 +00:00
Jan Lindemann
b87df0be4c
targets-tools.mk: Add support for headers in $(PROJECT)/ subdirectory to tools directory
2009-06-06 14:30:18 +00:00
Jan Lindemann
95bb24541f
targets-tools.mk: Add target project-header
2009-06-06 14:10:08 +00:00
Jan Lindemann
77c146286e
make: Add profclean to clean target
2007-12-01 22:43:17 +00:00
Jan Lindemann
ea67ea66ce
targets-tools.mk: Remove PREREQ_DONE from prerequisites of all.done
2007-08-21 16:20:27 +00:00
Jan Lindemann
4c8f088a39
targets-tools.mk: Add $(LIB_A) $(LIB_SO)
2005-12-02 16:10:37 +00:00
Jan Lindemann
ebeafb4383
targets-tools.mk: Add some dependencies
2005-12-01 08:55:17 +00:00
Jan Lindemann
667b14e70e
targets-tools.mk, tools.mk: Split up tools.mk into tools.mk and targets-tools.mk
2005-07-31 12:10:46 +00:00