]> git.lizzy.rs Git - shadowclad.git/blob - Makefile
Create basic working program; renders xyz axes
[shadowclad.git] / Makefile
1 compileargs = -Wall -Wextra -Wpedantic
2 linkargs = -lGL -lglut
3 objects = out/main.o out/debugutil.o out/glut_janitor.o out/render.o
4
5 shadowclad : $(objects)
6         gcc -o out/shadowclad $(objects) $(linkargs)
7
8 run : shadowclad
9         out/shadowclad
10
11 out/main.o : main.c debugutil.h glut_janitor.h render.h
12         gcc -c -o out/main.o main.c $(compileargs)
13
14 out/debugutil.o : debugutil.c
15         gcc -c -o out/debugutil.o debugutil.c $(compileargs)
16
17 out/glut_janitor.o : glut_janitor.c
18         gcc -c -o out/glut_janitor.o glut_janitor.c $(compileargs)
19
20 out/render.o : render.c render.h typedefs.h
21         gcc -c -o out/render.o render.c $(compileargs)