-
Notifications
You must be signed in to change notification settings - Fork 176
Expand file tree
/
Copy pathmakefile
More file actions
25 lines (17 loc) · 678 Bytes
/
makefile
File metadata and controls
25 lines (17 loc) · 678 Bytes
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
BUILD_FLAGS = -O0 -g -DCHUNKWM_DEBUG -std=c++11 -Wall -Wno-deprecated
BUILD_PATH = ./bin
SRC = ./src/core/chunkwm.mm
BINS = $(BUILD_PATH)/chunkwm
LINK = -rdynamic -ldl -lpthread -framework Carbon -framework Cocoa -framework ScriptingBridge -DGIT_VERSION=\"$(GIT_VERSION)\"
GIT_VERSION := "$(shell git describe --abbrev=4 --dirty --always)"
all: $(BINS)
install: BUILD_FLAGS=-O2 -std=c++11 -Wall -Wno-deprecated
install: clean $(BINS)
.PHONY: all clean install
$(BINS): | $(BUILD_PATH)
$(BUILD_PATH):
mkdir -p $(BUILD_PATH)
clean:
rm -rf $(BUILD_PATH)
$(BUILD_PATH)/chunkwm: $(SRC)
clang++ $^ $(BUILD_FLAGS) -o $@ $(LINK)