home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aux
- Path: sparky!uunet!panther!mothost!schbbs!ivhs.mot.com!fred
- From: fred@ivhs.mot.com (Fred Brunner)
- Subject: Re: Has anyone ported gnu make?
- Organization: Motorola IVHS Group - Northbrook IL
- Date: 30 Dec 92 21:23:08 GMT
- Message-ID: <fred.725750588@ivhs.mot.com>
- References: <C0333E.1vD@world.std.com>
- Sender: news@schbbs.mot.com (Net News)
- Nntp-Posting-Host: 150.130.23.5
- Lines: 54
-
- I've been using it for about a year. Use gcc, and the following options:
-
- CC = gcc
- CFLAGS = $(defines) -O2
- LDFLAGS =
-
- # Define these for your system as follows:
- # -DUSG System V
- # -DUSGr3 SVR3 (also define USG)
- # -DHPUX HP-UX (also define USG and USGr3 appropriately)
- # -DHAVE_SYS_WAIT USG, but have <sys/wait.h> and wait3
- # -DHAVE_SIGLIST USG, but have sys_siglist
- # -DHAVE_DUP2 USG and not USGr3, but have dup2
- # -DNO_MINUS_C_MINUS_O cc can't handle "cc -c foo.c -o foo.o"
- # -DPOSIX A 1003.1 system (or trying to be)
- # -DNO_ARCHIVES To disable `ar' archive support.
- # -DNO_FLOAT To avoid using floating-point numbers.
- # -DENUM_BITFIELDS If the compiler isn't GCC but groks enum foo:2.
- # Some compilers apparently accept this
- # without complaint but produce losing code,
- # so beware.
- # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
- defines = -DUSG -DHAVE_SYS_WAIT -DUSGr3 -DENUM_BITFIELDS
-
- # Define these for your system as follows:
- # -DUMAX Encore UMAX
- # -DUMAX_43 Encore UMAX 4.3 (also define UMAX)
- # -DNO_LDAV Disable load-average checking.
- # To read /dev/kmem (most Unix systems), define these if different from the
- # given defaults:
- # -DKERNEL_FILE_NAME=\"/vmunix\"
- # -DLDAV_SYMBOL=\"_avenrun\"
- # -DLDAV_CVT="(double) load"
- # Define:
- # -DNLIST_NAME_UNION If `struct nlist' has a n_un member.
- # -DNLIST_NAME_ARRAY If `n_name' is an array.
- LOAD_AVG = -DNO_LDAV
-
- I linked it against -lbsd, on the theory that this gets me BSD signals. I
- don't know if this in fact works, but I've had no problems with signals.
-
- GNU make 3.62 seems to find long command lines offensive. Both under AIX and
- my A/UX port, it pukes on imake-generated makefiles. On the other hand,
- imakefiles work fine with standard make, so I haven't bothered to track the
- problem down.
-
- Have fun,
-
- -FB
- --
- --- --- --- --- --- --- --- --- --- --- --- --- ---
- Fred Brunner - Sr. Systems Engineer (all opinions expressed solely my own)
- Intelligent Vehicle/Highway Systems Group - Motorola, Inc.
- --- --- --- --- --- --- --- --- --- --- --- --- ---
-