aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-11-09 02:17:39 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-11-09 02:17:39 +0100
commit87a70d198b1361b6c9601e61fef6b58071bbd0a8 (patch)
tree4984b93437a13d6f9fac8876e9e39cf0a78bbebb /Makefile
parent0dca2c3e51c98dfa9e62cddd32cadbf6c7f71a3d (diff)
add interactivity and shared libHEADv0.0.1master
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 43348e3..3a83189 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+PREFIX=/usr
CC=gcc
LDFLAGS=-lGL -lglut -lGLU -lm
CFLAGS=
@@ -9,13 +10,21 @@ default_target: all
.c.o:
${CC} ${CFLAGS} -c $<
-example: example.c
+example: example.c ${OBJ}
${CC} -o $@ ${LDFLAGS} example.c ${OBJ}
all: ${OBJ} example
clean:
- -rm *.o example
+ -rm *.o example libgragl.so
run: all
./example
+
+libgragl.so: ${OBJ}
+ gcc -shared ${OBJ} -o $@
+
+install: libgragl.so
+ install libgragl.so ${PREFIX}/lib/
+ install gragl.h ${PREFIX}/include/
+ install gragl.pc ${PREFIX}/share/pkgconfig/