mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-06-12 15:29:29 +00:00
Makefile:
- updated to use the new *.mk files inst.c: - include <gno/contrib.h> vice "contrib.h" inst.rez: - added build date
This commit is contained in:
parent
ace3b43bec
commit
d00f2dadaa
|
@ -1,46 +1,30 @@
|
||||||
#
|
#
|
||||||
# $Id: Makefile,v 1.1 1997/10/30 04:14:21 gdr Exp $
|
# $Id: Makefile,v 1.2 1998/03/08 18:18:57 gdr-ftp Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
# Don't name this "install"; we change the name later.
|
# Don't name this "install"; we change the name later.
|
||||||
PROG = inst
|
PROG = inst
|
||||||
|
|
||||||
.INCLUDE: /src/gno/paths.mk
|
|
||||||
.INCLUDE: /src/gno/binconst.mk
|
|
||||||
|
|
||||||
BINDIR = /usr/bin
|
BINDIR = /usr/bin
|
||||||
MANDIR = /usr/man
|
CUSTOM_RELEASE = true
|
||||||
OBJS = $(SRCS:s/.c/.o/:f)
|
LDADD = -lcontrib
|
||||||
OPTIMIZE = 78
|
OPTIMIZE = 78
|
||||||
STACK = 1024
|
STACK = 1024
|
||||||
|
|
||||||
# Add -D__STACK_CHECK__ to DEFINES to show stack usage.
|
.INCLUDE: /src/gno/prog.mk
|
||||||
DEFINES +=
|
|
||||||
CFLAGS += -I/src/gno/lib/libcontrib
|
|
||||||
CFLAGS += -r -O$(OPTIMIZE) $(DEFINES) -s$(STACK)
|
|
||||||
LDLIBS += -l/src/gno/lib/libcontrib/libcontrib
|
|
||||||
|
|
||||||
RELBIN = $(RELEASE_DIR)$(BINDIR)
|
INST = $(OBJ_DIR)$(PROG)
|
||||||
RELMAN = $(RELEASE_DIR)$(MANDIR)
|
|
||||||
|
|
||||||
INST = ./$(PROG)
|
# This is and the next target are slightly different from the standard
|
||||||
|
# 'release' and 'install' targets because the binary is renamed when
|
||||||
|
# it is installed.
|
||||||
|
|
||||||
.INCLUDE: /src/gno/binrules.mk
|
release: $(OBJ_DIR)$(PROG) $(PROG).$(MAN1SFX) $(DESC)
|
||||||
|
|
||||||
# Place files where they will subsequently be archived in a binary
|
|
||||||
# distribution.
|
|
||||||
#
|
|
||||||
# This is slightly different from the standard 'release' target because
|
|
||||||
# the binary is renamed when it is installed.
|
|
||||||
#
|
|
||||||
release: $(PROG) $(PROG).1 $(DESC)
|
|
||||||
$(INST) -d $(RELBIN) $(RELMAN)/man1 $(DESC_DIR)
|
$(INST) -d $(RELBIN) $(RELMAN)/man1 $(DESC_DIR)
|
||||||
$(INST) $(PROG) $(RELBIN)/install
|
$(INST) $(OBJ_DIR)$(PROG) $(RELBIN)/install
|
||||||
$(INST) $(PROG).1 $(RELMAN)/man1/install.1
|
$(INST) $(PROG).$(MAN1SFX) $(RELMAN)/man1/install.1
|
||||||
$(DESCU) -o $(DESC_SRC) $(DESC_SRC) $(DESC)
|
|
||||||
|
|
||||||
install: $(PROG) $(PROG).1 $(DESC)
|
|
||||||
$(INST) -d $(BINDIR) $(MANDIR)/man1 $(DESC_DIR)
|
|
||||||
$(INST) $(PROG) $(BINDIR)/install
|
|
||||||
$(INST) $(PROG).1 $(MANDIR)/man1/install.1
|
|
||||||
$(DESCU) -o $(DESC_SRC) $(DESC_SRC) $(DESC)
|
$(DESCU) -o $(DESC_SRC) $(DESC_SRC) $(DESC)
|
||||||
|
|
||||||
|
install: $(OBJ_DIR)$(PROG) $(PROG).$(MAN1SFX)
|
||||||
|
$(INST) -d $(BINDIR) $(MANDIR)/man1
|
||||||
|
$(INST) $(OBJ_DIR)$(PROG) $(BINDIR)/install
|
||||||
|
$(INST) $(PROG).$(MAN1SFX) $(MANDIR)/man1/install.1
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* For copying and distribution information, see the file "COPYING"
|
* For copying and distribution information, see the file "COPYING"
|
||||||
* accompanying this file.
|
* accompanying this file.
|
||||||
*
|
*
|
||||||
* $Id: inst.c,v 1.3 1997/10/30 04:14:21 gdr Exp $
|
* $Id: inst.c,v 1.4 1998/03/08 18:18:58 gdr-ftp Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define __USE_DYNAMIC_GSSTRING__
|
#define __USE_DYNAMIC_GSSTRING__
|
||||||
|
@ -24,8 +24,7 @@
|
||||||
#include <orca.h>
|
#include <orca.h>
|
||||||
#include <gsos.h>
|
#include <gsos.h>
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
|
#include <gno/contrib.h>
|
||||||
#include "contrib.h"
|
|
||||||
|
|
||||||
/* actions */
|
/* actions */
|
||||||
#define ACTION_CHANGE_MODE 0x0001
|
#define ACTION_CHANGE_MODE 0x0001
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
* For copying and distribution information, see the file "COPYING"
|
* For copying and distribution information, see the file "COPYING"
|
||||||
* accompanying this file.
|
* accompanying this file.
|
||||||
*
|
*
|
||||||
* $Id: inst.rez,v 1.2 1997/10/30 04:14:21 gdr Exp $
|
* $Id: inst.rez,v 1.3 1998/03/08 18:19:00 gdr-ftp Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Types.Rez"
|
#include "Types.Rez"
|
||||||
|
#include "/src/gno/build.tools/builddate.rez"
|
||||||
|
|
||||||
resource rVersion (0x1, purgeable3, nocrossbank) {
|
resource rVersion (0x1, purgeable3, nocrossbank) {
|
||||||
|
|
||||||
|
@ -20,6 +21,6 @@ resource rVersion (0x1, purgeable3, nocrossbank) {
|
||||||
"install",
|
"install",
|
||||||
"Unix-style install program --\n"
|
"Unix-style install program --\n"
|
||||||
" copies files and creates directories\n"
|
" copies files and creates directories\n"
|
||||||
"Devin Reade <gdr@eddore.myrias.com>\n"
|
"Devin Reade\n"
|
||||||
"Canada"
|
BUILD_DATE
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user