File: Imakefile

package info (click to toggle)
mixviews 1.10-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 2,440 kB
  • ctags: 6,314
  • sloc: cpp: 31,647; ansic: 2,100; makefile: 1,782; sh: 17
file content (530 lines) | stat: -rw-r--r-- 17,769 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
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
XCOMM
XCOMM MiXViews - a sound editor and processor
XCOMM

XCOMM Note:  You must '#define HasGcc2 YES' in config/gcc.def to get the
XCOMM correct flags for the Gnu C and C++ compilers.
XCOMM If you cannot do that, then add that line immediately below this line.

CCSUFFIX = C

#ifdef InObjectCodeDir

XCOMM Set this to whichever you use for linking fortran code

APP_FORTLIBS = -lf2c

#if defined(SunArchitecture)

/* define one of the following on a Sparc system depending on your converter */

/* #define USE_SPARC */
/* #define USE_ADR   */
/* #define USR_PROPORT */

APP_FORTLIBS = -lf2c

#if HasGcc2
ARCH_NEWFLAG = -DUSE_CUSTOM_NEW
#else
ARCH_NEWFLAG =
#endif

/* flags for system with the native Sparc only */

#ifdef USE_SPARC
ARCH_CCDEFINES = $(ARCH_NEWFLAG) -DSPARC_DACS
ARCH_CCLDFLAGS = -L/usr/demo/SOUND
ARCH_CCINCLUDES = -I/usr/demo/SOUND
ARCH_CCLDLIBS = -laudio $(APP_FORTLIBS) -lm
DAC_OBJS = conv_config.o conv_device.o sun_dac.o
#endif

/* flags for system with the Analog Digital converter */

#ifdef USE_ADR
ARCH_CCDEFINES = $(ARCH_NEWFLAG) -DADC_DACS
ARCH_CCLDFLAGS = -L/usr/demo/SOUND -L/usr/local/src/adc
ARCH_CCINCLUDES =  -I/usr/demo/SOUND -I/usr/local/src/adc
ARCH_CCLDLIBS = -laudio -ladc $(APP_FORTLIBS) -lm 
DAC_OBJS = conv_config.o adc_dac.o
#endif

/* flags for system with the Ariel S56x converter */

#ifdef USE_PROPORT
S56DIR = ../s56x
ARCH_CCDEFINES = $(ARCH_NEWFLAG) -DSPARC_DACS -DPROPORT_DACS
ARCH_CCLDFLAGS = -L/usr/demo/SOUND -L$(S56DIR)/lib
ARCH_CCINCLUDES = -I/usr/demo/SOUND -I$(S56DIR)/include
ARCH_CCLDLIBS = -laudio -ldrp -lqckMon $(APP_FORTLIBS) -lm
DAC_OBJS = conv_config.o conv_device.o sun_dac.o proport_dac.o
#endif

ARCH_OBJS =

DEBUG_CCFLAGS = # -Ddebug
PURIFY_OPTIONS=\
-always-use-cache-dir \
-suppression-file-names=.purify,.purify.sunos4,./.purify \
-collector=/usr/local/lib/gcc-lib/'sparc-sun-sunos4.1.2'/2.7.0/ld \
-fds-inuse-at-exit=no -chain-length=12

PURECOV_OPTIONS=\
-always-use-cache-dir \
-collector=/usr/local/lib/gcc-lib/'sparc-sun-sunos4.1.2'/2.7.0/ld

#if defined(UseDebug)
DEBUG_CCLDLIBS = /usr/lib/debug/malloc.o
#endif
#endif

#if defined(NeXTArchitecture)
ARCH_CCFLAGS = -pipe
ARCH_CCDEFINES = -DINLINE_MATH -DUSE_CUSTOM_NEW
ARCH_CCINCLUDES =
ARCH_CCLDFLAGS =
ARCH_CCLDLIBS = $(APP_FORTLIBS)

DAC_OBJS = conv_config.o next_dac.o
ARCH_OBJS =

DEBUG_CCFLAGS = -Ddebug
#if defined(UseDebug)
DEBUG_CCLDLIBS = -lMallocDebug
#endif
#endif

