-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 636 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 636 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
all: build
build: obj/Grapic.o obj/main.o
@echo "=== Linking... ==="
mkdir -p build
g++ -o build/main obj/Grapic.o obj/main.o -lSDL2 -lSDL2_image -lSDL2_ttf -s
obj/main.o: main.cpp
@echo "=== Compiling... ==="
mkdir -p obj
g++ -MMD -MP -Isrc -I/usr/include/SDL2 -o obj/main.o -MF obj/main.d -c -Wall main.cpp
obj/Grapic.o: src/Grapic.h src/Grapic.cpp
@echo "=== Compiling Grapic... ==="
mkdir -p obj
g++ -MMD -MP -Isrc -I/usr/include/SDL2 -o obj/Grapic.o -MF obj/Grapic.d -c src/Grapic.cpp
download src/Grapic.cpp src/Grapic.h:
@echo "=== Downloading... ==="
@bash download_grapic.sh
clean:
rm -rf obj/
rm -rf build/