File: Makefile.cygwin

package info (click to toggle)
libopengl-perl 0.62%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,700 kB
  • ctags: 1,405
  • sloc: perl: 9,527; ansic: 6,001; makefile: 95; sh: 48
file content (31 lines) | stat: -rw-r--r-- 546 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
#!make
# This Makefile was developed with GNU make on cygwin.

CC=gcc
LINK=g++

# For FreeGLUT over WGL
CCFLAGS=-DWIN32 -DHAVE_FREEGLUT
LDFLAGS=-L../FreeGLUT -lfreeglut /cygdrive/c/WINDOWS/system32/opengl32.dll

# 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 $<