1997-08-08 04:44:13 +00:00
|
|
|
#
|
|
|
|
# Compilation constants for utilities (directories ./bin, ./sbin,
|
|
|
|
# ./usr.bin, ./usr.sbin). These are not used when building the libraries.
|
|
|
|
#
|
1999-01-07 07:28:14 +00:00
|
|
|
# $Id: binconst.mk,v 1.11 1999/01/07 07:28:14 gdr-ftp Exp $
|
1997-08-08 04:44:13 +00:00
|
|
|
#
|
|
|
|
# Devin Reade, 1997.
|
|
|
|
#
|
|
|
|
|
|
|
|
DEFINES +=
|
1997-09-24 06:43:53 +00:00
|
|
|
CFLAGS += -w
|
|
|
|
LDFLAGS +=
|
1998-02-09 08:45:21 +00:00
|
|
|
LDLIBS += $(LDADD:s,-l,-l/usr/lib/lib,)
|
1997-08-08 04:44:13 +00:00
|
|
|
|
1997-09-24 06:43:53 +00:00
|
|
|
# WARNING: You *must* use descu v1.0.4 or later for these builds.
|
|
|
|
DESCU = /usr/sbin/descu
|
1997-08-08 04:44:13 +00:00
|
|
|
COPYFORK = /usr/orca/bin/copyfork
|
1997-09-24 06:43:53 +00:00
|
|
|
CATREZ = /usr/bin/catrez
|
1997-08-08 04:44:13 +00:00
|
|
|
INSTALL = /usr/bin/install
|
1998-03-08 17:12:34 +00:00
|
|
|
MACGEN = 17/macgen
|
|
|
|
MACGEN_FLAGS += -P
|
1997-08-08 04:44:13 +00:00
|
|
|
|
1998-12-31 21:26:34 +00:00
|
|
|
# Temporary directory needed in some weird cases.
|
|
|
|
.IMPORT .IGNORE: TMPDIR
|
|
|
|
.IF $(TMPDIR) == $(NULL)
|
|
|
|
TMPDIR = 14
|
|
|
|
.END
|
|
|
|
|
1997-09-24 06:43:53 +00:00
|
|
|
# $(DESC_SRC) is the created source file for the describe(1) database.
|
1999-01-07 07:28:14 +00:00
|
|
|
# DESC_DIR = $(RELEASE_DIR)/usr/lib
|
|
|
|
DESC_DIR = $(SRC_DIR)/gno/doc/describe
|
1997-09-24 06:43:53 +00:00
|
|
|
DESC_SRC = $(DESC_DIR)/describe.src
|
1997-08-08 04:44:13 +00:00
|
|
|
|
1997-09-24 06:43:53 +00:00
|
|
|
# If no source files were defined, use program name
|
1998-02-09 08:45:21 +00:00
|
|
|
SRCS *= $(PROG).c
|
1997-08-08 04:44:13 +00:00
|
|
|
|
1997-11-01 19:10:37 +00:00
|
|
|
# If no main file was defined, use program name
|
1998-02-09 08:45:21 +00:00
|
|
|
MAIN *= $(PROG)
|
1998-02-15 19:44:03 +00:00
|
|
|
MAINSRC *= $(MAIN).c
|
1998-01-24 07:35:26 +00:00
|
|
|
|
1997-08-08 04:44:13 +00:00
|
|
|
# Define DESC if it's not already done.
|
1998-02-09 08:45:21 +00:00
|
|
|
DESC *= $(PROG).desc
|
1997-08-08 04:44:13 +00:00
|
|
|
|
1998-02-15 19:44:03 +00:00
|
|
|
# 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
|
1998-04-22 05:07:20 +00:00
|
|
|
MAN8SFX = 8
|
1998-02-15 19:44:03 +00:00
|
|
|
.ELSE
|
|
|
|
MAN1SFX = 1G
|
1998-04-22 05:07:20 +00:00
|
|
|
MAN8SFX = 8G
|
1998-02-15 19:44:03 +00:00
|
|
|
.END
|
|
|
|
|
1998-02-17 00:26:27 +00:00
|
|
|
# Objects are source file names with [.c|.asm] changed to .o
|
|
|
|
# If we're keeping object files on a ProDOS partition, change the
|
|
|
|
# '_' characters in file names to '.'
|
|
|
|
.IF $(PRODOS_OBJS) == true
|
|
|
|
OBJS += {$(SRCS:b:s/_/./g)}.o
|
|
|
|
.ELSE
|
|
|
|
OBJS += {$(SRCS:b)}.o
|
|
|
|
.END
|
1998-04-22 05:07:20 +00:00
|
|
|
|
|
|
|
# where do we put all the (renamed) mkso.data files?
|
|
|
|
MKSO_DIR = $(RELEASE_DIR)/install
|