1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
# Default: Build all tests
all: triangle listmodes mthello pong3d mtbench particles splitview \
mipmaps keytest gears boing wave
# Rule for triangle
triangle: triangle.c
$(CC) $(CFLAGS) triangle.c $(LFLAGS) -o $@
# Rule for listmodes
listmodes: listmodes.c
$(CC) $(CFLAGS) listmodes.c $(LFLAGS) -o $@
# Rule for mthello
mthello: mthello.c
$(CC) $(CFLAGS) mthello.c $(LFLAGS) -o $@
# Rule for pong3d
pong3d: pong3d.c
$(CC) $(CFLAGS) pong3d.c $(LFLAGS) -o $@
# Rule for mtbench
mtbench: mtbench.c
$(CC) $(CFLAGS) mtbench.c $(LFLAGS) -o $@
# Rule for particles
particles: particles.c
$(CC) $(CFLAGS) particles.c $(LFLAGS) -o $@
# Rule for splitview
splitview: splitview.c
$(CC) $(CFLAGS) splitview.c $(LFLAGS) -o $@
# Rule for mipmaps
mipmaps: mipmaps.c
$(CC) $(CFLAGS) mipmaps.c $(LFLAGS) -o $@
# Rule for keytest
keytest: keytest.c
$(CC) $(CFLAGS) keytest.c $(LFLAGS) -o $@
# Rule for gears
gears: gears.c
$(CC) $(CFLAGS) gears.c $(LFLAGS) -o $@
# Rule for boing
boing: boing.c
$(CC) $(CFLAGS) boing.c $(LFLAGS) -o $@
# Rule for wave
wave: wave.c
$(CC) $(CFLAGS) wave.c $(LFLAGS) -o $@
|