1 ######################################################################
3 # IMPORTANT: before you run 'make', you need to enter one of these two
4 # lines (depending on your shell):
5 # DYLD_LIBRARY_PATH=`pwd`; export DYLD_LIBRARY_PATH
7 # setenv DYLD_LIBRARY_PATH `pwd`
9 ######################################################################
11 # Posix support has been removed from NextStep
15 libpth='/lib /usr/lib /usr/local/lib'
17 libc='/NextLibrary/Frameworks/System.framework/System'
19 ldflags='-dynamic -prebind'
20 lddlflags='-dynamic -bundle -undefined suppress'
21 ccflags='-dynamic -fno-common -DUSE_NEXT_CTYPE -DUSE_PERL_SBRK'
26 ######################################################################
28 ######################################################################
29 # By default we will build for all architectures your development
30 # environment supports. If you only want to build for the platform
31 # you are on, simply comment or remove the line below.
33 # If you want to build for specific architectures, change the line
34 # below to something like
39 # On m68k machines, toke.c cannot be compiled at all for i386 and it can
40 # only be compiled for m68k itself without optimization (this is under
43 if [ `hostinfo | grep 'NeXT Mach.*:' | sed 's/.*RELEASE_//'` = M68K ]
45 echo "Cross compilation is impossible on m68k hardware under OS 4"
46 echo "Forcing architecture to m68k only"
47 toke_cflags='optimize=""'
50 archs=`/bin/lipo -info /usr/lib/libm.a | sed -n 's/^[^:]*:[^:]*: //p'`
54 # leave the following part alone
56 archcount=`echo $archs |wc -w`
57 if [ $archcount -gt 1 ]
61 mabflags="$mabflags -arch $d"
63 ccflags="$ccflags $mabflags"
64 ldflags="$ldflags $mabflags"
65 lddlflags="$lddlflags $mabflags"
67 ######################################################################
69 ######################################################################
76 # The default prefix would be '/usr/local'. But since many people are
77 # likely to have still 3.3 machines on their network, we do not want
78 # to overwrite possibly existing 3.3 binaries.
79 # You can use Configure -Dprefix=/foo/bar to override this, or simply
80 # remove the lines below.
83 '') prefix='/usr/local/OPENSTEP' ;;
86 archname='OPENSTEP-Mach'
89 # At least on m68k there are situations when memcmp doesn't behave
90 # as expected. So we'll use perl's memcmp.
98 direntrytype='struct direct'
104 # On some NeXT machines, the timestamp put by ranlib is not correct, and
105 # this may cause useless recompiles. Fix that by adding a sleep before
106 # running ranlib. The '5' is an empirical number that's "long enough."
107 # (Thanks to Andreas Koenig <k@franz.ww.tu-berlin.de>)
108 ranlib='sleep 5; /bin/ranlib'