File: Makefile.cygwin

package info (click to toggle)
libopengl-perl 0.66%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,932 kB
  • sloc: perl: 9,796; ansic: 6,279; makefile: 101; sh: 48
file content (31 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (7)
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
#!make
# This Makefile was developed with GNU make on cygwin.

CC=gcc
LINK=g++

# For FreeGLUT over WGL
CCFLAGS=-DWIN32 -DHAVE_FREEGLUT -I/usr/include/opengl
LDFLAGS=-L../FreeGLUT -lopengl32 -lglu32 -lfreeglut

# For FreeGLUT over GLX (set default for now)
#### CCFLAGS=-DHAVE_FREEGLUT
#### LDFLAGS=-lGL -lglut

all: glversion.txt

clean:
	rm -f glversion.txt
	rm -f glversion.exe
	rm -f glversion.o

glversion.txt: glversion
	./$< > $@

glversion: glversion.o
	${LINK} -o $@ $< ${LDFLAGS}
	chmod u+x $@

%.o: %.c Makefile.cygwin
	${CC} ${CCFLAGS} -c $<