/* Where to install the normal programs? */
LOCALBIN = /usr/local/bin

/* Where to install X-Prgrams? */
XLOCALBIN = /usr/bin/X11

/* Where to install the man pages? */
MANDIR = /usr/man/man1

/* Uncomment the following if you want to build without the Xaw3d-Libraries */
/* Note that you have to edit the source files to to change the include	    */
/* paths from Xaw3d to Xaw in source file xplay.h!!			    */
/* #define NOT_THREED */

/* Uncomment the following three lines if you want to debug the programs */
/* CC = gcc -fwritable-strings  
 CDEBUGFLAGS = -g           
 #define PassCDebugFlags    
*/
CCFLAGS = -Aa

/*----------------- no changes needed below this line ----------------------*/

SRCS1=	xplay.c widget.c recplay.c effects.c edit.c synth.c play.h xplay.h 
OBJS1=	xplay.o widget.o recplay.o effects.o edit.o synth.o 

PROGRAMS = xwave 

XAW3DLIB = -lXaw3d

MATHLIB = -lm

all::  $(PROGRAMS) 

#ifdef NOT_THREED
LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) $(MATHLIB)
#else
LOCAL_LIBRARIES = $(XAW3DLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) $(MATHLIB)
#endif

NormalProgramTarget(xwave,$(OBJS1),,$(LOCAL_LIBRARIES),)

InstallProgram(xwave,$(XLOCALBIN))

InstallManPage(xwave,$(MANDIR))

clear::
	$(RM) $(PROGRAMS)

install::     
	ln -fs $(LOCALBIN)/play $(LOCALBIN)/record
install.man:: 
	ln -fs $(MANDIR)/play.n $(MANDIR)/record.n ;\
        cp xplay.man $(MANDIR)/xplay.1 

InstallAppDefaults(XPlay)
