1CXXFLAGS=@CXXFLAGS@ -Wall @DEFS@ 2 3 4#comment this if you are using readline >= 4.0 5#I can't come up with an easy configure.in test for this.. blah. oh well, it 6#doesn't seem to hurt anything if its defined even with the new readline 7CXXFLAGS+=-DOLD_READLINE 8 9CXX=@CXX@ 10LIBS=@LIBS@ 11 12prefix=@prefix@ 13exec_prefix=@exec_prefix@ 14bindir=@bindir@ 15mandir=@mandir@ 16install=@INSTALL@ 17 18DESTDIR= 19 20all: id3ed 21 22OBJS=id3ed.o misc.o 23 24id3ed: $(OBJS) .depend 25 $(CXX) $(CXXFLAGS) $(OBJS) -o $@ $(LIBS) 26 27dep depend .depend: 28 $(CXX) -MM *.cc > .depend 29 30install: all 31 $(install) -s -m 0755 id3ed $(DESTDIR)$(bindir) 32 $(install) -m 0644 id3ed.1 $(DESTDIR)$(mandir)/man1 33 34uninstall: 35 -rm $(DESTDIR)$(bindir)/id3ed 36 -rm $(DESTDIR)$(mandir)/man1/id3ed.1 37 38configure: configure.in acconfig.h 39 autoheader 40 autoconf 41 42Makefile: Makefile.in config.status 43 ./config.status 44 45config.status: configure 46 ./config.status --recheck 47 48 49 50#VER=`pwd | sed "s/-\([0-9.]\+\)$/\1/"` 51#SDIR=id3ed-$(VER)/ 52#dist: 53# cd ..;tar -czhf distro/id3ed-$(VER).tar.gz $(SDIR)README $(SDIR)Changelog $(SDIR)COPYING $(SDIR)*.cc $(SDIR)*.h $(SDIR)Makefile $(SDIR)id3ed.1 54 55 56clean: 57 -rm id3ed *.o 58 59distclean: clean 60 -rm config.status *~ config.h config.cache config.log Makefile .depend .\#* 61 -touch .depend 62 63 64#ifeq (.depend,$(wildcard .depend)) 65include .depend 66#endif 67 68.PHONY: clean distclean dep depend all install 69