summaryrefslogtreecommitdiff
path: root/sbin/pdisk/makefile
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-03-24 00:14:39 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-03-24 00:14:39 +0000
commitffb72f990c9933280de104024acf91acee02c1a5 (patch)
tree8312fd465c763b17886e6e1795ab48bde45c2381 /sbin/pdisk/makefile
parentfa5275b22eb94a7d990e643d54768420845d618c (diff)
Import of pdisk from apple, BSD licensed code. Archive dated Feb 18 1998
This is a HFS partition editing tool.
Diffstat (limited to 'sbin/pdisk/makefile')
-rw-r--r--sbin/pdisk/makefile197
1 files changed, 197 insertions, 0 deletions
diff --git a/sbin/pdisk/makefile b/sbin/pdisk/makefile
new file mode 100644
index 00000000000..4b68e7be69b
--- /dev/null
+++ b/sbin/pdisk/makefile
@@ -0,0 +1,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: