mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-11-15 15:07:16 +00:00
3ad387440c
- stack size is 1024, not 768 - name of file is prog.mk, not gno.prog.mk - remove version number and date string at beginning, since it is updated in the id string
76 lines
2.1 KiB
Makefile
76 lines
2.1 KiB
Makefile
#
|
|
# prog.mk
|
|
#
|
|
# $Id: prog.mk,v 1.7 1998/02/18 18:22:04 tribby Exp $
|
|
#
|
|
|
|
# This makefile is intended for use with dmake(1) and occ(1) on Apple IIGS
|
|
# It is intended to be .INCLUDE-ed after definition of macros
|
|
# PROG=<program name>
|
|
# SRCS=<source file list; optional if only $(PROG).c>
|
|
# BINDIR=<installation binary directory; default /bin>
|
|
# MANDIR=<installation manual directory; default /usr/man>
|
|
|
|
#
|
|
# You have the option to set several macros (either in the makefile or on
|
|
# the dmake command line) that will be recognized by prog.mk:
|
|
#
|
|
# * To turn on debugging, use
|
|
# DEBUG=<parm>
|
|
# where <parm> indicates the ORCA/C "#pragma debug <parm>" value.
|
|
#
|
|
# * To turn on compiler optimizations, use
|
|
# OPTIMIZE=<parm>
|
|
# where <parm> indicates the ORCA/C "#pragma optimize <parm>" value.
|
|
# The default optimization is 72 (0x08=disable fixed parm stack repair;
|
|
# 0x40=disable var parm stack repair)
|
|
#
|
|
# * To set a stack size, use
|
|
# STACK=<size>
|
|
# where <size> indicates the ORCA/C "#pragma stacksize <size>" value.
|
|
# The default size is 1024.
|
|
#
|
|
# * To define compiler macros, use
|
|
# DEFINES=-D<name>[=<value>]
|
|
#
|
|
# An example using command-line options to turn on debugging, set the
|
|
# stack size to 4096, and to set the "__STACK_CHECK__" macro:
|
|
# dmake DEBUG=25 STACK=4096 DEFINES=-D__STACK_CHECK__
|
|
|
|
.INCLUDE: /src/gno/paths.mk
|
|
.INCLUDE: /src/gno/binconst.mk
|
|
|
|
#
|
|
# Check for user-specified compile/load options
|
|
#
|
|
|
|
# Was debugging requested?
|
|
.IF $(DEBUG) != $(NULL)
|
|
CFLAGS += -G$(DEBUG)
|
|
.END
|
|
|
|
# Was special optimizing requested?
|
|
OPTIMIZE*= 78
|
|
|
|
# Use stack size of 1024 bytes if STACK macro isn't already defined
|
|
STACK *= 1024
|
|
|
|
# Compile and load flags passed to occ
|
|
# -r: don't create .root file (used on all but main file)
|
|
CFLAGS += -r -O$(OPTIMIZE) $(DEFINES) -s$(STACK)
|
|
|
|
# If installation directories were not set, use defaults
|
|
BINDIR *= /bin
|
|
MANDIR *= /usr/man
|
|
|
|
RELBIN = $(RELEASE_DIR)$(BINDIR)
|
|
RELMAN = $(RELEASE_DIR)$(MANDIR)
|
|
|
|
.IF $(CUSTOM_RULES) == $(NULL)
|
|
.INCLUDE: /src/gno/binrules.mk
|
|
.END
|
|
|
|
.IF $(CUSTOM_RELEASE) == $(NULL)
|
|
.INCLUDE: /src/gno/binrelease.mk
|
|
.END
|