blob: 4b68e7be69bf6cb9fc3da72f5c93337a8d147202 (
plain)
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
|
#
# Makefile for pdisk
#
MAN_PAGE= \
pdisk.8
MAC_DOC= \
pdisk.html
DOCS= \
HISTORY \
README \
$(MAN_PAGE) \
$(MAC_DOC)
SERVER_README = \
dist.README
SERVER_MESSAGE = \
dist.message
DOCS_INTERNAL= \
HISTORY.ALL \
HOWTO.DISTRIBUTE \
To_do_list \
command-language \
pdisk.man.html \
$(SERVER_README) \
$(SERVER_MESSAGE)
SUPPORT= \
make_filename \
make_depend \
make_tags \
checkin_files \
MPWcompare \
name_latest \
next_release
MAC_SOURCE= \
ATA_media.c \
ATA_media.h \
DoSCSICommand.c \
DoSCSICommand.h \
MacSCSICommand.h \
SCSI_media.c \
SCSI_media.h \
pdisk.r
UNIX_SOURCE= \
bitfield.c \
bitfield.h \
convert.c \
convert.h \
deblock_media.c \
deblock_media.h \
dpme.h \
dump.c \
dump.h \
errors.c \
errors.h \
file_media.c \
file_media.h \
io.c \
io.h \
layout_dump.c \
layout_dump.h \
makefile \
media.c \
media.h \
partition_map.c \
partition_map.h \
pathname.c \
pathname.h \
pdisk.c \
pdisk.h \
util.c \
util.h \
validate.c \
validate.h \
version.h
UNIX_OBJECTS = \
pdisk.o \
dump.o \
partition_map.o \
convert.o \
io.o \
errors.o \
bitfield.o \
deblock_media.o \
file_media.o \
media.o \
pathname.o \
util.o \
validate.o
ALL_FILES= $(DOCS) $(DOCS_INTERNAL) $(SUPPORT) $(MAC_SOURCE) $(UNIX_SOURCE)
UNIX_BINARY= \
pdisk
#
# these names have '__' in place of ' ' to avoid quoting nightmares
#
MAC_PROJECT= \
pdisk.mac.bin \
pdisk.mac__Data/CW__Settings.stg.bin \
pdisk.mac__Data/pdisk.tdt.bin \
pdisk.mac__Data/pdisk__68k.tdt.bin
# Constructed under MacOS using CodeWarrior from MAC_PROJECT & sources
MAC_BINARY= \
pdisk.hqx
MAC_68KBINARY= \
pdisk_68k.hqx
CFLAGS = -Wall
DIST_TAR_FLAGS = cvf
all: pdisk
pdisk: $(UNIX_OBJECTS)
clean:
rm -f *.o $(UNIX_BINARY) list.src
clobber: clean
rm -f $(ALL_FILES) $(MAC_BINARY) $(MAC_68KBINARY) tags
# note the sed to reinsert the spaces in the Mac names
list.src: $(MAC_SOURCE) $(DOCS) $(UNIX_SOURCE) $(MAC_PROJECT)
echo $(MAC_SOURCE) $(DOCS) $(UNIX_SOURCE) $(MAC_PROJECT) |\
tr ' ' '\n' | sed -e 's/__/ /g' -e 's,^,pdisk/,' >list.src
#
# this depends on this source directory being named 'pdisk'
#
distribution: list.src
cd ..; tar $(DIST_TAR_FLAGS) pdisk/dist/pdisk.src.tar.`date +%y%m%d` --files-from pdisk/list.src
tar $(DIST_TAR_FLAGS) dist/pdisk.bin.tar.`date +%y%m%d` $(UNIX_BINARY) $(MAN_PAGE)
cp $(MAC_DOC) dist/$(MAC_DOC).`date +%y%m%d`
cp $(MAC_BINARY) dist/$(MAC_BINARY).`date +%y%m%d`
cp $(MAC_68KBINARY) dist/$(MAC_68KBINARY).`date +%y%m%d`
cp $(SERVER_README) dist/README
cp $(SERVER_MESSAGE) dist/.message
checkin:
./checkin_files $(ALL_FILES)
checkout: $(ALL_FILES)
diff:
rcsdiff $(ALL_FILES) 2>&1
name:
./name_latest $(ALL_FILES)
#
# in lieu of a real dependency generator
#
convert.h: dpme.h
deblock_media.h: media.h
dpme.h: bitfield.h
dump.h: partition_map.h
file_media.h: media.h
partition_map.h: dpme.h media.h
pathname.h: media.h
validate.h: partition_map.h
bitfield.o: bitfield.c bitfield.h
convert.o: convert.c convert.h
deblock_media.o: deblock_media.c deblock_media.h
dump.o: dump.c dump.h pathname.h io.h errors.h
errors.o: errors.c errors.h
file_media.o: file_media.c file_media.h errors.h
io.o: io.c io.h errors.h
layout_dump.o: layout_dump.c layout_dump.h
media.o: media.c media.h
partition_map.o: partition_map.c partition_map.h pathname.h deblock_media.h io.h convert.h util.h errors.h
pathname.o: pathname.c pathname.h file_media.h
pdisk.o: pdisk.c pdisk.h io.h partition_map.h pathname.h errors.h dump.h validate.h version.h util.h
util.o: util.c version.h util.h
validate.o: validate.c validate.h deblock_media.h pathname.h convert.h io.h errors.h
#
# fake dependencies used only by list.src {for $(MAC_PROJECT)}
#
pdisk.mac__Data/CW__Settings.stg.bin:
pdisk.mac__Data/pdisk.tdt.bin:
pdisk.mac__Data/pdisk__68k.tdt.bin:
|