1#
2#   @(#)Makefile.std	6.39 04/03/05
3#
4#   Makefile for cda
5#
6#	cda - Command-line CD Audio Player/Ripper
7#
8#   NOTE: You should use this only if you don't have imake!
9#
10#   Copyright (C) 1993-1999  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
30PROG=	cda
31
32SRCS=	cda.c \
33	userreg.c \
34	visual.c
35
36OBJS=	cda.o \
37	userreg.o \
38	visual.o \
39	../cdinfo_d/libcdinfo.a \
40	../cddb_d/libcddbkey.a \
41	../libdi_d/libdi.a \
42	../cdda_d/libcdda.a \
43	../common_d/libutil.a
44
45all: $(PROG)
46
47$(PROG): $(OBJS)
48	$(CC) -o $@ $(OBJS) $(CURSESLIB) $(SOCKETLIB) $(CDDBLIB) \
49		$(ENCLIBS) $(AUDIOLIB) $(MATHLIB) $(PTHREADLIB)
50
51Makefile:
52	@echo "	cda_d/Makefile"
53	@$(RM) Makefile
54	@cp Makefile.std Makefile
55
56Makefiles: Makefile
57
58install:
59
60clean:
61	$(RM) $(PROG) *.o *.a core .emacs_* tags TAGS
62
63depend:
64	$(DEPEND) $(DEPENDFLAGS) -- $(DEFINES) $(INCDIRS) $(ARCH) -- $(SRCS)
65
66tags:
67	$(TAGS) -w *.[ch]
68	$(TAGS) -xw *.[ch] > TAGS
69
70