/*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

/*
CC=/usr/bin/gcc
CC=/usr/bin/gcc-4.0
CC=/usr/local/bin/gcc
*/

#define USE_FFTW2

/* Where to install X-programs? */
XLOCALBIN = /usr/X11R6/bin

/* where to install normal programs */
LOCALBIN = /usr/local/bin

/* Where to install the X man pages? */
XMANDIR = /usr/X11R6/man/man1

/* where to install the normal man pages */
MANDIR = /usr/man/man1

/* where to install the icon */
XICONDIR = /usr/X11R6/include/X11/pixmaps

SRCS1=\
internet.c \
fft.c \
equalizer.c \
audio.c \
idle_cb.c \
xpequ.c \
xpequ_cb.c \
xpequ_main.c \
various.c \
settings.c \
serial.c \
colors.c

OBJS1=\
internet.o \
fft.o \
equalizer.o \
audio.o \
idle_cb.o \
xpequ.o \
xpequ_cb.o \
xpequ_main.o \
various.o \
settings.o \
serial.o \
colors.o


# dependencies
internet.o : internet.c xpequ.h xpequ_proto.h
fft.o : fft.c fft.h audio.h wave_header.h xpequ.h xpequ_proto.h 
equalizer.o : equalizer.c audio.h wave_header.h xpequ.h xpequ_proto.h
audio.o : audio.c audio.h wave_header.h xpequ.h xpequ_proto.h
idle_cb.o : idle_cb.c wave_header.h xpequ.h xpequ_proto.h
xpequ.o: xpequ.c wave_header.h xpequ.h xpequ_proto.h
xpequ_cb.o: xpequ_cb.c wave_header.h xpequ.h xpequ_proto.h
xpequ_main.o: xpequ_main.c wave_header.h xpequ.h xpequ_proto.h
settings.o : settings.c wave_header.h xpequ.h xpequ_proto.h
various.o : various.c wave_header.h xpequ.h xpequ_proto.h
serial.o : serial.c  xpequ.h xpequ_proto.h
colors.o : colors.c xpequ.h xpequ_proto.h

PROGRAMS = xpequ

all::  $(PROGRAMS)

XLOCAL_LIBRARIES = -lforms -lm $(XLIB) -lpthread -lasound

LOCAL_LIBRARIES =
CCOPTIONS = -O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

NormalProgramTarget(xpequ, $(OBJS1), , $(XLOCAL_LIBRARIES), )

install:: 
	InstallProgram(xpequ, $(XLOCALBIN))

install.man::
	InstallManPage(xpequ, $(XMANDIR))

clear::
	rm *.o
#	$(RM) $(PROGRAMS)
