#include "../Config"

NAME = ascd

#ifdef MIXER
MIXERFLAGS = '-DDEFAULTMIXERDEVICE=$(MIXERDEVICE)' -DMIXER
#else
MIXERFLAGS = 
#endif

MOREFLAGS= -I/usr/local/include -I/usr/X11R6/include -L/usr/local/lib

CCOPTIONS = -Wall $(MOREFLAGS) $(MIXERFLAGS) $(DRIVER_OPTIONS) \
'-DVERSION=$(VERSION)' \
'-DDEFAULTDEVICE=$(CDDEVICE)' \
'-DDEFAULT_COLOR=$(FOREGROUND_LED)' \
'-DDEFAULT_BGCOLOR=$(BACKGROUND_LED)' \
'-DDEFAULT_MCOLOR=$(MFOREGROUND_LED)' \
'-DDEFAULT_MBGCOLOR=$(MBACKGROUND_LED)'

LOCAL_LIBRARIES = $(XLIB) -lXpm -L../lib -lworkman
DEPLIBS = $(DEPXLIB) ../lib/libworkman.a

SRCS = cdcontrol.c ascd.c
OBJS = cdcontrol.o ascd.o

AllTarget($(NAME))
NormalProgramTarget($(NAME),$(OBJS),NullParameter,$(LOCAL_LIBRARIES),NullParameter)
InstallProgram($(NAME),$(BINDIR))
InstallManPage($(NAME),$(MANDIR))
