-
Notifications
You must be signed in to change notification settings - Fork 47
/
Makefile
25 lines (19 loc) · 600 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Dependencies:
# sudo apt-get install gcc-multilib g++-multilib
CC=clang
CXX=clang++
LIBDFT_SRC = src
LIBDFT_TOOL = tools
# LIBDFT_TAG_FLAGS ?= -DLIBDFT_TAG_TYPE=libdft_tag_uint8
.PHONY: all
all: dftsrc tool #test
.PHONY: dftsrc mytool
dftsrc: $(LIBDFT_SRC)
cd $< && CPPFLAGS=$(CPPFLAGS) DFTFLAGS=$(LIBDFT_TAG_FLAGS) make
tool: $(LIBDFT_TOOL)
# cd $< && TARGET=ia32 CPPFLAGS=$(CPPFLAGS) DFTFLAGS=$(LIBDFT_TAG_FLAGS) make
cd $< && TARGET=intel64 CPPFLAGS=$(CPPFLAGS) DFTFLAGS=$(LIBDFT_TAG_FLAGS) make
.PHONY: clean
clean:
cd $(LIBDFT_SRC) && make clean
cd $(LIBDFT_TOOL) && make clean