-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (31 loc) · 741 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (31 loc) · 741 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
26
27
28
29
30
31
32
33
34
35
36
37
CXX := clang++
BUILD_DIR := build
MACOS_APP := $(BUILD_DIR)/bad-ui-macos
COMMON_SRC := \
src/demo.cpp \
src/ui_object.cpp \
src/ui_parent.cpp \
src/ui_form.cpp \
src/ui_tab.cpp \
src/ui_group.cpp \
src/ui_columns.cpp \
src/ui_checkbox.cpp \
src/ui_button.cpp \
src/ui_text.cpp \
src/ui_separator.cpp \
src/ui_swatch.cpp \
src/ui_node.cpp \
src/ui_canvas.cpp \
src/ui_slider.cpp \
src/ui_dropdown.cpp \
src/ui_color_picker.cpp
.PHONY: macos clean
macos: $(MACOS_APP)
$(BUILD_DIR):
mkdir -p $(BUILD_DIR)
$(MACOS_APP): $(BUILD_DIR) src/main_macos.mm $(COMMON_SRC)
$(CXX) -std=c++11 -Wall -Wextra -Wno-unused-parameter \
src/main_macos.mm $(COMMON_SRC) \
-framework Cocoa -o $(MACOS_APP)
clean:
rm -rf $(BUILD_DIR)