-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (21 loc) · 918 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
CC = clang
CXX = clang++
INCLUDE_DIR = Include/
LIB_DIR = Lib/
FRAMEWORKS = -framework OpenGL -framework Cocoa -framework IOKit -lglfw3
CXXFLAGS = -std=c++17
#$(LIB_DIR)/%.o: %.c
# $(CC) $(CXXFLAGS) -c $< -o $@
all: boids-3d chessboard colorful-letter dla-fractal
%.o: Lib/%.c
$(CC) -I $(INCLUDE_DIR) -c -o macos/$@ $<
%.o: Lib/%.cpp
$(CXX) -I $(INCLUDE_DIR) $(FRAMEWORKS) $(CXXFLAGS) -c -o macos/$@ $<
boids-3d:
$(CXX) -I $(INCLUDE_DIR) -L $(LIB_DIR) $(FRAMEWORKS) $(CXXFLAGS) macos/*.o boids-3d.cpp -o macos/boids-3d
chessboard:
$(CXX) -I $(INCLUDE_DIR) -L $(LIB_DIR) $(FRAMEWORKS) $(CXXFLAGS) macos/*.o Chessboard.cpp -o macos/chessboard
colorful-letter:
$(CXX) -I $(INCLUDE_DIR) -L $(LIB_DIR) $(FRAMEWORKS) $(CXXFLAGS) macos/*.o ColorfulLetter.cpp -o macos/colorful-letter
dla-fractal:
$(CXX) -I $(INCLUDE_DIR) -L $(LIB_DIR) $(FRAMEWORKS) $(CXXFLAGS) macos/*.o dlaFractal.cpp -o macos/dla-fractal