mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-11-04 22:08:21 +00:00
b00e9eb797
- Renamed from makefile.mk to Makefile. - Updated for proper operation as part of GNO build. - Discontinue use of vaend.c, basename.c for GNO v2.0.6. descu: - Document ability to specify an output file vice stdout (this feature was already in, but not documented) - Allow the output file to be the same name as the first input file (it will be overwritten). - Fix buffer overrun bugs that occured when: a) There was no initial input file; or b) There are no headers in the first input file; or c) There are no trailers in the first input file; or - Increased SLOTS_QUANTUM from 20 to 64, hopefully increasing the speed on large files. - fixed stack check code to use the new routines names - put version number in lockstep with descc and describe descc: - descc will now change the database file type to BIN, if it wasn't already so. - changed default location of system database - fixed stack check code to use the new routines names - put version number in lockstep with descu and describe describe: - changed default location of system database - fixed stack check code to use the new routines names - put version number in lockstep with descu and descc *.rez: - added resource source files
74 lines
2.0 KiB
Makefile
74 lines
2.0 KiB
Makefile
#
|
|
# This is the makefile for the describe(1) package. It is for use
|
|
# with dmake(1).
|
|
#
|
|
|
|
# Include configuration files if this is part of the GNO build.
|
|
.INCLUDE .IGNORE: /src/gno/paths.mk
|
|
.INCLUDE .IGNORE: /src/gno/binconst.mk
|
|
|
|
# Use -D__STACK_CHECK__ in CFLAGS to show stack usage.
|
|
# The most recent measurements of stack usage showed:
|
|
# describe 930 bytes
|
|
# descc 943
|
|
# descu 861 bytes
|
|
|
|
CFLAGS += -O78 -s1024 # -D__STACK_CHECK__
|
|
LDFLAGS += -v
|
|
LDLIBS +=
|
|
|
|
# If this is not part of the GNO builds, RELEASE_DIR is not defined
|
|
# so things get installed in a live file system instead.
|
|
BINDIR = $(RELEASE_DIR)/usr/bin
|
|
SBINDIR = $(RELEASE_DIR)/usr/sbin
|
|
MANDIR = $(RELEASE_DIR)/usr/man
|
|
|
|
# If you have an old copy of GNO's libc, you may need to compile basename.c
|
|
# yourself. (As of v2.0.6, it's part of the standard libc.) vaend.c may
|
|
# be needed if you are using GNO v2.0.4 with ORCA/C v2.1.x
|
|
BASENAME = # basename.o
|
|
VAEND = # vaend.o
|
|
|
|
DESC_FILES = describe.desc descc.desc descu.desc
|
|
|
|
# A stand-alone build might not have these defined.
|
|
.IF $(INSTALL) == $(NULL)
|
|
INSTALL = /usr/bin/install
|
|
.END
|
|
.IF $(CATREZ) == $(NULL)
|
|
CATREZ = /usr/bin/catrez
|
|
.END
|
|
.IF $(DESC_DIR) == $(NULL)
|
|
DESC_DIR= $(RELEASE_DIR)/usr/lib
|
|
DESC_SRC= $(DESC_DIR)/describe.src
|
|
.END
|
|
|
|
build: describe descc descu
|
|
|
|
descc: descc.o $(BASENAME) descc.r
|
|
$(CC) $(LDFLAGS) descc.o $(BASENAME) -o $@ $(LDLIBS)
|
|
$(CATREZ) -d $@ descc.r
|
|
|
|
describe: describe.o $(BASENAME) describe.r
|
|
$(CC) $(LDFLAGS) describe.o $(BASENAME) -o $@ $(LDLIBS)
|
|
$(CATREZ) -d $@ describe.r
|
|
|
|
descu: descu.o $(BASENAME) $(VAEND) descu.r
|
|
$(CC) $(LDFLAGS) descu.o $(BASENAME) $(VAEND) -o $@ $(LDLIBS)
|
|
$(CATREZ) -d $@ descu.r
|
|
|
|
descc.o:: desc.h
|
|
describe.o:: desc.h
|
|
descu.o:: desc.h
|
|
|
|
install release:
|
|
$(INSTALL) -d $(BINDIR) $(SBINDIR) $(MANDIR)/man1 $(MANDIR)/man8
|
|
$(INSTALL) -d $(DESC_DIR)
|
|
$(INSTALL) describe $(BINDIR)
|
|
$(INSTALL) descc $(SBINDIR)
|
|
$(INSTALL) descu $(SBINDIR)
|
|
$(INSTALL) describe.1 $(MANDIR)/man1
|
|
$(INSTALL) descc.8 $(MANDIR)/man8
|
|
$(INSTALL) descu.8 $(MANDIR)/man8
|
|
./descu -o $(DESC_SRC) $(DESC_SRC) $(DESC_FILES)
|