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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
##########################################################################
# Makefile for GLFW test programs on Windows using LCC-Win32.
#-------------------------------------------------------------------------
# To compile the test files using this makefile, run:
# make -f Makefile.win32.lcc
##########################################################################
# Compiler settings
CC = lc
CFLAGS = -I..\\include -O -A
#CFLAGS = -I..\\include -O -A -DGLFW_DLL
# Linker settings
LFLAGS = ..\\lib\\win32\\glfw.lib glu32.lib opengl32.lib
#LFLAGS = ..\\lib\\win32\\glfwdll.lib glu32.lib opengl32.lib
# Subsystem settings
WINDOWS = -subsystem windows
CONSOLE = -subsystem console
# Default: Build all tests
all: triangle.exe listmodes.exe mthello.exe pong3d.exe mtbench.exe \
particles.exe splitview.exe mipmaps.exe keytest.exe gears.exe \
boing.exe wave.exe
# Rule for triangle
triangle.exe: triangle.c
$(CC) $(CFLAGS) triangle.c $(LFLAGS) -o $@ -s $(WINDOWS)
# Rule for listmodes
listmodes.exe: listmodes.c
$(CC) $(CFLAGS) listmodes.c $(LFLAGS) -o $@ -s $(CONSOLE)
# Rule for mthello
mthello.exe: mthello.c
$(CC) $(CFLAGS) mthello.c $(LFLAGS) -o $@ -s $(CONSOLE)
# Rule for pong3d
pong3d.exe: pong3d.c
$(CC) $(CFLAGS) pong3d.c $(LFLAGS) -o $@ -s $(WINDOWS)
# Rule for mtbench
mtbench.exe: mtbench.c
$(CC) $(CFLAGS) mtbench.c $(LFLAGS) -o $@ -s $(CONSOLE)
# Rule for particles
particles.exe: particles.c
$(CC) $(CFLAGS) particles.c $(LFLAGS) -o $@ -s $(CONSOLE)
# Rule for splitview
splitview.exe: splitview.c
$(CC) $(CFLAGS) splitview.c $(LFLAGS) -o $@ -s $(WINDOWS)
# Rule for mipmaps
mipmaps.exe: mipmaps.c
$(CC) $(CFLAGS) mipmaps.c $(LFLAGS) -o $@ -s $(WINDOWS)
# Rule for keytest
keytest.exe: keytest.c
$(CC) $(CFLAGS) keytest.c $(LFLAGS) -o $@ -s $(CONSOLE)
# Rule for gears
gears.exe: gears.c
$(CC) $(CFLAGS) gears.c $(LFLAGS) -o $@ -s $(CONSOLE)
# Rule for boing
boing.exe: boing.c
$(CC) $(CFLAGS) boing.c $(LFLAGS) -o $@ -s $(WINDOWS)
# Rule for wave
wave.exe: wave.c
$(CC) $(CFLAGS) wave.c $(LFLAGS) -o $@ -s $(WINDOWS)
|