-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
45 lines (30 loc) · 975 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
BUILD_DIR := bin
PROJECT_DIR ?= $(CURDIR)
LIB_DIR := C:/cpplibs
CC := g++
CXX := g++
AR := ar
MKDIR_P ?= mkdir -p
LDFLAGS := -Wall -Wl,--major-image-version,0,--minor-image-version,0
LDLIBS := -lglu32 -lopengl32 -L"$(LIB_DIR)/lib" -lglew32 -lglfw3 -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
CPPFLAGS := -std=c++17
CXXFLAGS := -I./src -I$(LIB_DIR)/include -msse2
export
all: cubetosphere matcom
cubetosphere: common
@$(MAKE) -C cube-to-sphere -f Makefile
#alphamap: common
# @$(MAKE) -C alpha-map -f Makefile
matcom: common
@$(MAKE) -C material-combiner -f Makefile
common:
@$(MAKE) -C common -f Makefile
clean:
@echo "Cleaning object files..."
@cd $(BUILD_DIR) && $(RM) -rd *
@cd $(BUILD_DIR) && $(RM) -rf *.o
@echo "Cleaning archive files..."
@cd $(BUILD_DIR) && $(RM) -rf *.a
@echo "Cleaning executable files..."
@cd $(BUILD_DIR) && $(RM) -rf *.exe
.PHONY: all common clean cubetosphere matcom