109 ALL_FILES
= $(DOCS
) $(DOCS_INTERNAL
) $(SUPPORT
) $(MAC_SOURCE
) $(UNIX_SOURCE
)
116 # these names have '__' in place of ' ' to avoid quoting nightmares
120 pdisk.mac__Data
/CW__Settings.stm.bin \
121 pdisk.mac__Data
/pdisk.tdm.bin \
122 pdisk.mac__Data
/pdisk__68k.tdm.bin
124 # Constructed under MacOS using CodeWarrior from MAC_PROJECT & sources
132 CFLAGS
= -Wall
-D__unix__
136 all: $(UNIX_BINARIES
)
138 pdisk
: $(UNIX_OBJECTS
)
139 cc -o pdisk
$(UNIX_OBJECTS
)
141 cvt_pt
: $(CVT_OBJECTS
)
142 cc -o cvt_pt
$(CVT_OBJECTS
)
144 tags: $(MAC_SOURCE
) $(UNIX_SOURCE
)
145 ctags
$(MAC_SOURCE
) $(UNIX_SOURCE
)
148 rm -f
*.o
$(UNIX_BINARIES
) list.src
151 rm -f
$(ALL_FILES
) $(MAC_BINARY
) $(MAC_68KBINARY
) tags
153 # note the sed to reinsert the spaces in the Mac names
154 list.src
: $(MAC_SOURCE
) $(DOCS
) $(UNIX_SOURCE
) $(MAC_PROJECT
)
155 echo
$(MAC_SOURCE
) $(DOCS
) $(UNIX_SOURCE
) $(MAC_PROJECT
) |\
156 tr
' ' '\n' | sed
-e
's/__/ /g' -e
's,^,pdisk/,' >list.src
159 # this depends on this source directory being named 'pdisk'
161 distribution
: list.src
162 cd ..
; tar $(DIST_TAR_FLAGS
) pdisk
/dist/pdisk.src.
tar.
`date +%Y%m%d` --files-from pdisk
/list.src
163 tar $(DIST_TAR_FLAGS
) dist/pdisk.bin.
tar.
`date +%Y%m%d` $(UNIX_BINARIES
) $(MAN_PAGE
)
164 cp
-f
$(MAC_DOC
) dist/$(MAC_DOC
).
`date +%Y%m%d`
165 cp
-f
$(MAC_BINARY
) dist/$(MAC_BINARY
).
`date +%Y%m%d`
166 cp
-f
$(MAC_68KBINARY
) dist/$(MAC_68KBINARY
).
`date +%Y%m%d`
169 .
/checkin_files
$(ALL_FILES
)
171 checkout
: $(ALL_FILES
)
174 rcsdiff
$(ALL_FILES
) 2>&1
177 .
/name_latest
$(ALL_FILES
)
180 # in lieu of a real dependency generator
183 deblock_media.h
: media.h
185 dump.h
: partition_map.h hfs_misc.h
186 file_media.h
: media.h
187 partition_map.h
: dpme.h media.h
189 validate.h
: partition_map.h
191 bitfield.o
: bitfield.c bitfield.h
192 convert.o
: convert.c convert.h
193 deblock_media.o
: deblock_media.c deblock_media.h
194 dump.o
: dump.c dump.h pathname.h io.h errors.h
195 errors.o
: errors.c errors.h
196 file_media.o
: file_media.c file_media.h errors.h
197 io.o
: io.c io.h errors.h
198 layout_dump.o
: layout_dump.c layout_dump.h
199 media.o
: media.c media.h
200 partition_map.o
: partition_map.c partition_map.h pathname.h deblock_media.h io.h convert.h util.h errors.h
201 pathname.o
: pathname.c pathname.h file_media.h
202 pdisk.o
: pdisk.c pdisk.h io.h partition_map.h pathname.h errors.h dump.h validate.h version.h util.h
203 util.o
: util.c version.h util.h
204 validate.o
: validate.c validate.h deblock_media.h pathname.h convert.h io.h errors.h
208 # fake dependencies used only by list.src {for $(MAC_PROJECT)}
210 pdisk.mac__Data
/CW__Settings.stm.bin
:
211 pdisk.mac__Data
/pdisk.tdm.bin
:
212 pdisk.mac__Data
/pdisk__68k.tdm.bin
: