mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-12-26 09:29:18 +00:00
[Changes submitted by Derek Taubert.]
binconst.mk, binrules.mk: The $(MAIN) macro is now the basename of the file containing the main() function, and therefore the only .root file that should exist is $(MAIN).root. If MAIN is not set in the lower level makefiles, it defaults to $(PROG). paths.mk: ORCA_DIST has changed from /orca-native to /lang/orca.
This commit is contained in:
parent
2ef4d75aa5
commit
37a13feeb9
@ -2,7 +2,7 @@
|
|||||||
# Compilation constants for utilities (directories ./bin, ./sbin,
|
# Compilation constants for utilities (directories ./bin, ./sbin,
|
||||||
# ./usr.bin, ./usr.sbin). These are not used when building the libraries.
|
# ./usr.bin, ./usr.sbin). These are not used when building the libraries.
|
||||||
#
|
#
|
||||||
# $Id: binconst.mk,v 1.2 1997/09/24 06:43:52 gdr Exp $
|
# $Id: binconst.mk,v 1.3 1997/11/01 19:10:37 gdr Exp $
|
||||||
#
|
#
|
||||||
# Devin Reade, 1997.
|
# Devin Reade, 1997.
|
||||||
#
|
#
|
||||||
@ -27,6 +27,10 @@ DESC_SRC = $(DESC_DIR)/describe.src
|
|||||||
SRCS = $(PROG).c
|
SRCS = $(PROG).c
|
||||||
.END
|
.END
|
||||||
|
|
||||||
|
# If no main file was defined, use program name
|
||||||
|
.IF $(MAIN) == $(NULL)
|
||||||
|
MAIN = $(PROG)
|
||||||
|
.END
|
||||||
# Define DESC if it's not already done.
|
# Define DESC if it's not already done.
|
||||||
.IF $(DESC) == $(NULL)
|
.IF $(DESC) == $(NULL)
|
||||||
DESC = $(PROG).desc
|
DESC = $(PROG).desc
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Standard compilation rules for utilities (directories ./bin, ./sbin,
|
# Standard compilation rules for utilities (directories ./bin, ./sbin,
|
||||||
# ./usr.bin, ./usr.sbin). These are not used when building the libraries.
|
# ./usr.bin, ./usr.sbin). These are not used when building the libraries.
|
||||||
#
|
#
|
||||||
# $Id: binrules.mk,v 1.2 1997/09/24 06:43:53 gdr Exp $
|
# $Id: binrules.mk,v 1.3 1997/11/01 19:10:37 gdr Exp $
|
||||||
#
|
#
|
||||||
# Devin Reade, Dave Tribby, 1997.
|
# Devin Reade, Dave Tribby, 1997.
|
||||||
#
|
#
|
||||||
@ -14,8 +14,8 @@ build: $(PROG)
|
|||||||
# Include standard occ options
|
# Include standard occ options
|
||||||
# -a0: use .o suffix for object file
|
# -a0: use .o suffix for object file
|
||||||
# -c: don't link after compiling
|
# -c: don't link after compiling
|
||||||
$(PROG).o: $(PROG).c
|
$(MAIN).o: $(MAIN).c
|
||||||
$(CC) $(CFLAGS:s/ -r / /) -a0 -c $(PROG).c
|
$(CC) $(CFLAGS:s/ -r / /) -a0 -c $(MAIN).c
|
||||||
|
|
||||||
# Program depends upon all the objects. Add the version resource.
|
# Program depends upon all the objects. Add the version resource.
|
||||||
$(PROG): $(OBJS) $(PROG).r
|
$(PROG): $(OBJS) $(PROG).r
|
||||||
@ -27,7 +27,7 @@ $(PROG): $(OBJS) $(PROG).r
|
|||||||
# exec the line directly
|
# exec the line directly
|
||||||
clean:
|
clean:
|
||||||
-$(RM) -f $(OBJS)
|
-$(RM) -f $(OBJS)
|
||||||
-$(RM) -f $(PROG).root
|
-$(RM) -f $(MAIN).root
|
||||||
-$(RM) -f $(PROG).r
|
-$(RM) -f $(PROG).r
|
||||||
-$(RM) -f $(PROG).rej
|
-$(RM) -f $(PROG).rej
|
||||||
|
|
||||||
|
5
paths.mk
5
paths.mk
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
# Devin Reade, 1997
|
# Devin Reade, 1997
|
||||||
#
|
#
|
||||||
# $Id: paths.mk,v 1.2 1997/09/21 21:52:19 gdr Exp $
|
# $Id: paths.mk,v 1.3 1997/11/01 19:10:37 gdr Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
# SRC_DIR is the top-level GNO source distribution directory (containing
|
# SRC_DIR is the top-level GNO source distribution directory (containing
|
||||||
@ -25,9 +25,8 @@ RELEASE_DIR = /dist
|
|||||||
|
|
||||||
# ORCA_DIST is the directory containing the standard Orca distribution.
|
# ORCA_DIST is the directory containing the standard Orca distribution.
|
||||||
# It shouldn't contain any GNO-isms.
|
# It shouldn't contain any GNO-isms.
|
||||||
# I recommend using /orca-native and defining it in /etc/namespace.
|
|
||||||
|
|
||||||
ORCA_DIST = /orca-native
|
ORCA_DIST = /lang/orca
|
||||||
|
|
||||||
# ORCA_SRC is the directory containing the sources to the ORCA libraries
|
# ORCA_SRC is the directory containing the sources to the ORCA libraries
|
||||||
# This is (and should only be) used when building libc. We do this kludge
|
# This is (and should only be) used when building libc. We do this kludge
|
||||||
|
Loading…
Reference in New Issue
Block a user