"Fossies" - the Fresh Open Source Software Archive

Member "mp3info-0.8.5a/Makefile" (10 Nov 2006, 2355 Bytes) of package /linux/misc/old/mp3info-0.8.5a.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #   Makefile for MP3Info and GMP3Info
    2 #
    3 #   Copyright (C) 2000-2006 Cedric Tefft <cedric@phreaker.net>
    4 #
    5 #   This program is free software; you can redistribute it and/or modify
    6 #   it under the terms of the GNU General Public License as published by
    7 #   the Free Software Foundation; either version 2 of the License, or
    8 #   (at your option) any later version.
    9 #
   10 #   This program is distributed in the hope that it will be useful,
   11 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
   12 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13 #   GNU General Public License for more details.
   14 #
   15 #   You should have received a copy of the GNU General Public License
   16 #   along with this program; if not, write to the Free Software
   17 #   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   18 #
   19 # ***************************************************************************
   20 #
   21 #  This program is based in part on:
   22 #
   23 #	* MP3Info 0.5 by Ricardo Cerqueira <rmc@rccn.net>
   24 #	* MP3Stat 0.9 by Ed Sweetman <safemode@voicenet.com> and 
   25 #			 Johannes Overmann <overmann@iname.com>
   26 #
   27 
   28 # bindir = where binaries get installed (default = /usr/local/bin)
   29 # mandir = where the manual page gets installed (default = /usr/local/man/man1)
   30 
   31 prefix=/usr/local
   32 bindir=${prefix}/bin
   33 mandir = $(prefix)/man/man1
   34 
   35 # No changes necessary below this line
   36 
   37 PROG =	mp3info
   38 SRCS =	mp3info.c textfunc.c mp3curs.c mp3tech.c
   39 OBJS =  mp3info.o textfunc.o mp3curs.o mp3tech.o
   40 XSRC =	gmp3info.c
   41 XOBJ =  mp3tech.o
   42 RM = /bin/rm
   43 INSTALL = /usr/bin/install -c
   44 STRIP = strip
   45 
   46 LIBS = -lncurses
   47 CC = gcc
   48 CFLAGS = -g -O2 -Wall
   49 
   50 all: mp3info gmp3info doc
   51 
   52 doc: mp3info.txt
   53 
   54 mp3info: $(OBJS)
   55 	$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
   56 
   57 gmp3info: $(XSRC) $(XOBJ) 
   58 	$(CC) $(XSRC) $(CFLAGS) -o $@ $(XOBJ) `pkg-config --cflags --libs gtk+-2.0`
   59 
   60 mp3info.txt: mp3info.1
   61 	groff -t -e -mandoc -Tascii mp3info.1 | col -bx > mp3info.txt
   62 
   63 clean: 
   64 	$(RM) -f $(OBJS) $(XOBJ) mp3info gmp3info core
   65 
   66 dist: clean doc
   67 
   68 distclean: clean
   69 	$(RM) -f mp3info.txt
   70 
   71 install-mp3info: mp3info
   72 	$(STRIP) mp3info
   73 	$(INSTALL) mp3info $(bindir)/mp3info
   74 	$(INSTALL) mp3info.1 $(mandir)/mp3info.1
   75 
   76 install-gmp3info: gmp3info
   77 	$(STRIP) gmp3info
   78 	$(INSTALL) gmp3info $(bindir)/gmp3info
   79 
   80 install: install-mp3info install-gmp3info
   81 
   82 
   83 uninstall:
   84 	rm -f $(bindir)/mp3info
   85 	rm -f $(bindir)/gmp3info
   86 	rm -f $(mandir)/mp3info.1
   87