forked from lipro-cpm4l/cpmtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
117 lines (96 loc) · 4.58 KB
/
Makefile.in
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
srcdir= @srcdir@
VPATH= @srcdir@
libdir= @libdir@
BINDIR= @bindir@
MANDIR= @mandir@
includedir= @includedir@
exec_prefix= @exec_prefix@
prefix= @prefix@
datarootdir= @datarootdir@
INSTALL= @INSTALL@
INSTALL_DATA= @INSTALL_DATA@
CC= @CC@
CFLAGS= @CFLAGS@
LDFLAGS= @LDFLAGS@
DEFFORMAT= @DEFFORMAT@
DISKDEFS= @DISKDEFS@
DEVICE= @DEVICE@
FSED_CPM= @FSED_CPM@
EXEEXT = @EXEEXT@
OBJEXT = .@OBJEXT@
LIBS= @LIBS@ @LDLIBS@
LDDEPS= @LDDEPS@
CPPFLAGS= @CPPFLAGS@ -DDISKDEFS=\"$(DISKDEFS)\" -DFORMAT=\"$(DEFFORMAT)\"
#
# I'm only a novice and I haven't worked out how to autoconf this one
#
#MAKEDEPEND= mkdep -d
MAKEDEPEND= gcc -MM
#MAKEDEPEND= makedepend -f-
DEVICEOBJ= device_$(DEVICE)$(OBJEXT)
ALL= cpmls$(EXEEXT) cpmrm$(EXEEXT) cpmcp$(EXEEXT) \
cpmchmod$(EXEEXT) cpmchattr$(EXEEXT) mkfs.cpm$(EXEEXT) \
fsck.cpm$(EXEEXT) $(FSED_CPM)
all: $(ALL)
LibDsk/libdsk.a:
cd LibDsk && make
cpmls$(EXEEXT): cpmls$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LDDEPS)
$(CC) $(LDFLAGS) -o $@ cpmls$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LIBS)
cpmrm$(EXEEXT): cpmrm$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LDDEPS)
$(CC) $(LDFLAGS) -o $@ cpmrm$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LIBS)
cpmcp$(EXEEXT): cpmcp$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LDDEPS)
$(CC) $(LDFLAGS) -o $@ cpmcp$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LIBS)
cpmchmod$(EXEEXT): cpmchmod$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LDDEPS)
$(CC) $(LDFLAGS) -o $@ cpmchmod$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LIBS)
cpmchattr$(EXEEXT): cpmchattr$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LDDEPS)
$(CC) $(LDFLAGS) -o $@ cpmchattr$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LIBS)
mkfs.cpm$(EXEEXT): mkfs.cpm$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LDDEPS)
$(CC) $(LDFLAGS) -o $@ mkfs.cpm$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LIBS)
fsck.cpm$(EXEEXT): fsck.cpm$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LDDEPS)
$(CC) $(LDFLAGS) -o $@ fsck.cpm$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LIBS)
fsed.cpm$(EXEEXT): fsed.cpm$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LDDEPS)
$(CC) $(LDFLAGS) -o $@ fsed.cpm$(OBJEXT) cpmfs$(OBJEXT) getopt$(OBJEXT) getopt1$(OBJEXT) $(DEVICEOBJ) $(LIBS)
fsck.test: fsck.cpm
-./fsck.cpm -f ibm-3740 -n badfs/status
-./fsck.cpm -f ibm-3740 -n badfs/extno
-./fsck.cpm -f ibm-3740 -n badfs/lcr
-./fsck.cpm -f ibm-3740 -n badfs/name
-./fsck.cpm -f ibm-3740 -n badfs/extension
-./fsck.cpm -f ibm-3740 -n badfs/blocknumber
-./fsck.cpm -f ibm-3740 -n badfs/recordcount
-./fsck.cpm -f ibm-3740 -n badfs/hugecom
-./fsck.cpm -f ibm-3740 -n badfs/timestamps
-./fsck.cpm -f ibm-3740 -n badfs/multipleblocks
-./fsck.cpm -f ibm-3740 -n badfs/doubleext
-./fsck.cpm -f pcw -n badfs/label
install: all
[ -d $(MANDIR)/man1 ] || $(INSTALL) -m 755 -d $(MANDIR)/man1
[ -d $(MANDIR)/man5 ] || $(INSTALL) -m 755 -d $(MANDIR)/man5
[ -d $(BINDIR) ] || $(INSTALL) -m 755 -d $(BINDIR)
$(INSTALL) -m 755 cpmls $(BINDIR)/cpmls
$(INSTALL) -m 755 cpmcp $(BINDIR)/cpmcp
$(INSTALL) -m 755 cpmrm $(BINDIR)/cpmrm
$(INSTALL) -m 755 cpmchmod $(BINDIR)/cpmchmod
$(INSTALL) -m 755 cpmchattr $(BINDIR)/cpmchattr
$(INSTALL) -m 755 mkfs.cpm $(BINDIR)/mkfs.cpm
$(INSTALL) -m 755 fsck.cpm $(BINDIR)/fsck.cpm
[ "$(FSED_CPM)" == '' ] || $(INSTALL) -m 755 fsed.cpm $(BINDIR)/fsed.cpm
$(INSTALL_DATA) diskdefs @datarootdir@/diskdefs
$(INSTALL_DATA) cpmls.1 $(MANDIR)/man1/cpmls.1
$(INSTALL_DATA) cpmcp.1 $(MANDIR)/man1/cpmcp.1
$(INSTALL_DATA) cpmrm.1 $(MANDIR)/man1/cpmrm.1
$(INSTALL_DATA) cpmchmod.1 $(MANDIR)/man1/cpmchmod.1
$(INSTALL_DATA) cpmchattr.1 $(MANDIR)/man1/cpmchattr.1
$(INSTALL_DATA) mkfs.cpm.1 $(MANDIR)/man1/mkfs.cpm.1
$(INSTALL_DATA) fsck.cpm.1 $(MANDIR)/man1/fsck.cpm.1
$(INSTALL_DATA) fsed.cpm.1 $(MANDIR)/man1/fsed.cpm.1
$(INSTALL_DATA) cpm.5 $(MANDIR)/man5/cpm.5
clean:
rm -f *$(OBJEXT)
distclean: clean
rm -rf $(ALL) autom4te.cache config.log config.cache config.h config.status Makefile *.out
tar: distclean
(b=`pwd`; b=`basename $$b`; cd ..; tar zcvf $$b.tar.gz $$b)
depend:
$(MAKEDEPEND) $(CPPFLAGS) *.c >.depend
include .depend