1#
2# @(#)descrip.mms	1.8 03/12/12
3ident=descrip.mms	1.8 03/12/12
4#
5# Top-level OpenVMS MMS "Makefile" for xmcd, labelh, libdi, cdinfo,
6# cdda, cddb and util
7#
8#	xmcd   - Motif(R) CD Audio Player/Ripper
9#	labelh - LabelHack widget
10#	libdi  - CD Audio Device Interface Library
11#	cdinfo - CD Information Management Library
12#	cdda   - CD Digital Audio Support
13#	cddb   - Classic CDDB Interface Library
14#	util   - Utility functions
15#
16#   Contributing author: Hartmut Becker
17#   Copyright (C) 1993-2004  Ti Kan
18#   E-mail: xmcd@amb.org
19#
20#
21# Just type 'MMS', the makefile traverses into each subdirectory
22# and uses local descrip.mms files to build xmcd.
23#
24# To make a quick debug versions, just set symbols for cc and link, like
25#	$ cc:=cc/deb
26#	$ link:=link/debug
27# To do real debugging remove the "/opt..." from the MMS files and
28# set $ cc:=cc/deb/noopt or edit the MMS files for those modules you want to
29# debug.
30#
31# The supplied MAKEVMS.COM is generated by this makefile.
32# If one of the descrip.mms changes, please generate a new COM file
33# with
34#	mms makevms
35#
36# The MAKEVMS.COM can be used to build xmcd by users who do not have MMS.
37#
38#
39#   This program is free software; you can redistribute it and/or modify
40#   it under the terms of the GNU General Public License as published by
41#   the Free Software Foundation; either version 2 of the License, or
42#   (at your option) any later version.
43#
44#   This program is distributed in the hope that it will be useful,
45#   but WITHOUT ANY WARRANTY; without even the implied warranty of
46#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47#   GNU General Public License for more details.
48#
49#   You should have received a copy of the GNU General Public License
50#   along with this program; if not, write to the Free Software
51#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
52#
53
54.ifdef	mms
55.else
56mms= mms
57.endif
58
59all :
60	$! $(makevms)$(ident)$(now)
61	set def [.common_d]
62	@ $(mms)
63	set def [-.cdda_d]
64	@ $(mms)
65	set def [-.libdi_d]
66	@ $(mms)
67	set def [-.cddb_d]
68	@ $(mms)
69	set def [-.cdinfo_d]
70	@ $(mms)
71	set def [-.labelh_d]
72	@ $(mms)
73	set def [-.xmcd_d]
74	@ $(mms)
75	set def [-]
76
77makevms :
78	@ $(mms)/macro=(mms="mms/noaction/from/out",now=", at ''f$time()'",$@="$@.COM, generated from ")-
79		/out=$@.com all
80
81clean :
82	purge [...]
83	- del [.*]*.obj;
84	- del [.*]*.olb;
85	- del [.xmcd_d]*.opt;
86
87clobber : clean
88	- del [.xmcd_d]*.exe;
89	- del [.xmcd_d]*.map;
90	- del makevms.com;
91