summaryrefslogtreecommitdiff
path: root/src/cdgl.mak
blob: 7b5f8e60e00b5e5f5dc435a69c085cf40f17611c (plain)
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
PROJNAME = cd
LIBNAME = cdgl
OPT = YES

DEFINES = CD_NO_OLD_INTERFACE
SRC = drv/cdgl.c

INCLUDES = . sim ftgl freetype2
LIBS = ftgl
ifeq ($(findstring Win, $(TEC_SYSNAME)), )
#  LIBS += iconv
endif

USE_OPENGL = YES
USE_CD = YES
CD = ..

ifneq ($(findstring AIX, $(TEC_UNAME)), )
  NO_FONTCONFIG = Yes
endif

ifneq ($(findstring IRIX, $(TEC_UNAME)), )
  NO_FONTCONFIG = Yes
endif

ifneq ($(findstring SunOS, $(TEC_UNAME)), )
  NO_FONTCONFIG = Yes
endif

ifneq ($(findstring MacOS, $(TEC_UNAME)), )
  ifeq ($(TEC_SYSMINOR), 5)
    #Darwin9 Only - OpenGL bug fix for Fink, when the message bellow appears
    #   ld: cycle in dylib re-exports with /usr/X11R6/lib/libGL.dylib
    LFLAGS=-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
  endif
  
  BUILD_DYLIB=Yes
endif