#ifndef XCOMM
#define XCOMM #
#endif
XCOMM Imakefile for xmixer
XCOMM
XCOMM remove comment chars if you have a local template for
XCOMM individual settings, e.g. other pathes etc..
XCOMM
#include <Local.tmpl>
XCOMM

/* #define NoPrototypes */

#ifdef NoPrototypes
DEF_NOP = -DNeedFunctionPrototypes=0 -DNeedVarargsPrototypes=0
#endif

#ifdef LinuxArchitecture
OPTS = -Wall -posix -ansi -DOSS # -DDEBUG -g
LOCAL_LDFLAGS = -s
#endif
 
CCOPTIONS = $(OPTS) $(DEF_NOP) -I. -DDEFAULT_MIXER=\"/dev/mixer\" \
	-DVERSION=\"0.9\"

DEPENDFLAGS = -IXw/ -I. -Iicons/

#ifdef SGIArchitecture
LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) -L./Xw -lXw
#else
LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) -L./Xw -lXw
#endif

SUBDIRS = Xw
#define PassCDebugFlags "CDEBUGFLAGS=$(CDEBUGFLAGS) $(OPTS)"
DEPLIBS = Xw/libXw.a

SRCS =	main.c gui_xaw.c chglbl.c mixer.c scf.c
OBJS =	main.o gui_xaw.o chglbl.o mixer.o scf.o

MakeSubdirs($(SUBDIRS))
CleanSubdirs($(SUBDIRS))
ComplexProgramTarget(xmixer)

fallback.h: XMixer.ad
	mkfb.pl < XMixer.ad > fallback.h

README: index.html
	lynx -dump http://www/~rasca/xmixer/index.html | \
		sed "s%/www/%/home.pages.de/%" > README

bin:
	gzip xmixer

tarball:
	rm -f Makefile && cd .. && tar -chzvf xmixer-0.9.3.tar.gz xmixer/

xmixer.html: xmixer.man
	groff -Tlatin1 -man xmixer.man | ~/bin/man2html > xmixer.html

test: xmixer
	./xmixer

