Makefile.in 1.51 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
SHELL = /bin/sh
VPATH = @srcdir@

srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
infodir = @infodir@
libdir = @libdir@
mandir = @mandir@

CC = @CC@
CFLAGS = @CFLAGS@
14
LDFLAGS = @LDFLAGS@ @LIBS@ -lutil -lid3 -lz
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
INSTALL = @INSTALL@

CFILES = main.c\
	err_dialog_handler.c\
	config_rw.c\
	ripper_encoder_manipulation.c\
	players_manipulation.c\
	job_control.c\
	main_window_handler.c\
	dir_window_handler.c\
	config_window_handler.c\
	select_frame_handler.c\
	status_frame_handler.c\
	cddbp.c\
	cddb.c\
	id3.c\
31
	id3lib.c\
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
	misc_utils.c\

OFILES  = $(patsubst %.c,%.o,$(CFILES))

all: ripperX

ripperX: $(OFILES)
	$(CC) $(LDFLAGS) $(OFILES) -o ripperX

.c.o:
	$(CC) $(CFLAGS) -c $<

install:
	../mkinstalldirs $(bindir)
	$(INSTALL) ripperX $(bindir)

uninstall:
	rm -f $(bindir)/ripperX

clean:
	rm -f $(OFILES)
	rm -f ripperX
	rm -f core

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

depend:
	sed -e '/^# DO NOT DELETE THIS LINE/,$$d' Makefile > Makefile.tmp
	echo '# DO NOT DELETE THIS LINE - make depend uses it' >> Makefile.tmp
	echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile.tmp
	$(CC) $(CFLAGS) -M $(CFILES) >> Makefile.tmp
	echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile.tmp
	echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile.tmp
	echo '# see make depend above' >> Makefile.tmp
	mv -f Makefile.tmp Makefile

#----------------------------------------------------------
# DO NOT DELETE THIS LINE - make depend uses it
# DEPENDENCIES MUST END AT END OF FILE