Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!houxm!whuxl!whuxlm!akgua!gatech!seismo!brl-adm!brl-smoke!smoke!moss@BRL.ARPA From: moss@BRL.ARPA Newsgroups: net.unix-wizards Subject: Re: Making makefiles portable Message-ID: <110@brl-smoke.ARPA> Date: Fri, 18-Apr-86 10:03:51 EST Article-I.D.: brl-smok.110 Posted: Fri Apr 18 10:03:51 1986 Date-Received: Mon, 21-Apr-86 02:10:38 EST Sender: news@brl-smoke.ARPA Lines: 23 What I do, is set things up in the Makefile like so: BSD_CFLAGS=-g -O -DBSD S52_CFLAGS=-O BSD_LIBES=-lfb -lrt S52_LIBES=${S5_LIBDIR}/libfb.a ${S5_LIBDIR}/librt.a CFLAGS=${S52_CFLAGS} #default is System V Rev. 2 LIBES=${S52_LIBES} SHELL=/usr/5bin/sh ... Then I have a shell script called "make_bsd" which looks like: #!/bin/sh make CC=/bin/cc LIBES=\${BSD_LIBES} CFLAGS=\${BSD_CFLAGS} SHELL=/bin/sh $* If BSD make doesn't recognize MAKEFLAGS, and MFLAGS isn't recognized by Sys V, it shouldn't hurt to define both in the makefile. My complaint is that the Gould UTX loader requires a "-m" option to increase the stack allocation, and other loaders barf on it. This makes things even messier. -moss