File: Makefile.win32.mingw

package info (click to toggle)
glfw 2.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 3,172 kB
  • ctags: 2,055
  • sloc: ansic: 14,940; objc: 934; pascal: 521; sh: 445; makefile: 174
file content (57 lines) | stat: -rw-r--r-- 1,917 bytes parent folder | download
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
##########################################################################
# Makefile for GLFW test programs on Windows using bare MinGW
#-------------------------------------------------------------------------
# To compile the test files using this makefile, run:
#  make -f Makefile.win32.mingw
##########################################################################

CC     = gcc
CFLAGS = -I../include -Wall -O2

LIB    = ../lib/win32/libglfw.a
LFLAGS = $(LIB) -lglu32 -lopengl32 -s

WINDOWS = -mwindows
CONSOLE = -mconsole

HEADER = ../include/GL/glfw.h

all: triangle.exe listmodes.exe mthello.exe pong3d.exe mtbench.exe \
     particles.exe splitview.exe mipmaps.exe gears.exe boing.exe \
	 wave.exe heightmap.exe

triangle.exe: triangle.c $(LIB) $(HEADER)
	$(CC) $(CFLAGS) $(WINDOWS) triangle.c $(LFLAGS) -o $@

listmodes.exe: listmodes.c $(LIB) $(HEADER)
	$(CC) $(CFLAGS) $(CONSOLE) listmodes.c $(LFLAGS) -o $@

mthello.exe: mthello.c $(LIB) $(HEADER)
	$(CC) $(CFLAGS) $(CONSOLE) mthello.c $(LFLAGS) -o $@

pong3d.exe: pong3d.c $(LIB) $(HEADER)
	$(CC) $(CFLAGS) $(WINDOWS) pong3d.c $(LFLAGS) -lm -o $@

mtbench.exe: mtbench.c $(LIB) $(HEADER)
	$(CC) $(CFLAGS) $(CONSOLE) mtbench.c $(LFLAGS) -o $@

particles.exe: particles.c $(LIB) $(HEADER)
	$(CC) $(CFLAGS) $(CONSOLE) particles.c $(LFLAGS) -lm -o $@

splitview.exe: splitview.c $(LIB) $(HEADER)
	$(CC) $(CFLAGS) $(WINDOWS) splitview.c $(LFLAGS) -lm -o $@

mipmaps.exe: mipmaps.c $(LIB) $(HEADER)
	$(CC) $(CFLAGS) $(WINDOWS) mipmaps.c $(LFLAGS) -lm -o $@

gears.exe: gears.c $(LIB) $(HEADER)
	$(CC) $(CFLAGS) $(WINDOWS) gears.c $(LFLAGS) -lm -o $@

boing.exe: boing.c $(LIB) $(HEADER)
	$(CC) $(CFLAGS) $(WINDOWS) boing.c $(LFLAGS) -lm -o $@

wave.exe: wave.c $(LIB) $(HEADER)
	$(CC) $(CFLAGS) $(WINDOWS) wave.c $(LFLAGS) -lm -o $@

heightmap.exe: heightmap.c getopt.c $(LIB) $(HEADER)
	$(CC) $(CFLAGS) $(WINDOWS) heightmap.c getopt.c $(LFLAGS) -lm -o $@