##
################################################################################
+# This target punts things that get created during an MPW build
+
clean : autogenerate-clean
Delete -i {GSSOBJS68K} {GSSOBJSPPC} {GSSOBJS68KCFM} \
{K5OBJS68K} {K5OBJSPPC} {K5OBJS68KCFM} \
{GSSSHLIBOBJ68KCFM} {GSSSHLIBOBJPPC} \
{K5SHLIBOBJ68KCFM} {K5SHLIBOBJPPC}
+# This target also punts everything that gets created in other ways during normal
+# build process (CW files etc)
+
dist-clean : clean
- Delete -i -y /bin
+ Delete -i -y /bin \
+ "/mac/libraries/Metrowerks/CW Pro 2/MIT C.CFM68K DLL.prj Data" \
+ "/mac/libraries/Metrowerks/CW Pro 2/MIT C.PPC DLL.prj Data" \
+ "/mac/libraries/Metrowerks/CW Pro 2/MIT RuntimeCFM68K DLL.prj Data" \
+ "/mac/libraries/Metrowerks/CW Pro 2/MIT RuntimePPC DLL.prj Data"
Delete -i GSSLib GSSLibraryPPC GSSLibrary68K K5LibraryPPC K5Library68K \
GSSLibrary68K.MAP GSSLibrary68K.SYM GSSLibraryPPC.MAP GSSLibraryPPC.xSYM \
K5Library68K.MAP K5Library68K.SYM K5LibraryPPC.MAP K5LibraryPPC.xSYM \
$ROOT='.';
}
+# if we get "maclist" as a command line argument, print out a
+# list of files we need. Else, generate a makefile.
+
+if (defined($ARGV[0]) && $ARGV[0] eq "maclist")
+{
+ print(STDERR "Creating maclist.\n");
+ print(join(" ", &make_macfile_maclist(&make_macfile_list())), "\n");
+ print(STDERR "Done.\n");
+ exit;
+}
+
+# if we get "macdirs" as a command line argument, print out a
+# list of directories we need. Else, generate a makefile.
+
+if (defined($ARGV[0]) && $ARGV[0] eq "macdirs")
+{
+ print(STDERR "Creating macdirs.\n");
+ @MFSRCD=grep(s/(.*:)[^:]*\.c$/$1/, &make_macfile_maclist(&make_macfile_list()));
+ @MFSRCD=&uniq(sort(@MFSRCD));
+ print(join(" ", @MFSRCD), "\n");
+ print(STDERR "Done.\n");
+ exit;
+}
+
print(STDERR "Creating makefile.\n");
@MACLIST=&make_macfile_maclist(&make_macfile_list());
+++ /dev/null
-#!/bin/sh
-
-for DIR do
- for SDIR in `sed -n -e 's/MAC_SUBDIRS.*=//p' $DIR/Makefile.in`; do
- awk '/^MACSRCS?[ ]*=/, /[^\\]$/' $DIR/$SDIR/Makefile.in | \
- tr ' ' '\012\012' | sed -n -e 's|.*[/)]\([A-Za-z0-9_]*\.c\).*|\1|' -e 's|\(.*\.c\)|'$DIR/$SDIR'/\1|p';
- awk '/^SRCS?[ ]*=/, /[^\\]$/' $DIR/$SDIR/Makefile.in | \
- tr ' ' '\012\012' | sed -n -e 's|.*[/)]\([A-Za-z0-9_]*\.c\).*|\1|' -e 's|\(.*\.c\)|'$DIR/$SDIR'/\1|p';
- ls -1 $DIR/$SDIR/*.h 2> /dev/null
- /bin/sh mac/macfiles.sh $DIR/$SDIR;
- done
-done
+++ /dev/null
-#!/bin/sh
-#
-# This shell script creates the Macintosh binary hierarchies.
-
-topbin=$1
-shift
-
-for DIR do
- mkdir $topbin/$DIR
- for SDIR in `sed -n -e 's/MAC_SUBDIRS.*=//p' $DIR/Makefile.in`; do
- /bin/sh mac/mkbindirs.sh $topbin $DIR/$SDIR;
- done
-done