[DEV] remove realpath and add remove sependence of the name of the build tool

This commit is contained in:
Edouard DUPIN 2012-11-10 16:17:06 +01:00
parent a9bfdcbc6b
commit 858172d2c0
7 changed files with 36 additions and 31 deletions

View File

@ -2,10 +2,10 @@
# Setup macros definitions
include $(EWOL_FOLDER)/Build/core/defs.mk
include $(BUILD_SYSTEM)/core/defs.mk
# include generic makefile :
include $(EWOL_FOLDER)/Build/core/check-project-variable.mk
include $(BUILD_SYSTEM)/core/check-project-variable.mk
TARGET_OS = Android
@ -24,7 +24,7 @@ TARGET_GLOBAL_C_INCLUDES+=-I$(PROJECT_NDK)/platforms/android-$(ANDROID_BOARD_ID)
TARGET_GLOBAL_LDLIBS_SHARED = --sysroot=$(PROJECT_NDK)/platforms/android-$(ANDROID_BOARD_ID)/arch-arm
#generic makefile
include $(EWOL_FOLDER)/Build/core/main.mk
include $(BUILD_SYSTEM)/core/main.mk
FINAL_FOLDER_JAVA_PROJECT=$(TARGET_OUT_STAGING)/src/$(PROJECT_COMPAGNY_TYPE)/$(PROJECT_COMPAGNY_NAME2)/$(PROJECT_NAME2)

View File

@ -1,10 +1,10 @@
# Setup macros definitions
include $(EWOL_FOLDER)/Build/core/defs.mk
include $(BUILD_SYSTEM)/core/defs.mk
# include generic makefile :
include $(EWOL_FOLDER)/Build/core/check-project-variable.mk
include $(BUILD_SYSTEM)/core/check-project-variable.mk
TARGET_OUT_FOLDER_BINARY := $(PROJECT_NAME2)/usr/bin
@ -15,7 +15,7 @@ TARGET_OUT_PREFIX_LIBRAIRY :=
# include generic makefile :
include $(EWOL_FOLDER)/Build/core/main.mk
include $(BUILD_SYSTEM)/core/main.mk
TARGET_OUT_FOLDER_DEBIAN=$(TARGET_OUT_STAGING)/$(PROJECT_NAME2)/DEBIAN

View File

@ -2,10 +2,10 @@
# Setup macros definitions
include $(EWOL_FOLDER)/Build/core/defs.mk
include $(BUILD_SYSTEM)/core/defs.mk
# include generic makefile :
include $(EWOL_FOLDER)/Build/core/check-project-variable.mk
include $(BUILD_SYSTEM)/core/check-project-variable.mk
@ -24,7 +24,7 @@ TARGET_OUT_PREFIX_LIBRAIRY :=
# include generic makefile :
include $(EWOL_FOLDER)/Build/core/main.mk
include $(BUILD_SYSTEM)/core/main.mk
FINAL_FOLDER= $(TARGET_OUT_FINAL)/$(PROJECT_NAME).app/Contents

View File

@ -1,10 +1,10 @@
# Setup macros definitions
include $(EWOL_FOLDER)/Build/core/defs.mk
include $(BUILD_SYSTEM)/core/defs.mk
# include generic makefile :
include $(EWOL_FOLDER)/Build/core/check-project-variable.mk
include $(BUILD_SYSTEM)/core/check-project-variable.mk
# defien the target OS of this system
@ -18,7 +18,7 @@ TARGET_OUT_FOLDER_DATA := data
TARGET_OUT_FOLDER_DOC := doc
TARGET_OUT_PREFIX_LIBRAIRY :=
include $(EWOL_FOLDER)/Build/core/main.mk
include $(BUILD_SYSTEM)/core/main.mk
final: all

View File

@ -1,4 +1,7 @@
# get the local dir in a good form :
BUILD_SYSTEM := $(shell readlink -m -n $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST)))))
###############################################################################
### Platform specificity : ###
###############################################################################
@ -27,6 +30,4 @@ else
$(error you must specify a corect platform : make PLATFORM=[$(SUPPORTED_PLATFORM)])
endif
EWOL_FOLDER?=$(realpath $(PROJECT_MODULE)/ewol)
include $(EWOL_FOLDER)/Build/Makefile.$(PLATFORM).mk
include $(BUILD_SYSTEM)/Makefile.$(PLATFORM).mk

View File

@ -8,7 +8,7 @@
###############################################################################
###############################################################################
## Some useful macros.
## Some generic define
###############################################################################
quote := "
@ -22,6 +22,24 @@ space4 := $(space)$(space)$(space)$(space)
true := T
false :=
###############################################################################
## The folowing 2 macros can NOT be put in defs.mk as it will be included
## only after.
###############################################################################
# Get full path.
# $1 : path to extend.
fullpath = $(shell readlink -m -n $1)
# Figure out where we are
# It returns the full path without trailing '/'
my-dir = $(call fullpath,$(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST)))))
###############################################################################
## Some useful macros.
###############################################################################
# Return negation of argument.
# $1 : input boolean argument.
not = $(if $1,$(false),$(true))

View File

@ -33,27 +33,13 @@ ifeq ("$(V)","0")
Q := @
endif
###############################################################################
## The folowing 2 macros can NOT be put in defs.mk as it will be included
## only after.
###############################################################################
# Get full path.
# $1 : path to extend.
fullpath = $(shell readlink -m -n $1)
# Figure out where we are
# It returns the full path without trailing '/'
my-dir = $(call fullpath,$(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST)))))
###############################################################################
## Build system setup.
###############################################################################
# Directories (full path)
TOP_DIR := $(shell pwd)
BUILD_SYSTEM := $(call my-dir)
BUILD_SYSTEM := $(BUILD_SYSTEM)/core
ifeq ("$(DEBUG)","1")
BUILD_DIRECTORY_MODE := debug