#if defined(SGIArchitecture)

XCOMM The ARCH flags are set based on whether or not a Gnu compiler is used

#if !HasGcc2
ARCH_CCFLAGS = -O -w -signed
/* the following line should be used if you have the native IRIX 5.2 compiler */
/* ARCH_CCDEFINES = -DNO_NEW_HANDLER -DNO_TEMPLATES -DAIFF_AUDIO -DSGI_DACS */
ARCH_CCDEFINES = -DNO_NEW_HANDLER -DAIFF_AUDIO -DSGI_DACS
ARCH_CCINCLUDES = -I../sgi-g++ -I/usr/local/include
ARCH_OBJS = sgi-channelview.o String.o Complex.o Regex.o regex.o error.o
#else
ARCH_CCDEFINES = -DAIFF_AUDIO -DSGI_DACS
ARCH_CCFLAGS=
ARCH_OBJS =
#endif

ARCH_CCLDFLAGS = -L/usr/local/lib
ARCH_CCLDLIBS = -laudio -laudiofile -laudioutil $(APP_FORTLIBS) -lm

DAC_OBJS = conv_config.o sgi_dac.o
APP_FORTLIBS = -lftn

DEBUG_CCFLAGS = -Ddebug
#if defined(UseDebug)
DEBUG_CCLDLIBS =
#endif
#endif

#if defined(LinuxArchitecture)
XCOMM Extra defines, include directories, loading flags, and libraries needed
XCOMM for the Linux version.  The assumption is that you are using Gnu gcc/g++

ARCH_CCDEFINES = -DVOXWARE_DACS -DXDisplay=_XDisplay 
ARCH_CCFLAGS = -fkeep-inline-functions -mieee-fp
ARCH_CCINCLUDES = -I/usr/X11R6/include/IV-2_6 -I/usr/X11R6/include/
ARCH_CCLDFLAGS =
ARCH_CCLDLIBS = $(APP_FORTLIBS) -lg++ -lm 
DEBUG_CCFLAGS = 

DAC_OBJS = conv_config.o conv_device.o vw_converter.o
ARCH_OBJS = utils.o
#endif

#if defined(i386SVR4Architecture)
XCOMM This assumes you have the SoundBlaster card on your machine
ARCH_CCDEFINES = -DSOUNDBLASTER
ARCH_CCINCLUDES =
ARCH_CCLDFLAGS =
ARCH_CCLDLIBS = -lm -lPW -lmalloc
DEBUG_CCFLAGS = -Ddebug
#if defined(UseDebug)
DEBUG_CCLDLIBS =
#endif
#endif

#if defined(AlphaArchitecture)
XCOMM For DEC Alpha machine -- no sound software yet.
ARCH_CCDEFINES =
ARCH_CCINCLUDES =
ARCH_CCLDFLAGS =
ARCH_CCLDLIBS = $(APP_FORTLIBS) -lm
DEBUG_CCFLAGS = -Ddebug
#if defined(UseDebug)
DEBUG_CCLDLIBS =
#endif
#endif

#if defined(SCOArchitecture)
XCOMM For SCO UNIX on a PC
ARCH_CCDEFINES =
ARCH_CCINCLUDES =
ARCH_CCLDFLAGS =
ARCH_CCLDLIBS = $(APP_FORTLIBS) -lm
DEBUG_CCFLAGS = -Ddebug
#if defined(UseDebug)
DEBUG_CCLDLIBS =
#endif
#endif

XCOMM These flags may need to be edited depending on your system

#if HasGcc2
CC = gcc -pipe -Wall $(OPTIMIZE_CCFLAGS) -finline-functions
APP_CCFLAGS = $(ARCH_CCFLAGS) -Wall -Wno-unused -Wno-import -Wno-extern-inline 
TEMPLATE_OPTIMIZE_CCFLAGS = -g -Wtemplate-debugging
#else
#CC = cc -O
APP_CCFLAGS = $(ARCH_CCFLAGS)
TEMPLATE_OPTIMIZE_CCFLAGS = $(OPTIMIZE_CCFLAGS)
#endif

