#----------------------------------------------------------------------
# Makefile for SVGAlib demo programs.
#
# This file is a part of SVGAlib.
#----------------------------------------------------------------------

#----------------------------------------------------------------------
# Compiler Section
#----------------------------------------------------------------------

CC      = gcc
CFLAGS  = -Wall -Wstrict-prototypes
CFLAGS += -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -g
LDFLAGS = -s
LIBS    = -lvgagl -lvga -lm

#----------------------------------------------------------------------
# Rules Section
#----------------------------------------------------------------------

PROGS    = fun testgl speedtest mousetest vgatest scrolltest testlinear \
	   keytest testaccel accel forktest eventtest spin bg_test printftest \
	   joytest mjoytest bankspeed lineart linearspeed addmodetest \
	   svidtune linearfork cursor vgatweak

all:	$(PROGS)

.c:
	$(CC) $(CFLAGS) $(LDFLAGS) -o $* $*.c $(LIBS)

clean:
	rm -f $(PROGS)
