1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 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 72 73 74 75
|
CXXFLAGS=@CXXFLAGS@ -Wall @DEFS@
#comment this if you are using readline >= 4.0
#I can't come up with an easy configure.in test for this.. blah. oh well, it
#doesn't seem to hurt anything if its defined even with the new readline
CXXFLAGS+=-DOLD_READLINE
CXX=@CXX@
LIBS=@LIBS@
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
mandir=@mandir@
install=@INSTALL@
# Edited for Debian - support DEB_BUILD_OPTIONS
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_OPTS=-s
else
INSTALL_OPTS=
endif
DESTDIR=
all: id3ed
OBJS=id3ed.o misc.o
id3ed: $(OBJS) .depend
$(CXX) $(CXXFLAGS) $(OBJS) -o $@ $(LIBS)
dep depend .depend:
$(CXX) -MM *.cc > .depend
# Edited for Debian - support DEB_BUILD_OPTIONS
install: all
$(install) $(INSTALL_OPTS) -m 0755 id3ed $(DESTDIR)$(bindir)
$(install) -m 0644 id3ed.1 $(DESTDIR)$(mandir)/man1
uninstall:
-rm $(DESTDIR)$(bindir)/id3ed
-rm $(DESTDIR)$(mandir)/man1/id3ed.1
configure: configure.in acconfig.h
autoheader
autoconf
Makefile: Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck
#VER=`pwd | sed "s/-\([0-9.]\+\)$/\1/"`
#SDIR=id3ed-$(VER)/
#dist:
# cd ..;tar -czhf distro/id3ed-$(VER).tar.gz $(SDIR)README $(SDIR)Changelog $(SDIR)COPYING $(SDIR)*.cc $(SDIR)*.h $(SDIR)Makefile $(SDIR)id3ed.1
clean:
-rm id3ed *.o
distclean: clean
-rm config.status *~ config.h config.cache config.log Makefile .depend .\#*
-touch .depend
#ifeq (.depend,$(wildcard .depend))
include .depend
#endif
.PHONY: clean distclean dep depend all install
|