XCOMM Be sure to remove the -DIV_IS_PATCHED flag if using InterViews 3.1

/* APP_CCDEFINES = $(ARCH_CCDEFINES) -DIV_IS_PATCHED -DNDEBUG */
APP_CCDEFINES = $(ARCH_CCDEFINES) -DNDEBUG
APP_CCINCLUDES = -I$(SRC) $(ARCH_CCINCLUDES)
APP_CCLDFLAGS = -L. $(ARCH_CCLDFLAGS)
APP_CCLDLIBS = $(DEBUG_CCLDLIBS) -lcfuns $(ARCH_CCLDLIBS)
APP_CCDEPLIBS = libcfuns.a

FLAGS = $(ARCH_CCDEFINES) $(EXTRA_CCFLAGS) -I/usr/local/include

BINDIR = /usr/local/bin

AOUT = mxv

Use_libInterViews()
Use_2_6()

FUTURE_OBJS = editcommand.o commandlookup.o datatype.o

OBJS = application.o main.o format.o selector.o graphplot.o vmessage.o \
rubbertext.o numberlabel.o scaledarea.o graph.o channelgraph.o framegraph.o \
scale.o dataview.o channelview.o frameview.o viewchanger.o framedwindow.o \
datawindow.o textwindow.o scroller.o menus.o editor.o edit_menus.o \
edit_request.o soundeditor.o pvoceditor.o controller.o version.o \
contscroller.o adjtext.o valueslider.o range.o \
buttonarray.o dialogbox.o fileselector.o optionsetter.o smartmem.o \
dialog_ctor.o comment.o commenteditor.o filename.o controller_conv.o \
statuspanel.o textinput.o testit.o buffer.o queue.o wavetable.o \
windowtable.o requester.o formatrequester.o formantrequester.o \
pvocrequester.o configurable.o modifier.o datamodifier.o processfun.o \
outputfunction.o iofunction.o interpolater.o synthfunction.o pitchconv.o \
combfilter.o rescaler.o filecommand.o analysisfun.o \
lowpassfilter.o phraser.o reson.o delay.o array.o arrayfunction.o iallpole.o \
lpcfilter.o formantfilter.o formantsynth.o pitchtracker.o pulsegen.o fftfun.o \
pvocmodifier.o crossfader.o curvegen.o ellipfilt.o phasevocoder.o \
pvanalyzer.o pvsynthesizer.o new.o diskfile.o datafile.o diskstruct.o header.o \
soundheader.o aiff_header.o wavheader.o pvocheader.o cs_pvocheader.o ieee_float.o \
repclone.o datarep.o data.o framedata.o lpcdata.o pchdata.o pvocdata.o \
sound.o fftdata.o envelope.o query.o queryvalue.o query_templates.o request.o \
header_config.o smpte.o compressor.o $(ARCH_OBJS) converter.o $(DAC_OBJS)

ComplexProgramTarget(mxv)

