diff options
Diffstat (limited to 'src/mac')
-rw-r--r-- | src/mac/Makefile.tmpl | 35 | ||||
-rw-r--r-- | src/mac/macfiles.sh | 10 |
2 files changed, 45 insertions, 0 deletions
diff --git a/src/mac/Makefile.tmpl b/src/mac/Makefile.tmpl new file mode 100644 index 000000000..0639f5d41 --- /dev/null +++ b/src/mac/Makefile.tmpl @@ -0,0 +1,35 @@ +KH = /mac/libraries/ +KH68K = {KH}KerberosHeaders68K +KHPPC = {KH}KerberosHeadersPPC + +OPTIONS = {INCLUDES} -enum int -opt all -strings pool -mapcr \ + -mpw_pointers -warnings off -fatext -nosyspath -maxerrors 1000 + +all : build link + +libs : {KH68K} {KHPPC} {GSSOBJS68K} {GSSOBJSPPC} link + +build : {KH68K} {KHPPC} + MWC68K {OPTIONS} -prefix {KH68K} -model far {SRCS} + MWCPPC {OPTIONS} -prefix {KHPPC} {SRCS} + +.c.68K.o : .c + MWC68K {DepDir}{Default}.c {OPTIONS} -prefix {KH68K} -model far + +.c.PPC.o : .c + MWCPPC {DepDir}{Default}.c {OPTIONS} -prefix {KHPPC} + +{KH}68K : {KH}.pch + MWC68K {KH}KerberosHeaders.pch -precompile {KH68K} {OPTIONS} -i {KH} + +{KH}PPC : {KH}.pch + MWCPPC {KH}KerberosHeaders.pch -precompile {KH}PPC {OPTIONS} -i {KH} + +link : + MWLink68K -library -model far -o libkrb5.68K {K5OBJS68K} + MWLinkPPC -library -model far -o libkrb5.PPC {K5OBJSPPC} + MWLink68K -library -model far -o libgss.68K {GSSOBJS68K} + MWLinkPPC -library -model far -o libgss.PPC {GSSOBJSPPC} + +clean : + Delete -i {GSSOBJS68K} {GSSOBJSPPC} diff --git a/src/mac/macfiles.sh b/src/mac/macfiles.sh new file mode 100644 index 000000000..1e334b291 --- /dev/null +++ b/src/mac/macfiles.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +for DIR do + for SDIR in `sed -n -e 's/MAC_SUBDIRS.*=//p' $DIR/Makefile.in`; do + 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 + mac/macfiles.sh $DIR/$SDIR; + done +done |