1 : |
jhr |
321 |
# Makefile for diderot system
|
2 : |
|
|
#
|
3 : |
jhr |
435 |
# COPYRIGHT (c) 2010 The Diderot Project (http://diderot-language.cs.uchicago.edu)
|
4 : |
jhr |
321 |
# All rights reserved.
|
5 : |
|
|
#
|
6 : |
|
|
|
7 : |
|
|
SHELL = @SHELL@
|
8 : |
|
|
@SET_MAKE@
|
9 : |
|
|
|
10 : |
|
|
BUILD_DIRS = src/dnorm \
|
11 : |
jhr |
1116 |
src/compiler \
|
12 : |
jhr |
1232 |
src/lib/build
|
13 : |
jhr |
321 |
|
14 : |
jhr |
2075 |
# add OpenCL specific targets
|
15 : |
|
|
#
|
16 : |
|
|
ifeq (@CL_ENABLED@,true)
|
17 : |
|
|
BUILD_DIRS += src/clinfo
|
18 : |
|
|
endif
|
19 : |
|
|
|
20 : |
jhr |
321 |
.PHONY: help build local-install \
|
21 : |
|
|
clean local-distclean local-devclean
|
22 : |
|
|
|
23 : |
|
|
help:
|
24 : |
|
|
@echo "This Makefile supports the following targets:"
|
25 : |
|
|
@echo " help -- print this message."
|
26 : |
|
|
@echo " build -- build Diderot tools and libraries"
|
27 : |
|
|
@echo " local-install -- install Diderot tools and libraries in "
|
28 : |
|
|
@echo " @DIDEROT_ROOT@/bin"
|
29 : |
|
|
@echo " clean -- remove intermediate files generated during building"
|
30 : |
|
|
@echo " distclean -- remove files generated during configuration"
|
31 : |
|
|
@echo " and building; the resulting tree has the same"
|
32 : |
|
|
@echo " files as the distribution."
|
33 : |
|
|
@echo "The following additional targets are primarily for developers:"
|
34 : |
glk |
1306 |
@echo " devclean -- remove everything that is not part of the SVN"
|
35 : |
jhr |
321 |
@echo " repository."
|
36 : |
|
|
|
37 : |
|
|
local-install:
|
38 : |
|
|
for dir in $(BUILD_DIRS); do \
|
39 : |
|
|
(cd $$dir && $(MAKE) local-install) || exit $$?; \
|
40 : |
|
|
done
|
41 : |
|
|
|
42 : |
|
|
build:
|
43 : |
|
|
for dir in $(BUILD_DIRS); do \
|
44 : |
|
|
(cd $$dir && $(MAKE) build) || exit $$?; \
|
45 : |
|
|
done
|
46 : |
|
|
|
47 : |
jhr |
1640 |
doc:
|
48 : |
|
|
(cd doc; $(MAKE))
|
49 : |
|
|
|
50 : |
jhr |
321 |
#################### Cleanup ####################
|
51 : |
|
|
|
52 : |
jhr |
1640 |
CLEAN_SUBDIRS = $(BUILD_DIRS) test/MIP test/probe doc
|
53 : |
jhr |
321 |
|
54 : |
|
|
CLEAN_FILES =
|
55 : |
|
|
|
56 : |
jhr |
1116 |
DISTCLEAN_FILES += Makefile config.status config.log \
|
57 : |
jhr |
321 |
autom4te*.cache \
|
58 : |
jhr |
1232 |
bin \
|
59 : |
|
|
lib \
|
60 : |
jhr |
1941 |
rtest/scripts/run.sh \
|
61 : |
|
|
rtest/scripts/run-one.sh \
|
62 : |
jhr |
1640 |
src/include/Diderot/config.h \
|
63 : |
|
|
src/compiler/gen/file2str/file2str.sh
|
64 : |
jhr |
321 |
|
65 : |
jhr |
1232 |
DEVCLEAN_FILES = configure \
|
66 : |
|
|
config/config_h.in
|
67 : |
jhr |
321 |
|
68 : |
|
|
include @DIDEROT_MKDIR@/clean-rules.gmk
|