OpenClovis / SAFplus-Availability-Scalability-Platform

Middleware that provides libraries, GUI, and code generator to design multi-node (clustered) applications that are highly available, redundant, and scalable. Provides sub-second node and application fault detection and failover, and useful application libraries including distributed hash tables (checkpoint), event, logging, and communications. Implements SA-Forum APIs where applicable. Used anywhere reliability is a must -- like telecom, wireless, defense and enterprise computing. Download stable release with installer from: ftp.openclovis.com
www.openclovis.com
GNU General Public License v2.0
19 stars 13 forks source link

build generated code: clasp.env make-cross.mk Makefile redundancy #64

Open AndrewStoneOpenClovis opened 11 years ago

AndrewStoneOpenClovis commented 11 years ago

These files are generated and set various variables for the make system: clasp.env make-cross.mk Makefile

But they do not consistently set the same vars. This redundancy causes bugs...

moving forward: clasp.env is deprecated. It will set only a single variable that points to the "build/local" directory. make-cross.mk should be renamed defines.mk and contain all the variable definitions.

Each Makefile now includes "prefix.mk" which will include this defines.mk so there is no need to set every variable in the environment

These variables are currently only in clasp.env (so multiple languages don't get build unless you add them by hand to make-cross.mk) export SAFPLUS_BUILD_PYTHON=1 export SAFPLUS_BUILD_CPP=1 export SAFPLUS_BUILD_JAVA=0

minhgiang1983 commented 11 years ago

Makefile.in :

make-cross.mk.in : -add all export var from Makefile.in and remove deprecated -remove follow code

.PHONY: crosshelp crosshelp: @echo ' CROSS_BUILD= ' @echo ' - Triggers a host-independent build using the specified' @echo ' toolchain. The following toolchains are available' @echo ' at your host:' @(cd $(buildtools_dir); ls | awk '{print " ",$$1}') @echo ' KERNEL= ' @echo ' - Name of an alternative kernel under the given' @echo ' toolchain. See directories under the' @echo ' /opt/clovis/buildtools//src directory' @echo ' for alternative kernel choices. The default is' @echo ' the "linux" symbolic link.'

clasp.env : remove all export var

test successfull