/* 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/mann

/* 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     */

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

SRCS1=	xplay.c widget.c recplay.c play.h xplay.h 
OBJS1=	xplay.o widget.o recplay.o 

SRCS2=  play.c recplay.c play.h
OBJS2=  play.o recplay.o

PROGRAMS = xplay play

XAW3DLIB = -lXaw3d

all::  $(PROGRAMS)

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

NormalProgramTarget(xplay,$(OBJS1),,$(LOCAL_LIBRARIES),)
NormalProgramTarget(play,$(OBJS2),,,)

InstallProgram(xplay,$(XLOCALBIN))
InstallProgram(play,$(LOCALBIN))

InstallManPage(xplay,$(MANDIR))
InstallManPage(play,$(MANDIR))

clear::
	$(RM) $(PROGRAMS)

install::     
	ln -fs $(LOCALBIN)/play $(LOCALBIN)/record
install.man:: 
	ln -fs $(MANDIR)/play.n $(MANDIR)/record.n

InstallAppDefaults(XPlay)
