[44] in Software_Announce

home help back first fref pref prev next nref lref last post

pmake sort-of installed in the outland locker

daemon@ATHENA.MIT.EDU (Salvatore Valente)
Wed Aug 31 03:36:59 1994

Date: Wed, 31 Aug 1994 03:36:47 -0400
To: software-announce@MIT.EDU
Cc: bug-outland@MIT.EDU
From: Salvatore Valente <svalente@MIT.EDU>


I've installed pmake in the outland locker for Decs, Suns, and Linux.
I hope to figure out how to get it to compile for Aix someday.

pmake is the version of make distributed with BSD 4.4.

It has some cool features, like the ability to run shell scripts,
conditionals, and string concatination.  Here is a simple example that
uses all three of these features:

machtype != machtype
.if $(machtype) == "sun4"
CFLAGS += -I/mit/outland/include/bsd-solaris
.endif

pmake provides a pre-defined variable $(MACHINE), which it sets to the
machine architechture.  (That is, the output of "uname -m".)

I've added a pre-defined variable $(OS), which I've set to the to the
operating system name.  (That is, the output of "uname -s".)

pmake comes with some standard .include files, in /mit/outland/lib/mk.
I haven't even looked at these yet.  It may be a good idea to add some
O/S specific stuff to these files.  Maybe I'll decided if I want to
add anything to them if I ever get around to looking at them someday.

Enjoy.
-Sal.

P.S.  For reference, here's the gmake version of the above example:

machtype = $(shell machtype)
ifeq ($(machtype), sun4)
CFLAGS += -I/mit/outland/include/bsd-solaris
endif

P.P.S.  big-outland people: The source in /mit/outland/src/pmake is
straight from BSD 4.4lite.  I ftp'd the pre-ported version Calvin
mentioned, but decided I wanted to start from scratch, so to speak.

home help back first fref pref prev next nref lref last post