#
## $Id: Imakefile,v 1.8 2000/05/20 01:51:57 kline Exp kline $  for muuz 
## without specific CC=g++, must use <file>.C or <file>.cc
#


CC=g++
PROGRAMS=muuz  muuzbeats

SRCS1 =  callbacks.c controlpanel.c creativity.c do_colors.c energize.c flashes.c cancelconfirm.c forms.c fun.c errMessage.c do_private.c getDisplayValues.c learning.c meditation.c main.c misc.c muuzmenu.c muuzaudio.c prepcallbacks.c relaxation.c flashForm.c sleep.c select.c prepengine.c userprogram.c mixerControls.c setAudioValues.c version.c

OBJS1 =  callbacks.o controlpanel.o creativity.o do_colors.o energize.o flashes.o cancelconfirm.o forms.o fun.o errMessage.o do_private.o getDisplayValues.o learning.o meditation.o main.o misc.o muuzerror.o muuzmenu.o muuzaudio.o prepcallbacks.o relaxation.o flashForm.o sleep.o select.o prepengine.o userprogram.o mixerControls.o setAudioValues.o version.o

DEPLIBS1 = $(DEPXLIB)

SRCS2 = muuzbeats.c

OBJS2 = muuzbeats.o

DEPLIBS2 = $(DEPXLIB)
PROJECTROOT = /usr/X11R6
DDEFINES = -DTEST -I.
STRIP=-s
DEFINES = $(STRIP) -I.
SYS_LIBRARIES = -L/usr/X11R6/lib -lXaw3d -lXmu -lXt -lXext -lX11 -lSM -lICE
LOCAL_LIBRARIES = -lm
RM=/bin/rm -f


ComplexCplusplusProgramTarget_1(muuz, $(SYS_LIBRARIES),$(LOCAL_LIBRARIES))


#
## set up to build the ancillary target; and below install same (19may2000)
#
muuzbeats: $(OBJS2) $(DEPLIBS2)
	$(RM) $@
	$(CXXLINK) -o $@ $(CXXLDOPTIONS) $(OBJS2)  $(LDLIBS) $(LOCAL_LIBRARIES) $(EXTRA_LOAD_FLAGS)

install:: muuzbeats
	@if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
	$(INSTALL) $(INSTALLFLAGS) $(INSTPGMFLAGS)  muuzbeats $(DESTDIR)$(BINDIR)/muuzbeats






install::
	@grep -v "^#"  helpUserPrep.h > ./helpUserPrep.text
	@grep -v "^#"  helpPrep.h   > ./helpPrep.text
	@grep -v "^#"  helpOverview.h > ./helpOverview.text
	@grep -v "^#"  acknowledgement.h > ./acknowledgement.text
	@grep -v "^#"  aboutMuuz.h > ./aboutMuuz.text
	@cp -pf helpUserPrep.text   $(PROJECTROOT)/share/muuz/helpUserPrep.text
	@cp -pf helpPrep.text       $(PROJECTROOT)/share/muuz/helpPrep.text
	@cp -pf helpOverview.text   $(PROJECTROOT)/share/muuz/helpOverview.text
	@cp -pf acknowledgement.text \
		$(PROJECTROOT)/share/muuz/acknowledgement.text
	@cp -pf aboutMuuz.text       $(PROJECTROOT)/share/muuz/aboutMuuz.text
	@chmod 0444  $(PROJECTROOT)/share/muuz/helpUserPrep.text
	@chmod 0444  $(PROJECTROOT)/share/muuz/helpPrep.text
	@chmod 0444  $(PROJECTROOT)/share/muuz/helpOverview.text
	@chmod 0444  $(PROJECTROOT)/share/muuz/acknowledgement.text
	@chmod 0444  $(PROJECTROOT)/share/muuz/aboutMuuz.text

clean::
	$(RM) ./helpUserPrep.text ./helpPrep.text ./helpOverview.text \
	./acknowledgement.text ./aboutMuuz.text \
	$(OBJS1) $(OBJS2) $(PROGRAMS) 
clobber::
	$(RM) ./helpUserPrep.text ./helpPrep.text ./helpOverview.text \
	./acknowledgement.text ./aboutMuuz.text \
	$(OBJS1) $(OBJS2) $(PROGRAMS) 


