mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
29 lines
785 B
Diff
29 lines
785 B
Diff
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -1,21 +1,18 @@
|
|
-CC = g++
|
|
-CFLAGS = -Wall -Wpedantic -Werror -std=c++11 $(shell pkg-config fuse3 --cflags) -I include/
|
|
-LDFLAGS = -flto $(shell pkg-config fuse3 --libs) -l OpenCL
|
|
+CXXFLAGS += -std=c++11 $(shell pkg-config fuse3 --cflags) -I include/
|
|
+LIBS = $(shell pkg-config fuse3 --libs) -l OpenCL
|
|
|
|
ifeq ($(DEBUG), 1)
|
|
CFLAGS += -g -DDEBUG -Wall -Werror -std=c++11
|
|
-else
|
|
- CFLAGS += -march=native -O2 -flto
|
|
endif
|
|
|
|
bin/vramfs: build/util.o build/memory.o build/entry.o build/file.o build/dir.o build/symlink.o build/vramfs.o | bin
|
|
- $(CC) -o $@ $^ $(LDFLAGS)
|
|
+ $(CXX) -o $@ $^ $(LDFLAGS) $(LIBS)
|
|
|
|
build bin:
|
|
@mkdir -p $@
|
|
|
|
build/%.o: src/%.cpp | build
|
|
- $(CC) $(CFLAGS) -c -o $@ $<
|
|
+ $(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
.PHONY: clean
|
|
clean:
|