-
Notifications
You must be signed in to change notification settings - Fork 12
/
INSTALL.SGI
178 lines (136 loc) · 4.94 KB
/
INSTALL.SGI
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
Contributed by Stefan Stapelberg <[email protected]> on 2009-01-10
Please find attached the patches to the netrek sound extension for
SGIs. I have used the AL (audio library) so that I will work on any
IRIX version from 5.2 to 6.5. I have also modified some
sound-unrelated files to have a defined state for the sound engine
after entering the game (e.g. green alert, etc.).
The commands I use to configure the Makefile for netrek on SGI systems
are:
export ac_cv_lib_sun=no ac_cv_lib_sun_getpwnam=no
ac_cv_lib_sun_getmntent=no ac_cv_lib_sun_yp_match=noexport
export ac_cv_lib_gen_getmntent=no ac_cv_lib_socket=no
ac_cv_lib_socket_main=no
export CC=cc
export CFLAGS="-n32 -mips4 -xansi -TARG:platform=IP27:proc=r10000 -O3
-OPT:Olimit=2000:roundoff=3:fast_io=ON -IPA:aggr_cprop=ON
-INLINE:dfe=ON:list=OFF"
export LDFLAGS="-n32 -mips4 -IPA:aggr_cprop=ON -INLINE:dfe=ON:list=OFF
-no_unresolved"
./configure -C \
--prefix=/usr/local/games/netrek \
--with-x
*** netrek-client-cow-3.2.8/system.mk Mon Dec 01 01:09:56 CET 2008
--- netrek-client-cow-3.2.8-sgi/system.mk Fri Dec 19 22:35:06 CET 2008
***************
*** 4,10 ****
############################################################################
SHELL = /bin/sh
! CC = cc -n32 -mips4 -xansi
LN = ln -s
PROTOIZE = protoize
--- 4,10 ----
############################################################################
SHELL = /bin/sh
! CC = cc
LN = ln -s
PROTOIZE = protoize
***************
*** 31,43 ****
# Other libraries neeeded. (All systems need -lX11 -lm)
! LIBS = -lXpm -lX11 -lm
INCS =
# Flags for optimizing
# (-O, -g, -O2)
! #OPT =
# Flags for shared libraries
--- 31,43 ----
# Other libraries neeeded. (All systems need -lX11 -lm)
! LIBS = -lXpm -lX11 -lm -laudio -laudiofile
INCS =
# Flags for optimizing
# (-O, -g, -O2)
! #OPT = -g -Wall
# Flags for shared libraries
***************
*** 94,101 ****
MAINOBJ = main.o
MAINSRC = main.c
! X11OBJ = x11window.o x11sprite.o audio.o
! X11SRC = x11window.c x11sprite.c audio.c
WIN32OBJ = # gnu_win32.o winsprite.o winsndlib.o
WIN32SRC = # gnu_win32.c winsprite.c winsndlib.c
--- 94,101 ----
MAINOBJ = main.o
MAINSRC = main.c
! X11OBJ = audio.o x11window.o x11sprite.o
! X11SRC = audio.c x11window.c x11sprite.c
WIN32OBJ = # gnu_win32.o winsprite.o winsndlib.o
WIN32SRC = # gnu_win32.c winsprite.c winsndlib.c
***************
*** 113,119 ****
SHARED = $(SL_CFLAGS)
INCDIRS = $(MPINC) $(INCS)
CFLAGS = $(OPT) $(EXTRACFLAGS) $(RSA_FLAGS) $(INCDIRS)
! LFLAGS = -g $(EXTRALINKFLAGS)
LIBRARIES = $(LMP) $(LIBS) $(EXTRALIBS) $(SDL_LIBS) $(SDL_MIXER_LIBS) $(XXF86VM_LIBS) $(IMLIB2_LIBS)
netrek-client-cow: $(RSAOBJ) $(PMAKE) null $(ROBJ) $(MAINOBJ) $(INPUTOBJ) $(X11OBJ) $(WIN32OBJ) $(RANDOMOBJ) cflags.c
--- 113,119 ----
SHARED = $(SL_CFLAGS)
INCDIRS = $(MPINC) $(INCS)
CFLAGS = $(OPT) $(EXTRACFLAGS) $(RSA_FLAGS) $(INCDIRS)
! LFLAGS = $(EXTRALINKFLAGS)
LIBRARIES = $(LMP) $(LIBS) $(EXTRALIBS) $(SDL_LIBS) $(SDL_MIXER_LIBS) $(XXF86VM_LIBS) $(IMLIB2_LIBS)
netrek-client-cow: $(RSAOBJ) $(PMAKE) null $(ROBJ) $(MAINOBJ) $(INPUTOBJ) $(X11OBJ) $(WIN32OBJ) $(RANDOMOBJ) cflags.c
***************
*** 131,162 ****
$(TOUCH) done.libcow
#rsa_box.c: mkkey $(SECKEYFILE)
! $(RSASRC): mkkey $(SECKEYFILE)
! -$(RM) $(RSASRC)
! ./mkkey -c -k $(SECKEYFILE)
! $(TOUCH) $(RSASRC)
! @echo "int sock = -1;" >>rsa_box_1.c
!
! $(SECKEYFILE):
! @echo WARNING: No keyfile found, generating a new key.
! @echo " You have 5 seconds time to abort"
! sleep 5
! $(MAKE) newkey
mkkey: mkkey.c $(RANDOMOBJ) defs.h
$(CC) $(CFLAGS) $(MPINC) $(MPLIB) -o mkkey mkkey.c $(RANDOMOBJ) $(LIBRARIES)
randomize: randomize.c $(RANDOMOBJ) defs.h
! $(CC) $(OPT) -o randomize randomize.c $(RANDOMOBJ) $(LIBRARIES)
sound.o: sound.c
! $(CC) $(SDL_CFLAGS) -c sound.c
random.o: random.c
! $(CC) -c -O random.c
strdup.o: strdup.c
! $(CC) -c -O strdup.c
cflags.c: mkcflags
./mkcflags "$(CC) $(CFLAGS)" "$(ARCH)" > cflags.c
--- 131,162 ----
$(TOUCH) done.libcow
#rsa_box.c: mkkey $(SECKEYFILE)
! #$(RSASRC): mkkey $(SECKEYFILE)
! # -$(RM) $(RSASRC)
! # ./mkkey -c -k $(SECKEYFILE)
! # $(TOUCH) $(RSASRC)
! # @echo "int sock = -1;" >>rsa_box_1.c
! #
! #$(SECKEYFILE):
! # @echo WARNING: No keyfile found, generating a new key.
! # @echo " You have 5 seconds time to abort"
! # sleep 5
! # $(MAKE) newkey
mkkey: mkkey.c $(RANDOMOBJ) defs.h
$(CC) $(CFLAGS) $(MPINC) $(MPLIB) -o mkkey mkkey.c $(RANDOMOBJ) $(LIBRARIES)
randomize: randomize.c $(RANDOMOBJ) defs.h
! $(CC) $(CFLAGS) -o randomize randomize.c $(RANDOMOBJ) $(LIBRARIES)
sound.o: sound.c
! $(CC) $(CFLAGS) -c sound.c
random.o: random.c
! $(CC) $(CFLAGS) -c random.c
strdup.o: strdup.c
! $(CC) $(CFLAGS) -c strdup.c
cflags.c: mkcflags
./mkcflags "$(CC) $(CFLAGS)" "$(ARCH)" > cflags.c