1#ident @(#)Makefile	1.48 19/08/11
2###########################################################################
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License version 2
5# as published by the Free Software Foundation.
6#
7# This program is distributed in the hope that it will be useful,
8# but WITHOUT ANY WARRANTY; without even the implied warranty of
9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10# GNU General Public License for more details.
11#
12# You should have received a copy of the GNU General Public License along with
13# this program; see the file COPYING.  If not, write to the Free Software
14# Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15###########################################################################
16SRCROOT=	..
17RULESDIR=	RULES
18include		$(SRCROOT)/$(RULESDIR)/rules.top
19###########################################################################
20
21INSDIR=		bin
22TARGET=		mkisofs
23SYMLINKS=	mkhybrid
24CPPOPTS +=	-DUSE_FIND
25#CPPOPTS +=	-DADD_FILES
26CPPOPTS +=	-DUSE_LARGEFILES
27CPPOPTS +=	-DAPPLE_HFS_HYB
28CPPOPTS +=	-DAPPLE_HYB
29CPPOPTS +=	-DUDF
30CPPOPTS +=	-DDVD_AUD_VID
31CPPOPTS +=	-DSORTING
32CPPOPTS +=	-DDUPLICATES_ONCE
33CPPOPTS +=	-I../libscg
34CPPOPTS +=	-I../libscgcmd
35CPPOPTS +=	-I../libhfs_iso
36CPPOPTS +=	-I../libcdrdeflt
37#CPPOPTS +=	-DAPPLE_PEARSON_OLD	# Use old struct attrinfo from apple.h
38CPPOPTS	+=	-DUSE_SCG \
39		'-DAPPID_DEFAULT="MKISOFS ISO9660/HFS/UDF FILESYSTEM BUILDER & CDRECORD CD/DVD/BluRay CREATOR (C) 1993 E.YOUNGDALE (C) 1997 J.PEARSON/J.SCHILLING"'
40CPPOPTS +=	-DSCHILY_PRINT
41CPPOPTS +=	-DUSE_NLS
42CPPOPTS +=	-DUSE_ICONV
43CPPOPTS +=	-DINS_BASE=\"${INS_BASE}\"
44CPPOPTS +=	-DTEXT_DOMAIN=\"SCHILY_cdrtools\"
45
46CFILES=		mkisofs.c tree.c write.c hash.c rock.c inode.c udf.c multi.c \
47		joliet.c match.c name.c eltorito.c boot.c isonum.c \
48		scsi.c \
49		apple.c volume.c desktop.c mac_label.c stream.c \
50		ifo_read.c dvd_file.c dvd_reader.c \
51		walk.c
52HFILES=		apple.h bootinfo.h defaults.h diskmbr.h \
53		iso9660.h mac_label.h mactypes.h match.h \
54		mkisofs.h sunlabel.h udf.h udf_fs.h vms.h \
55		ifo_read.h dvd_file.h dvd_reader.h bswap.h ifo_types.h
56
57#
58# LIB_CAP is needed for Linux capability support in librscg.
59#
60LIBS=		-lhfs -lfile -lsiconv -lscgcmd -lrscg -lscg $(LIB_VOLMGT) -lcdrdeflt -ldeflt \
61		-lfind -lmdigest -lschily \
62		$(LIB_ACL_TEST) $(SCSILIB) $(LIB_SOCKET) \
63		$(LIB_ICONV) $(LIB_INTL) $(LIB_CAP)
64
65XMK_FILE=	Makefile.man hybridman.mk Makefile.doc
66
67###########################################################################
68include		$(SRCROOT)/$(RULESDIR)/rules.cmd
69###########################################################################
70count:	$(CFILES) $(HFILES)
71	count $r1
72
73xtxt:	$(CFILES) apple_driver.c
74	gxgettext -k_ -k__ -kperr $(CFILES) apple_driver.c
75