mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-10-31 11:07:44 +00:00
22fa70695a
- changed definition of OBJS to remove the full pathnames and to add to previous values of OBJS rather than to act as a default value binrules.mk: - backed out all v1.5 changes except for using $(MAINSRC) vice $(MAIN).c - added a recipe for building ProDOS-renamed object files paths.mk: - backed out v1.6 changes - added a macro, PRODOS_OBJS. If this is set to "true", then ProDOS-compliant file names will be used for object files.
52 lines
1.3 KiB
Makefile
52 lines
1.3 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.7 1998/02/17 00:26:24 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
|
|
|
|
# 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
|