forked from OSchip/llvm-project
Update per new Makefile requirements for projects
llvm-svn: 19594
This commit is contained in:
parent
0e48bf8a19
commit
22978217af
|
@ -1,28 +1,21 @@
|
||||||
#
|
# Set the name of the project here
|
||||||
|
PROJECT_NAME := Stacker
|
||||||
|
|
||||||
# Set this variable to the top of the LLVM source tree.
|
# Set this variable to the top of the LLVM source tree.
|
||||||
#
|
|
||||||
LLVM_SRC_ROOT = @LLVM_SRC@
|
LLVM_SRC_ROOT = @LLVM_SRC@
|
||||||
|
|
||||||
#
|
|
||||||
# Set this variable to the top level directory where LLVM was built
|
# Set this variable to the top level directory where LLVM was built
|
||||||
# (this is *not* the same as OBJ_ROOT as defined in LLVM's Makefile.config).
|
# (this is *not* the same as OBJ_ROOT as defined in LLVM's Makefile.config).
|
||||||
#
|
|
||||||
LLVM_OBJ_ROOT = @LLVM_OBJ@
|
LLVM_OBJ_ROOT = @LLVM_OBJ@
|
||||||
|
|
||||||
#
|
# Set the directory root of this project's source files
|
||||||
|
PROJ_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
|
||||||
|
|
||||||
|
# Set the root directory of this project's object files
|
||||||
|
PROJ_OBJ_ROOT := $(subst //,/,@abs_top_objdir@)
|
||||||
|
|
||||||
|
# Set the root directory of this project's install prefix
|
||||||
|
PROJ_INSTALL_ROOT := @prefix@
|
||||||
|
|
||||||
# Include LLVM's Master Makefile.
|
# Include LLVM's Master Makefile.
|
||||||
#
|
include $(LLVM_OBJ_ROOT)/Makefile.common
|
||||||
include $(LLVM_OBJ_ROOT)/Makefile.config
|
|
||||||
|
|
||||||
#
|
|
||||||
# Set the source root and source directory pathnames
|
|
||||||
#
|
|
||||||
BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
|
|
||||||
|
|
||||||
BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Include LLVM's Master Makefile.
|
|
||||||
#
|
|
||||||
include $(LLVM_SRC_ROOT)/Makefile.rules
|
|
||||||
|
|
||||||
|
|
|
@ -1,28 +1,22 @@
|
||||||
#
|
# Set the name of the project here
|
||||||
|
PROJECT_NAME := sample
|
||||||
|
PROJ_VERSION := 0.9
|
||||||
|
|
||||||
# Set this variable to the top of the LLVM source tree.
|
# Set this variable to the top of the LLVM source tree.
|
||||||
#
|
|
||||||
LLVM_SRC_ROOT = @LLVM_SRC@
|
LLVM_SRC_ROOT = @LLVM_SRC@
|
||||||
|
|
||||||
#
|
|
||||||
# Set this variable to the top level directory where LLVM was built
|
# Set this variable to the top level directory where LLVM was built
|
||||||
# (this is *not* the same as OBJ_ROOT as defined in LLVM's Makefile.config).
|
# (this is *not* the same as OBJ_ROOT as defined in LLVM's Makefile.config).
|
||||||
#
|
|
||||||
LLVM_OBJ_ROOT = @LLVM_OBJ@
|
LLVM_OBJ_ROOT = @LLVM_OBJ@
|
||||||
|
|
||||||
#
|
# Set the directory root of this project's source files
|
||||||
|
PROJ_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
|
||||||
|
|
||||||
|
# Set the root directory of this project's object files
|
||||||
|
PROJ_OBJ_ROOT := $(subst //,/,@abs_top_objdir@)
|
||||||
|
|
||||||
|
# Set the root directory of this project's install prefix
|
||||||
|
PROJ_INSTALL_ROOT := @prefix@
|
||||||
|
|
||||||
# Include LLVM's Master Makefile.
|
# Include LLVM's Master Makefile.
|
||||||
#
|
include $(LLVM_OBJ_ROOT)/Makefile.common
|
||||||
include $(LLVM_OBJ_ROOT)/Makefile.config
|
|
||||||
|
|
||||||
#
|
|
||||||
# Set the source root and source directory pathnames
|
|
||||||
#
|
|
||||||
BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
|
|
||||||
|
|
||||||
BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Include LLVM's Master Makefile.
|
|
||||||
#
|
|
||||||
include $(LLVM_SRC_ROOT)/Makefile.rules
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue