summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2013-06-25 13:19:58 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:57 -0700
commit5d69aa95a9ea9ac326c34c4842b87e8123a77186 (patch)
treebd10eeda9dd131eca900ab410c692bfaea1855dd /libcuda
parentb84f4193f7e94c503cfd07cdcdb8b6951400f695 (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 'libcuda')
-rw-r--r--libcuda/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/libcuda/Makefile b/libcuda/Makefile
index 399a533..b1a6552 100644
--- a/libcuda/Makefile
+++ b/libcuda/Makefile
@@ -96,7 +96,7 @@ YFLAGS = -t -d -v --report=all
.PHONY: clean
-OUTPUT_DIR=../$(SIM_OBJ_FILES_DIR)/libcuda
+OUTPUT_DIR=$(SIM_OBJ_FILES_DIR)/libcuda
OBJS = $(CXX_SRCS:%.cc=$(OUTPUT_DIR)/%.o)
OBJS += $(LEX_SRCS:%.l=$(OUTPUT_DIR)/%_lexer.o)
@@ -123,11 +123,11 @@ cuobjdump_lexer.c: cuobjdump.l cuobjdump_parser.h
# in other words, get parser.c and do nothing to get parser.h
%_parser.h: %_parser.c
:
-Makefile.makedepend: depend
+$(OUTPUT_DIR)/Makefile.makedepend: depend
depend:
- touch Makefile.makedepend
- makedepend -fMakefile.makedepend -p$(OUTPUT_DIR)/ $(CXX_SRCS) 2> /dev/null
+ touch $(OUTPUT_DIR)/Makefile.makedepend
+ makedepend -f$(OUTPUT_DIR)/Makefile.makedepend -p$(OUTPUT_DIR)/ $(CXX_SRCS) 2> /dev/null
clean:
rm -f $(PROG)
@@ -137,5 +137,5 @@ clean:
rm -f *_lexer.*
rm -f Makefile.makedepend Makefile.makedepend.bak
-include Makefile.makedepend
+include $(OUTPUT_DIR)/Makefile.makedepend