MakeObjectFromSrcFlags(converter, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(conv_config, $(TEMPLATE_OPTIMIZE_CCFLAGS))

XCOMM The following are system-dependent objects

#if defined(SunArchitecture)
MakeObjectFromSrcFlags(conv_device, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(sun_dac, $(OPTIMIZE_CCFLAGS))
#ifdef USE_ADR
MakeObjectFromSrcFlags(adc_dac, $(OPTIMIZE_CCFLAGS))
#endif
#ifdef USE_PROPORT
MakeObjectFromSrcFlags(proport_dac, $(OPTIMIZE_CCFLAGS))
#endif
#endif
#if defined(NeXTArchitecture)
MakeObjectFromSrcFlags(next_dac, $(OPTIMIZE_CCFLAGS))
#endif
#if defined(SGIArchitecture)
MakeObjectFromSrcFlags(sgi_dac, $(OPTIMIZE_CCFLAGS))
#endif
#if defined(LinuxArchitecture)
MakeObjectFromSrcFlags(utils, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(conv_device, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(vw_converter, $(OPTIMIZE_CCFLAGS))
#endif
#if defined(i386SVR3Architecture)
MakeObjectFromSrcFlags(conv_device, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(soundblaster, $(OPTIMIZE_CCFLAGS))
#endif

XCOMM End of system-dependent objects

MakeObjectFromSrcFlags(new, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(smartmem, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(datatype, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(diskstruct, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(ieee_float, $(OPTIMIZE_CCFLAGS))

MakeObjectFromSrcFlags(diskfile, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(datafile, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(header, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(header_config, $(TEMPLATE_OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(soundheader, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(aiff_header, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(wavheader, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(pvocheader, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(cs_pvocheader, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(compressor, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(datarep, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(repclone, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(data, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(envelope, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(framedata, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(fftdata, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(lpcdata, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(pchdata, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(pvocdata, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(sound, $(OPTIMIZE_CCFLAGS))

MakeObjectFromSrcFlags(query, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(queryvalue, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(query_templates, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(request, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(requester, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(formatrequester, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(formantrequester, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(pvocrequester, $(OPTIMIZE_CCFLAGS))

MakeObjectFromSrcFlags(range, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(buffer, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(queue, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(array, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(wavetable, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(windowtable, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(pitchconv, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(configurable, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(modifier, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(datamodifier, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(filecommand, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(editcommand, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(optionsetter, $(TEMPLATE_OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(crossfader, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(pvocmodifier, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(processfun, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(lowpassfilter, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(phraser, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(rescaler, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(reson, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(outputfunction, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(synthfunction, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(curvegen, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(iofunction, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(interpolater, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(combfilter, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(delay, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(pulsegen, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(analysisfun, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(arrayfunction, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(iallpole, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(lpcfilter, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(formantfilter, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(formantsynth, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(pitchtracker, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(fftfun, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(phasevocoder, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(pvanalyzer, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(pvsynthesizer, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(ellipfilt, $(OPTIMIZE_CCFLAGS))

MakeObjectFromSrcFlags(controller, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(edit_menus, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(edit_request, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(editor, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(pvoceditor, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(soundeditor, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(commandlookup, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(format, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(smpte, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(filename, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(application, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(main, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(controller_conv, $(OPTIMIZE_CCFLAGS))

MakeObjectFromSrcFlags(menus, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(scaledarea, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(scale, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(graphplot, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(graph, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(channelgraph, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(framegraph, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(selector, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(rubbertext, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(dataview, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(viewchanger, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(channelview, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(frameview, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(framedwindow, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(comment, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(commenteditor, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(textwindow, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(datawindow, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(statuspanel, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(vmessage, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(version, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(scroller, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(contscroller, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(textinput, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(numberlabel, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(adjtext, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(valueslider, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(buttonarray, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(dialogbox, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(fileselector, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(dialog_ctor, $(OPTIMIZE_CCFLAGS))
MakeObjectFromSrcFlags(testit, $(OPTIMIZE_CCFLAGS))

#if defined(SGIArchitecture) && !HasGcc2

MakeObjectFromSrcFlags(sgi-channelview, $(OPTIMIZE_CCFLAGS))

XCOMM The following targets are for the bare minimum objects needed from libg++
XCOMM in order to link on SGI machines (for users running the native SGI CC)

LIBSRC = $(SRC)/g++lib

MakeObjectRule(error, $(LIBSRC)/error, NullParameter)
MakeObjectRule(regex, $(LIBSRC)/regex, NullParameter)
MakeObjectRule(Regex, $(LIBSRC)/Regex, NullParameter)
MakeObjectRule(String, $(LIBSRC)/String, NullParameter)
MakeObjectRule(Complex, $(LIBSRC)/Complex, NullParameter)

#endif

LIBCFUNS = libcfuns.a
CFUNOBJS = ellipse.o kaiser.o mxfft.o i1mach.o

$(LIBCFUNS): ellipse.o
ellipse.o: $(SRC)/ellipse.c
	@$(RM) ellipse.o
	$(CC) $(FLAGS) -c $(SRC)/ellipse.c	

$(LIBCFUNS): kaiser.o
kaiser.o: $(SRC)/kaiser.c
	@$(RM) kaiser.o
	$(CC) $(FLAGS) -c $(SRC)/kaiser.c	

$(LIBCFUNS): mxfft.o
mxfft.o: $(SRC)/mxfft.c
	@$(RM) mxfft.o
	$(CC) $(FLAGS) -c $(SRC)/mxfft.c	

$(LIBCFUNS): i1mach.o
i1mach.o: $(SRC)/i1mach.c
	@$(RM) i1mach.o
	$(CC) $(FLAGS) -c $(SRC)/i1mach.c	

NormalNonSharedLibraryTarget(cfuns,NullParameter,$(CFUNOBJS))

mxv.pure:	$(OBJS) libcfuns.a
	purify $(PURIFY_OPTIONS) $(CCDRIVER) $(CFLAGS) -o mxv.pure $(OBJS) $(CCLDFLAGS) $(CCLDLIBS)

mxv.pure.purecov:	$(OBJS) libcfuns.a
	purify $(PURIFY_OPTIONS) purecov $(PURECOV_OPTIONS) $(CCDRIVER) $(CFLAGS) -o mxv.pure.purecov $(OBJS) $(CCLDFLAGS) $(CCLDLIBS)

mxv.pho:
	-mv *.o objs
	$(MAKE) CCDRIVER='phog++ echo' CC='phogcc echo'
	-mv objs$(SLASH)*.o .


InstallProgram(mxv,$(DESTDIR)/usr/X11R6/bin,mxv)
clean::
	-rm mxv

#else

MakeInObjectCodeDir()

COMPRESS = gzip
UNCOMPRESS = gunzip

#ifdef USE_ADR
SPECIAL_IMAKEFLAGS=-DIVUseInstalled -DUseInstalled -DUSE_ADR
#endif
#ifdef USE_SPARC
SPECIAL_IMAKEFLAGS=-DIVUseInstalled -DUseInstalled -DUSE_SPARC
#endif
#ifdef USE_PROPORT
SPECIAL_IMAKEFLAGS=-DIVUseInstalled -DUseInstalled -DUSE_PROPORT
#endif

dist:
	tar cvf - Imake* CHANGES README* mxv.doc mxv.bitmap *.[$(CCSUFFIX)ch]  | $(COMPRESS) > dist.tar.gz

uu: dist
	uuencode dist.tar.gz dist.tar.gz > dist.uu
	rm dist.tar.gz

mail: uu
	cat dist.uu | mail -s my_program me
	rm dist.uu

backup: dist
	@cd old; rm -r -f *
	mv dist.tar.gz old

compare:
	-@for file in *.[$(CCSUFFIX)ch]; \
	do \
	(diff -c sparc/$$file $$file); \
	done

fastcomp:
	-@for file in *.[$(CCSUFFIX)ch]; \
	do \
	(cmp sparc/$$file $$file); \
	done

diff:
	@touch diffs.NEW
	@echo '***************' >> diffs.NEW
	@echo `date` >> diffs.NEW
	@echo '***************' >> diffs.NEW
	@cd old; cat dist.tar.gz | $(UNCOMPRESS) | tar xf -
	-@for file in *.[$(CCSUFFIX)ch]; \
		do \
			if [ ! -f old/$$file ]; then \
					(touch old/$$file); \
			fi; \
		done
	-/bin/diff -c -r old . | grep -v "^Only" | grep -v "^Common" >> diffs.NEW
	$(MAKE) backup

newtar:
	tar cvf - `find . \( -name "*.[Cch]" -o -name "I*" -o -name CHANGES \) -a -type f -a -newer .lastnew -print` | $(COMPRESS) > new.tar.gz
	@touch .lastnew

newmail: newtar
	cat new.tar.gz | uuencode new.tar.gz | mail -s 'new.tar.gz.uu' home
	rm new.tar.gz

tags:
	ctags -d *.[$(CCSUFFIX)ch]

copy:
	cp -p Imakefile CHANGES README* mxv.doc mxv.bitmap *.[Cch] sparc



install::
	install -m 644 MiXViews $(DESTDIR)/usr/X11R6/lib/X11/app-defaults



#endif