File: configure

package info (click to toggle)
cthugha 1.1a-7
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 2,904 kB
  • ctags: 2,155
  • sloc: ansic: 22,340; makefile: 443; sh: 75; perl: 15
file content (134 lines) | stat: -rw-r--r-- 3,080 bytes parent folder | download | duplicates (2)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# -*- makefile -*-
#############################################################################
#
# Configuration for Cthugha-L
#
#############################################################################
#
# You can set all your preferences in this file
#

#
# turn on (1) and off (0) some features of Cthugha:

#
# USE_SVGA     generate the version using svgalib (Linux only)
#              needs root privileges to run
# USE_XWIN     generate the version for X11 
# USE_SERVER   generate the sound server
#
# USE_NSPMOD   Generate the nspmod program to play MOD files
#              Change `src/nspmod-1.0/Makefile` if necessary
# USE_AMP      Generate the amp program to play MPEG Layer3 files              
#
USE_SVGA   = 1
USE_XWIN   = 1
USE_SERVER = 1
USE_NSPMOD = 1
USE_AMP    = 1

#
# USE_CDROM    support CDs (very Linux specific)
# USE_DSP      support the DSP device (audio reading)
# USE_MIXER    support the audio mixer device
# USE_OLDSND   Use an older sound reading code
# DEV_DSP      '/dev/dsp' (sometimes '/dev/audio')
# DEV_MIXER    `/dev/mixer'
# DEV_CDROM    '/dev/cdrom', name of your CD device
#
USE_CDROM  = 1
USE_DSP    = 1
USE_MIXER  = 1
USE_OLDSND = 0
DEV_DSP    = /dev/dsp
DEV_MIXER  = /dev/mixer
DEV_CDROM  = /dev/cdrom

#
# USE_DGA      use the DGA extensions for XFree86
#              needs root privileges
# USE_SAVER    support the ScreenSaver extensions for XFree86
#              You can then run xcthugha as a screen saver
#
USE_DGA    = 1
USE_SAVER  = 1

#
# USE_DEPEND   Generate the dependencies for make.
#              Turn this off, if you get errors when
#              'makedepend.sh' is running.
#
USE_DEPEND = 1

#
# change the INST_LIB, INST_BIN, INST_MAN and INST_INFO to install to 
# different directories.
#
INST_LIB = $(PREFIX)/usr/lib/cthugha/
INST_BIN = $(PREFIX)/usr/bin/
INST_MAN = $(PREFIX)/usr/man/man1/
INST_INFO = $(PREFIX)/usr/info/
INST_AD = $(PREFIX)/usr/X11R6/lib/X11/app-defaults/
INST_CFG = $(PREFIX)/etc

#
# extra include path to search for some header files
#
NC_INC    = /usr/include/ncurses
X11_INC   = /usr/X11R6/include


#
# libraries needed, and where to find them 
#
LIB_CTHUGHA = -lm -lvga -lvgagl -lncurses
LIB_XCTHUGHA = -lm -lXaw -lXmu -lX11 -lSM -lICE -lXext -lXt	\
	       -L/usr/X11R6/lib -lXss -lXxf86dga -lXxf86vm
LIB_CTHUGHA_SERVER = -lm -lvga -lncurses

# additional libary for ScreenSaver
#ifeq ($(USE_SAVER), 1)
#	LIB_XCTHUGHA += -lXExExt
#endif
# additional libaries for DGA
ifeq ($(USE_DGA), 1)
	LIB_XCTHUGHA += -lXxf86dga -lXxf86vm
endif


# 
# Set what compiler and compiler flags to use.
# You should not have to change this. 
#
CC	= gcc
CFLAGS	= -m486 -O4 -fomit-frame-pointer -funroll-loops -Wall \
	-I $(NC_INC) -I $(X11_INC) -pipe
LDFLAGS = -lm 

# options for profiling
#CFLAGS	= -m486 -O4  -funroll-loops -Wall \
#	-I $(NC_INC) -I $(X11_INC) -pipe -g -pg
#LDFLAGS = -lm  -g -pg 


#
# programs used for documentation
#
TEXI2DVI 	= tex
TEXI2DVI_FLAGS 	= 
MAKEINFO 	= makeinfo
MAKEINFO_FLAGS 	= 
DVIPS 		= dvips


#
# program used for installation
#
INSTALL = install