forked from cococry/leif
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (22 loc) · 607 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
CC=gcc
INCS=`pkg-config --cflags glfw3 cglm` -Ivendor/glad/include -Ivendor/stb_image/ -Ivendor/stb_truetype -Ivendor/stb_image_resize
CFLAGS =${INCS} -DLF_GLFW -O3 -ffast-math
all: lib/leif.a
lib/leif.a: lib/leif.o
ar cr lib/libleif.a lib/*.o
lib/leif.o: lib
${CC} ${CFLAGS} -c leif.c -o lib/leif.o
${CC} -c vendor/glad/src/glad.c -o lib/glad.o
cp -r .leif ~/
lib:
mkdir lib
clean:
rm -r ./lib
install:
cp lib/libleif.a /usr/local/lib/
cp -r include/leif /usr/local/include/
uninstall:
rm -f /usr/local/lib/libleif.a
rm -rf /usr/local/include/leif/
rm -rf ~/.leif/
.PHONY: all test clean