aboutsummaryrefslogtreecommitdiff
path: root/examples/Makefile
blob: ee057255584a2ddbf4719c5e0442b17ad7c65072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Build the verite-gl example programs against the in-tree libGL

CC      ?= cc
CFLAGS  ?= -O2 -mcpu=603e -fsigned-char -fno-strict-aliasing -ffast-math
TOP      = ..
GLINC    = -I$(TOP)/include
LIBGL    = $(TOP)/lib/libGL.a
LIBS     = -lm

PROGS    = cube rave teapot

.PHONY: all clean
all: $(PROGS)

$(PROGS): %: %.c $(LIBGL)
	$(CC) $(CFLAGS) $(GLINC) $< $(LIBGL) $(LIBS) -o $@

teapot: teapot_data.inc

clean:
	rm -f $(PROGS)