aboutsummaryrefslogtreecommitdiff
path: root/graphics/ftgl/files/makefile.ex
blob: 791f527a0a19a989dd627df0b4cf85471c64daf1 (plain) (blame)
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
# Make sure, that you have graphics/libglut installed
# in order to build example program
#
# $FreeBSD$

CC=		%%CC%%
CXX=		%%CXX%%
RM=		%%RM%%
CFLAGS=		%%CFLAGS%% -I. -I%%LOCALBASE%%/include -I%%PREFIX%%/include/FTGL
CXXFLAGS=	%%CXXFLAGS%% -I. -I%%LOCALBASE%%/include -I%%PREFIX%%/include/FTGL
LDFLAGS=	-L%%LOCALBASE%%/lib -L%%LOCALBASE%%/lib -lglut -lftgl

FREETYPE_CFLAGS!=%%LOCALBASE%%/bin/freetype-config --cflags
FREETYPE_LFLAGS!=%%LOCALBASE%%/bin/freetype-config --libs

CFLAGS+=	${FREETYPE_CFLAGS}
CXXFLAGS+=	${FREETYPE_CFLAGS}
LDFLAGS+=	${FREETYPE_LFLAGS}

FTGLDemo: tb.o trackball.o FTGLDemo.o
	${CXX} $> -o $@ ${LDFLAGS}

.cpp.o:
	${CXX} -c ${CXXFLAGS} $*.cpp

.c.o:
	${CC} -c ${CFLAGS} $*.c

clean:
	${RM} -f FTGLDemo *.o