1# 2# @(#)Makefile.std 1.16 03/12/12 3# 4# Makefile for libcddb and libcddbkey 5# 6# libcddb, libcddbkey - CDDB interface library for xmcd/cda 7# 8# NOTE: You should use this only if you don't have imake! 9# 10# Copyright (C) 1993-2004 Ti Kan 11# E-mail: xmcd@amb.org 12# 13# This program is free software; you can redistribute it and/or modify 14# it under the terms of the GNU General Public License as published by 15# the Free Software Foundation; either version 2 of the License, or 16# (at your option) any later version. 17# 18# This program is distributed in the hope that it will be useful, 19# but WITHOUT ANY WARRANTY; without even the implied warranty of 20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21# GNU General Public License for more details. 22# 23# You should have received a copy of the GNU General Public License 24# along with this program; if not, write to the Free Software 25# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 26# 27 28include ../make.inc 29 30LIBCDDB=libcddb.a 31LIBCDDBKEY=libcddbkey.a 32LIBCDDBKEY1=libcddbkey1.a 33LIBCDDBKEY2=libcddbkey2.a 34 35SRCS= control.c \ 36 credit.c \ 37 disc.c \ 38 discs.c \ 39 fcddb.c \ 40 fullname.c \ 41 gen.c \ 42 genre.c \ 43 genrelist.c \ 44 genretree.c \ 45 options.c \ 46 region.c \ 47 regionlist.c \ 48 language.c \ 49 langlist.c \ 50 role.c \ 51 rolelist.c \ 52 roletree.c \ 53 segment.c \ 54 track.c \ 55 url.c \ 56 urllist.c \ 57 urlmanager.c \ 58 userinfo.c \ 59 cddbkey1.c 60 61OBJS= control.o \ 62 credit.o \ 63 disc.o \ 64 discs.o \ 65 fcddb.o \ 66 fullname.o \ 67 gen.o \ 68 genre.o \ 69 genrelist.o \ 70 genretree.o \ 71 options.o \ 72 region.o \ 73 regionlist.o \ 74 language.o \ 75 langlist.o \ 76 role.o \ 77 rolelist.o \ 78 roletree.o \ 79 segment.o \ 80 track.o \ 81 url.o \ 82 urllist.o \ 83 urlmanager.o \ 84 userinfo.o 85 86KOBJ= cddbkey1.o 87 88 89all: $(LIBCDDB) $(LIBCDDBKEY1) $(LIBCDDBKEY) 90 91$(LIBCDDB): $(OBJS) 92 $(RM) $@ 93 $(AR) $@ $(OBJS) 94 $(RANLIB) $@ 95 96$(LIBCDDBKEY1): $(KOBJ) 97 $(RM) $@ 98 $(AR) $@ $(KOBJ) 99 $(RANLIB) $@ 100 101$(LIBCDDBKEY2): cddbkey2.o 102 $(RM) $@ 103 $(AR) $@ cddbkey2.o 104 $(RANLIB) $@ 105 106$(LIBCDDBKEY): 107 @$(RM) $@ 108 @if [ -f $(LIBCDDBKEY2) ]; \ 109 then $(LN) $(LIBCDDBKEY2) $@; \ 110 else $(LN) $(LIBCDDBKEY1) $@; \ 111 fi 112 113Makefile: 114 @echo " cddb_d/Makefile" 115 @$(RM) Makefile 116 @cp Makefile.std Makefile 117 118Makefiles: Makefile 119 120install: 121 122clean: 123 $(RM) *.o *.a core .emacs_* tags TAGS 124 125depend: 126 $(DEPEND) $(DEPENDFLAGS) -- $(DEFINES) $(INCDIRS) $(ARCH) -- $(SRCS) 127 128tags: 129 $(TAGS) -w *.[ch] 130 $(TAGS) -xw *.[ch] > TAGS 131 132