aboutsummaryrefslogtreecommitdiff
path: root/samples/OpenGL/compute_shader/Makefile
blob: f6191f162593230ae85a4a1bef31b9aad47643b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
OBJS = main.o positiongen.o solid.o stats.o shaderloader.o debuggl.o
CFLAGS = -std=c99 -I../../../extra
LDLIBS = -lGL -lGLEW -lglut -lm

.PHONY: all clean

all: computeshader

clean:
	-rm -f $(OBJS) computeshader

computeshader: $(OBJS)
	$(CC) $(LDFLAGS) -o computeshader $(OBJS) $(LOADLIBES) $(LDLIBS)

shaderloader.o: ../../../extra/shaderloader/shaderloader.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $<

debuggl.o: ../../../extra/debuggl/debuggl.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $<