diff options
| author | Tim Rogers <[email protected]> | 2013-06-25 13:19:58 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:57 -0700 |
| commit | 5d69aa95a9ea9ac326c34c4842b87e8123a77186 (patch) | |
| tree | bd10eeda9dd131eca900ab410c692bfaea1855dd /cuobjdump_to_ptxplus/Makefile | |
| parent | b84f4193f7e94c503cfd07cdcdb8b6951400f695 (diff) | |
Changing the make flow so all the generated files, both object and code generated go in a directory independent of the source directory
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 16503]
Diffstat (limited to 'cuobjdump_to_ptxplus/Makefile')
| -rw-r--r-- | cuobjdump_to_ptxplus/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cuobjdump_to_ptxplus/Makefile b/cuobjdump_to_ptxplus/Makefile index 14fcc68..40b8b48 100644 --- a/cuobjdump_to_ptxplus/Makefile +++ b/cuobjdump_to_ptxplus/Makefile @@ -7,7 +7,7 @@ CXX = g++ CXXFLAGS = ${CCFLAGS} LD = g++ LDFLAGS = ${CCFLAGS} -OUTPUT_DIR=../$(SIM_OBJ_FILES_DIR)/cuobjdump_to_ptxplus +OUTPUT_DIR=$(SIM_OBJ_FILES_DIR)/cuobjdump_to_ptxplus CXXFLAGS += -I $(OUTPUT_DIR) -I . -I ../src/cuda-sim/ @@ -64,11 +64,11 @@ $(OUTPUT_DIR)/%.o: %.c %.h SRCS = $(shell ls *.cc) -Makefile.makedepend: depend +$(OUTPUT_DIR)/Makefile.makedepend: depend depend: - touch Makefile.makedepend - makedepend -fMakefile.makedepend $(SRCS) 2> /dev/null + touch $(OUTPUT_DIR)/Makefile.makedepend + makedepend -f$(OUTPUT_DIR)/Makefile.makedepend $(SRCS) 2> /dev/null clean: rm -f lex.ptx_.c ptx.tab.c ptx.tab.h ptx.output @@ -76,7 +76,7 @@ clean: rm -f sass_lexer.cc sass_parser.cc sass_parser.hh sass_parser.output rm -f header_lexer.cc header_parser.cc header_parser.hh header_parser.output rm -rf $(OUTPUT_DIR) - rm -f Makefile.makedepend Makefile.makedepend.bak + rm -f $(OUTPUT_DIR)/Makefile.makedepend $(OUTPUT_DIR)/Makefile.makedepend.bak -include Makefile.makedepend +include $(OUTPUT_DIR)/Makefile.makedepend |
