# # oldmake makefile generated by mamold # #
# oldmake ... null='' sharp='$(null)#' newline='$(null)
# '
newline=;
LEX=lex
CC=gcc
MAKE=nmake
LD=ld
CPP=$(CC) -E
YACC=yacc
PR=pr
CCFLAGS=-O
YACCFLAGS=-d
F77=f77
ARFLAGS=cr
LPR=lpr
AR=ar
TAR=tar
AS=as
CPIO=cpio

all : sysdecls.h syscap.h
	echo ./include OK.

sysdecls.h : config.stamp

config.stamp : ../scripts/checkhasdecl ../scripts/checkdefined \
		../scripts/declare ../scripts/checkheader \
		../scripts/checklibs ../SysConfig ../Configuration
	( cd ..; sh ./SysConfig; )$(newline) \
	touch config.stamp

syscap.h : config.stamp

install : all $(INSTALLROOT)/include $(INSTALLROOT)/include/defaults.h \
		$(INSTALLROOT)/include/sampfile.h \
		$(INSTALLROOT)/include/debug.h \
		$(INSTALLROOT)/include/netaudio.h \
		$(INSTALLROOT)/include/datlink.h \
		$(INSTALLROOT)/include/pmacro.h \
		$(INSTALLROOT)/include/dat_errno.h \
		$(INSTALLROOT)/include/dat_remote.h \
		$(INSTALLROOT)/include/dat_types.h \
		$(INSTALLROOT)/include/support.h \
		$(INSTALLROOT)/include/pgm.h \
		$(INSTALLROOT)/include/pgmspecs.h \
		$(INSTALLROOT)/include/dsp_mode.h \
		$(INSTALLROOT)/include/sysdefs.h \
		$(INSTALLROOT)/include/siomode.h \
		$(INSTALLROOT)/include/syscap.h \
		$(INSTALLROOT)/include/sysdecls.h

$(INSTALLROOT)/include :
	if	 test ! -d $(INSTALLROOT)/include$(newline) \
	then	rm -rf $(INSTALLROOT)/include && mkdir $(INSTALLROOT)/include \
	||  true$(newline) \
	fi

$(INSTALLROOT)/include/defaults.h : defaults.h
	{ cp defaults.h $(INSTALLROOT)/include/defaults.h 2>/dev/null   \
	;} || true

$(INSTALLROOT)/include/sampfile.h : sampfile.h
	{ cp sampfile.h $(INSTALLROOT)/include/sampfile.h 2>/dev/null   \
	;} || true

$(INSTALLROOT)/include/debug.h : debug.h
	{ cp debug.h $(INSTALLROOT)/include/debug.h 2>/dev/null  		     \
	;} || true

$(INSTALLROOT)/include/netaudio.h : netaudio.h
	{ cp netaudio.h $(INSTALLROOT)/include/netaudio.h 2>/dev/null   \
	;} || true

$(INSTALLROOT)/include/datlink.h : datlink.h
	{ cp datlink.h $(INSTALLROOT)/include/datlink.h 2>/dev/null  		 \
	;} || true

$(INSTALLROOT)/include/pmacro.h : pmacro.h
	{ cp pmacro.h $(INSTALLROOT)/include/pmacro.h 2>/dev/null  		   \
	;} || true

$(INSTALLROOT)/include/dat_errno.h : dat_errno.h
	{ cp dat_errno.h $(INSTALLROOT)/include/dat_errno.h 2>/dev/null \
	;} || true

$(INSTALLROOT)/include/dat_remote.h : dat_remote.h
	{ cp dat_remote.h $(INSTALLROOT)/include/dat_remote.h 2>/dev/null \
	;} || true

$(INSTALLROOT)/include/dat_types.h : dat_types.h
	{ cp dat_types.h $(INSTALLROOT)/include/dat_types.h 2>/dev/null \
	;} || true

$(INSTALLROOT)/include/support.h : support.h
	{ cp support.h $(INSTALLROOT)/include/support.h 2>/dev/null  		 \
	;} || true

$(INSTALLROOT)/include/pgm.h : pgm.h
	{ cp pgm.h $(INSTALLROOT)/include/pgm.h 2>/dev/null  		    		   \
	;} || true

$(INSTALLROOT)/include/pgmspecs.h : pgmspecs.h
	{ cp pgmspecs.h $(INSTALLROOT)/include/pgmspecs.h 2>/dev/null   \
	;} || true

$(INSTALLROOT)/include/dsp_mode.h : dsp_mode.h
	{ cp dsp_mode.h $(INSTALLROOT)/include/dsp_mode.h 2>/dev/null   \
	;} || true

$(INSTALLROOT)/include/sysdefs.h : sysdefs.h
	{ cp sysdefs.h $(INSTALLROOT)/include/sysdefs.h 2>/dev/null  		 \
	;} || true

$(INSTALLROOT)/include/siomode.h : siomode.h
	{ cp siomode.h $(INSTALLROOT)/include/siomode.h 2>/dev/null  		 \
	;} || true

$(INSTALLROOT)/include/syscap.h : syscap.h
	{ cp syscap.h $(INSTALLROOT)/include/syscap.h 2>/dev/null  		   \
	;} || true

$(INSTALLROOT)/include/sysdecls.h : sysdecls.h
	{ cp sysdecls.h $(INSTALLROOT)/include/sysdecls.h 2>/dev/null   \
	;} || true

clean :
	rm -rf config.stamp
