aboutsummaryrefslogtreecommitdiff
path: root/examples/Makefile
blob: c2d217627c4d317d1fe028b98cbcef9bcc2edf51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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

.PHONY: all clean
all: $(PROGS)

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

clean:
	rm -f $(PROGS)