1#
2#   @(#)Makefile.std	7.14 04/04/21
3#
4#   Makefile for cdinfo
5#
6#	cdinfo  - CD Information Management Library
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
30LIBCDINFO=libcdinfo.a
31
32SRCS=	cdinfo_i.c \
33	cdinfo_x.c \
34	hist.c \
35	motd.c
36
37OBJS=	cdinfo_i.o \
38	cdinfo_x.o \
39	hist.o \
40	motd.o
41
42all: $(LIBCDINFO)
43
44$(LIBCDINFO): $(OBJS)
45	$(RM) $@
46	$(AR) $@ $(OBJS)
47	$(RANLIB) $@
48
49Makefile:
50	@echo "	cdinfo_d/Makefile"
51	@$(RM) Makefile
52	@cp Makefile.std Makefile
53
54Makefiles: Makefile
55
56install:
57
58clean:
59	$(RM) *.o *.a core .emacs_* tags TAGS
60
61depend:
62	$(DEPEND) $(DEPENDFLAGS) -- $(DEFINES) $(INCDIRS) $(ARCH) -- $(SRCS)
63
64tags:
65	$(TAGS) -w *.[ch]
66	$(TAGS) -xw *.[ch] > TAGS
67
68