1#
2#   @(#)Makefile.std	7.23 03/12/12
3#
4#   Top-level Makefile for xmcd, cda, labelh, libdi, cdinfo, cdda and cddb
5#
6#	xmcd   - Motif(R) CD Audio Player/Ripper
7#	cda    - Command-line CD Audio Player/Ripper
8#	labelh - LabelHack widget
9#	libdi  - CD Audio Device Interface Library
10#	cdinfo - CD Information Management Library
11#	cdda   - CD Digital Audio Support
12#	cddb   - Classic CDDB Interface Library
13#
14#   NOTE: You should use this only if you don't have imake!
15#
16#   Copyright (C) 1993-2004  Ti Kan
17#   E-mail: xmcd@amb.org
18#
19#   This program is free software; you can redistribute it and/or modify
20#   it under the terms of the GNU General Public License as published by
21#   the Free Software Foundation; either version 2 of the License, or
22#   (at your option) any later version.
23#
24#   This program is distributed in the hope that it will be useful,
25#   but WITHOUT ANY WARRANTY; without even the implied warranty of
26#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27#   GNU General Public License for more details.
28#
29#   You should have received a copy of the GNU General Public License
30#   along with this program; if not, write to the Free Software
31#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32#
33
34include make.inc
35
36SUBDIRS=common_d \
37	cdda_d \
38	libdi_d \
39	cddb_d \
40	cdinfo_d \
41	labelh_d \
42	xmcd_d \
43	cda_d \
44	util_d
45
46all depend tags clean:
47	@for i in $(SUBDIRS) ;\
48	do \
49		(cd $$i; $(MAKE) $(MFLAGS) $@) ;\
50	done
51
52Makefile:
53	@echo "	Makefile"
54	@$(RM) Makefile
55	@cp Makefile.std Makefile
56
57Makefiles: Makefile
58	@for i in $(SUBDIRS) ;\
59	do \
60		(cd $$i; $(MAKE) $(MFLAGS) -f Makefile.std $@) ;\
61	done
62
63install:
64	@BINDIR=$(BINDIR) LIBDIR=$(LIBDIR) MANFILE=$(MANDIR)/xmcd$(MANSUF) $(SHELL) ./install.sh -n
65
66
67