-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (20 loc) · 859 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
26
27
28
CXX = g++
CXXFLAGS = -Wall -Wextra -std=c++11 -Iinclude/ -I"C:\Program Files\Dokan\Dokan Library-1.0.0\include\dokan" -Idokan_fuse/include -D_FILE_OFFSET_BITS=64
LDFLAGS =-Llib/ -lOpenCL -L"C:\Program Files\Dokan\Dokan Library-1.0.0" -ldokan1
CXXFLAGS += -g -Og -pg -DOPENCL_1_1
bin/vramfs: build/util.o build/memory.o build/entry.o build/file.o build/dir.o build/symlink.o build/vramfs.o build/docanfuse.o build/fuse_helpers.o build/fuse_opt.o build/fusemain.o build/utils.o | bin
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
build bin:
@mkdir -p $@
build/%.o: src/%.cpp | build
$(CXX) $(CXXFLAGS) -c -o $@ $<
build/%.o: dokan_fuse/src/%.cpp | build
$(CXX) $(CXXFLAGS) -c -o $@ $<
build/%.o: dokan_fuse/src/%.c | build
$(CXX) $(CXXFLAGS) -c -o $@ $<
.PHONY: test
test: bin/vramfs.exe
bin/vramfs.exe R: 128M
.PHONY: clean
clean:
rm -rf build/ bin/