home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / aux / 4462 < prev    next >
Encoding:
Text File  |  1992-12-30  |  2.8 KB  |  67 lines

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