Commit graph

26 commits

Author SHA1 Message Date
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
50af65812d $(TOPDIR)/make: Beautify makefile indendation
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-26 08:00:30 +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
837f8f97bb swig.mk: Fix multiple file location issues
This commit fixes multiple issues with locating Perl and Python directories and
files. It was driven by the need to have it work on Yocto, and isn't tested
anywhere else. It also fixes __pycache__/%.pyc issues from the Python 2 -> 3
transition.

Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-24 12:34:43 +00:00
3ddd952187 swig.mk: Swith to Python 3
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-22 09:32:31 +00:00
49f269bdfe make: Modify only BUILD_*FLAGS in jw-build/make/*.mk
Assign only to BUILD_XXXFLAGS in jw-build/make/*.mk, and leave PROJECT_XXXFLAGS
and LOCAL_XXXFLAGS alone.

Signed-off-by: Jan Lindemann <jan@janware.com>
2019-04-10 06:43:40 +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
aa85417a17 Everywhere: Purge spaces in text files
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-06 12:38:20 +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
316435bb78 $(MODDIR)/make/defs.mk: Split off defs-cpp.mk with C++ definitions
C++ definitions are numerous, and they shouldn't pollute variable space and
performance outside of directories containing C++ files. This commit pushes
them into a defs-cpp.mk file.

Signed-off-by: Jan Lindemann <jan@janware.com>
2019-02-27 20:46:54 +00:00
46e653a391 swig.mk: Add basic support for SWIG_TARGET java
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-12-27 17:31:30 +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
f5c33174fb swig.mk: Try to fix CentOS 7 perl target
Detect PERL_CORE_DIR /usr/lib64/perl5/CORE, as in CentOS 7. Still
doesn't work, as compilation fails on the generated C++ code.

Signed-off-by: Jan Lindemann <jan@janware.com>
2018-10-13 10:45:36 +00:00
b7fe4793ee swig.mk: Add support for SWIG_LANG = perl
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-04-09 19:45:13 +00:00
59d3414550 swig.mk: Using PHP5 on ubuntu, since swig doesn't support the -php7 switch
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-01-04 15:08:42 +00:00
cd82a0d1fc swig.mk: Add -DJW_PHP_MAJOR to swig to allow conditional compilation
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-01-03 16:44:34 +00:00
e68d4eb83b make, scripts: Now excplicitly calling python2 executable instead of python
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-01-02 13:12:00 +00:00
ca3db118fe swig.mk: Detect PHP major version with php-config
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-12-29 14:42:28 +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
efd4867be9 swig.mk: Switch PHP support from PHP5 to PHP7
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-12-18 13:29:00 +00:00
ccfc979bd0 make: Make use of $(SYSTEM_LIBDIR) variable more concise
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-09-07 10:13:03 +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
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
48735e0c10 swig.mk: Add support for NON_C_BINDING preprocessor directive
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-01 14:03:57 +00:00
f510a995dc swig.mk: Add swig.mk
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-05-25 10:30:19 +00:00