# Generated automatically from Makefile.in by configure.
SHELL = /bin/sh

subdirs = @subdirs@
top_srcdir = .
srcdir = .
prefix = /usr/local
exec_prefix = ${prefix}
bindir = $(exec_prefix)/bin
infodir = $(prefix)/info
libdir = $(prefix)/lib/gnudl
mandir = $(prefix)/man/man1

CC = gcc
CPPFLAGS = 
CFLAGS = $(CPPFLAGS) -g -O2 -I/usr/X11R6/include -I/usr/lib/glib/include
LDFLAGS = 
LIBS =  -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm
INSTALL = /usr/bin/install -c

GTK_CONFIG = /usr/bin/gtk-config

all:
	make plugins
	make ripperX

ripperX: misc_utils.o dir_window_handler.o config_rw.o err_dialog_handler.o ripper_encoder_manipulation.o players_manipulation.o job_control.o config_window_handler.o select_frame_handler.o status_frame_handler.o cddbp.o cddb.o misc.o main_window_handler.o main.o
	$(CC) -o ripperX misc_utils.o dir_window_handler.o config_rw.o err_dialog_handler.o ripper_encoder_manipulation.o players_manipulation.o job_control.o config_window_handler.o select_frame_handler.o status_frame_handler.o cddbp.o cddb.o misc.o main_window_handler.o main.o  `$(GTK_CONFIG) --cflags` `$(GTK_CONFIG) --libs`

misc_utils.o: common.h misc_utils.h misc_utils.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c misc_utils.c

err_dialog_handler.o: common.h interface_common.h err_dialog_handler.h err_dialog_handler.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c err_dialog_handler.c

dir_window_handler.o: dir_window_handler.h dir_window_handler.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c dir_window_handler.c

config_rw.o: config_rw.h config_rw.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c config_rw.c

ripper_encoder_manipulation.o: common.h ripper_encoder_manipulation.h ripper_encoder_manipulation.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c ripper_encoder_manipulation.c

players_manipulation.o: common.h players_manipulation.h players_manipulation.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c players_manipulation.c 

job_control.o: common.h job_control.h job_control.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c job_control.c

config_window_handler.o: common.h interface_common.h config_window_handler.h config_window_handler.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c config_window_handler.c

select_frame_handler.o: common.h interface_common.h select_frame_handler.h select_frame_handler.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c select_frame_handler.c

status_frame_handler.o: common.h interface_common.h status_frame_handler.h status_frame_handler.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c status_frame_handler.c

cddb.o: cddb.h cddbp.h misc.h cddb.c cddbp.c misc.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c cddb.c
	
cddbp.o: cddbp.h cddbp.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c cddbp.c

misc.o: misc.h misc.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c misc.c
	
main_window_handler.o: common.h interface_common.h main_window_handler.h main_window_handler.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c main_window_handler.c

main.o: common.h main.h main.c
	$(CC) `$(GTK_CONFIG) --cflags` -Wall -Wstrict-prototypes -c main.c


plugins: ripperX_plugin_tester ripperX_plugin-cdparanoia ripperX_plugin-8hz-mp3 ripperX_plugin-encode

ripperX_plugin_tester: ripperX_plugin_tester.c
	$(CC) -o ripperX_plugin_tester ripperX_plugin_tester.c

ripperX_plugin-cdparanoia: ripperX_plugin-cdparanoia.c
	$(CC) -o ripperX_plugin-cdparanoia ripperX_plugin-cdparanoia.c

ripperX_plugin-8hz-mp3: ripperX_plugin-8hz-mp3.c
	$(CC) -o ripperX_plugin-8hz-mp3 ripperX_plugin-8hz-mp3.c

ripperX_plugin-encode: ripperX_plugin-encode.c
	$(CC) -o ripperX_plugin-encode ripperX_plugin-encode.c


install:
	$(top_srcdir)/mkinstalldirs $(bindir)
	$(INSTALL) ripperX $(bindir)
	$(INSTALL) ripperX_plugin-cdparanoia $(bindir)
	$(INSTALL) ripperX_plugin-8hz-mp3 $(bindir)
	$(INSTALL) ripperX_plugin-encode $(bindir)

uninstall:
	rm -f $(bindir)/ripperX*

clean:
	rm -f *.o
	rm -f ripperX
	rm -f ripperX_plugin-cdparanoia
	rm -f ripperX_plugin-8hz-mp3
	rm -f ripperX_plugin-encode
	rm -f ripperX_plugin_tester

distclean:
	rm -f Makefile config.h config.status config.cache config.log
