gno/binconst.mk
gdr-ftp 150b2eb2e2 paths.mk:
- with the modified binrules.mk, we don't need the .SOURCE
	  directives.

binconst.mk:
	- change the definition of OBJS somewhat so that they are
	  always fully pathed in the $(OBJ_DIR) directory
	- for utils with both BSD and GNO man pages, make sure we
	  install the GNO one
	- conditionally define MAINSRC so that we can override it
	  if necessary.  By default MAINSRC is $(MAIN).c

binrules.mk:
	- don't assume MAINSRC is $(MAIN).c
	- don't assume the compiled rez fork is in the current directory
	- add default target for creating object files in the $(OBJ_DIR)
	  directory
	- don't relink the executable if it just needs a new resource fork

binrelease.mk:
	- changed targets to allow for the BSD/GNO man page duality
	- assume the built program is in the $(OBJ_DIR)
	- eliminate describe actions from the 'install' target

prog.mk:
	- don't include binrules.mk if CUSTOM_RULES is defined and
	  non-NULL.
1998-02-15 19:44:03 +00:00

47 lines
1.1 KiB
Makefile

#
# Compilation constants for utilities (directories ./bin, ./sbin,
# ./usr.bin, ./usr.sbin). These are not used when building the libraries.
#
# $Id: binconst.mk,v 1.6 1998/02/15 19:43:57 gdr-ftp Exp $
#
# Devin Reade, 1997.
#
DEFINES +=
CFLAGS += -w
LDFLAGS +=
LDLIBS += $(LDADD:s,-l,-l/usr/lib/lib,)
# WARNING: You *must* use descu v1.0.4 or later for these builds.
DESCU = /usr/sbin/descu
COPYFORK = /usr/orca/bin/copyfork
CATREZ = /usr/bin/catrez
INSTALL = /usr/bin/install
# $(DESC_SRC) is the created source file for the describe(1) database.
DESC_DIR = $(RELEASE_DIR)/usr/lib
DESC_SRC = $(DESC_DIR)/describe.src
# If no source files were defined, use program name
SRCS *= $(PROG).c
# If no main file was defined, use program name
MAIN *= $(PROG)
MAINSRC *= $(MAIN).c
# Define DESC if it's not already done.
DESC *= $(PROG).desc
# Some utils have both an original BSD man page and a GNO formatted one.
# If HAS_BSD_MANPAGE has been set, then the GNO page ends in ".1G", else
# it ends in ".1"
.IF $(HAS_BSD_MANPAGE) == $(NULL)
MAN1SFX = 1
.ELSE
MAN1SFX = 1G
.END
# Define all object files as being in the /obj hierarchy.
OBJS *= $(OBJ_DIR){$(SRCS:b)}.o