File: Makefile.in

package info (click to toggle)
udfclient 0.8.11-1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 1,128 kB
  • sloc: ansic: 16,482; sh: 2,710; makefile: 47
file content (88 lines) | stat: -rw-r--r-- 1,839 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#
# UDFclient toolkit
#
# Copyright 2003,2004,2005 Reinoud P.Zandijk
#
#
# File $Id: Makefile.in,v 1.24 2017/01/10 09:52:30 reinoud Exp $ $Name:  $
#

srcdir=		@srcdir@

prefix=		@prefix@
exec_prefix=	@exec_prefix@
sbindir=	@sbindir@
mandir=		@mandir@
bindir=		@bindir@
datarootdir=	@datarootdir@

CC=		@CC@
LD=		$(CC)
CPPFLAGS=	@CPPFLAGS@ @DEFS@ -I$(srcdir)
CFLAGS=		@CFLAGS@
LDFLAGS=	@LDFLAGS@

INSTALL=	@INSTALL@

# NetBSD
#CFLAGS+= -Wall \
#	 -Wuninitialized \
#	 -fno-strict-aliasing \
#	 -Wextra -Werror
#	 -Werror ${COPTS} \
#	 -DNDEBUG

# Anonymising this client (for comformity)
#CFLAGS+= -D__ANONYMOUSUDF__

#CFLAGS+= -fPIC -DPIC
POSTOBJ+= @SCSI_LIB@ @THREADLIB@ @TIMELIB@


# For use with the cpuflags package
#CPROCFLAGS != cpuflags
CFLAGS+= ${CPROCFLAGS}


# Main programs
APPS=		udfdump udfclient newfs_udf cd_sessions
SCSI_APPS=	cd_disect mmc_format
LIB=		osta.o udf.o udf_bmap.o udf_allocentries.o udf_discop.o uio.o
LIB+=		udf_verbose.o udf_readwrite.o udf_unix.o vfs_dirhash.o
USCSILIB=	uscsi_sense.o uscsi_subr.o

CFLAGS+= -DNEEDS_ISPRINT $(CPPFLAGS)

all: @BUILD_APPS@

install: @BUILD_APPS@
	$(INSTALL) -d $(DESTDIR)/$(bindir)
	for app in @BUILD_APPS@; do \
		echo "$(INSTALL) $$app $(DESTDIR)/$(bindir)/$$app"; \
		$(INSTALL) $$app $(DESTDIR)/$(bindir)/$$app; \
	done

depend:
	mkdep $(CFLAGS) *.c

clean:
	rm -f *.o *.a *.core core.* core .depend *~ *.bak $(APPS) $(SCSI_APPS)
	rm -fr autom*.cache config.log config.status configure.lineno

cleandir: clean
	rm -f Makefile

libuscsi.a: $(USCSILIB)
	ar -rsc libuscsi.a $(USCSILIB)

libudf.a: $(LIB)
	ar -rsc libudf.a $(LIB)

$(SCSI_APPS): $(.TARGET).o libuscsi.a
	$(LD) -o $(.TARGET) $(LDFLAGS) $(.TARGET).o libuscsi.a $(POSTOBJ)

$(APPS): $(.TARGET).o libuscsi.a libudf.a
	$(LD) -o $(.TARGET) $(LDFLAGS) $(.TARGET).o libudf.a libuscsi.a $(POSTOBJ)


# DO NOT DELETE