mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-12-22 14:30:29 +00:00
61474a874f
and link. However, it does not work yet and thus still needs work. The *.asm files have had the following common changes: - 'keep' lines were eliminated - the 'mcopy' now takes the macro from the /obj/gno/bin/gsh directory. This is in anticipation of having the macro files generated from a single source file; there is a large amount of duplication. For the moment, the makefile merely copies the old macro files from the "M" directory to the /obj/gno/bin/gsh directory. - start each file with a dummy routine so that the source code winds up in the *.o rather than the *.root file. - added the 'setcom 60' directive; there were many source lines that were otherwise getting truncated. The makefile is a complete rewrite.
103 lines
2.8 KiB
Makefile
103 lines
2.8 KiB
Makefile
#
|
|
# makefile for building gsh. This is for use with dmake.
|
|
#
|
|
# $Id: Makefile,v 1.2 1998/04/24 15:38:31 gdr-ftp Exp $
|
|
#
|
|
# Devin Reade, February 1998.
|
|
#
|
|
|
|
PROG = gsh
|
|
MAIN = main
|
|
MAINSRC = main.asm
|
|
SRCS = $(MAINSRC) alias.asm bufpool.asm builtin.asm cmd.asm dir.asm \
|
|
edit.asm expand.asm hash.asm history.asm invoke.asm jobs.asm \
|
|
orca.asm prompt.asm shell.asm shellutil.asm \
|
|
shellvar.asm stdio.asm sv.asm term.asm
|
|
# unused: mmdebug.asm
|
|
STACK = 4096
|
|
|
|
# This is a problem. gsh was written to use the old termcap library.
|
|
# Not only do we no longer build this library, but we don't even have the
|
|
# sources for it. This needs to be changed. For the moment, use the
|
|
# ltermcap library from GNO v2.0.4.
|
|
#
|
|
# LDADD = -ltermcap
|
|
LDLIBS += -l/trenco3/lib.206/ltermcap
|
|
|
|
# Make sure our macro files get built before trying to assemble source files.
|
|
# LOCAL_SETUP = macros
|
|
|
|
.INCLUDE : /src/gno/prog.mk
|
|
|
|
LOCAL_MACRO_SRC = # gsh.mac
|
|
MACRO_SRC = \
|
|
$(LOCAL_MACRO_SRC) \
|
|
/usr/ainclude/m16.gno \
|
|
$(LOCAL_MACRO_SRC) \
|
|
$(ORCA_DIST)/libraries/orcainclude/m16.orca \
|
|
$(ORCA_DIST)/libraries/orcainclude/m16.gs.os \
|
|
$(ORCA_DIST)/libraries/orcainclude/m16.tools \
|
|
$(ORCA_DIST)/libraries/orcainclude/m16.shell \
|
|
$(ORCA_DIST)/libraries/ainclude/m16.pascal \
|
|
$(ORCA_DIST)/libraries/ainclude/m16.debug
|
|
|
|
MACROS = \
|
|
$(OBJ_DIR)main.mac \
|
|
$(OBJ_DIR)alias.mac \
|
|
$(OBJ_DIR)bufpool.mac \
|
|
$(OBJ_DIR)builtin.mac \
|
|
$(OBJ_DIR)cmd.mac \
|
|
$(OBJ_DIR)dir.mac \
|
|
$(OBJ_DIR)edit.mac \
|
|
$(OBJ_DIR)expand.mac \
|
|
$(OBJ_DIR)hash.mac \
|
|
$(OBJ_DIR)history.mac \
|
|
$(OBJ_DIR)invoke.mac \
|
|
$(OBJ_DIR)jobs.mac \
|
|
$(OBJ_DIR)mmdebug.mac \
|
|
$(OBJ_DIR)orca.mac \
|
|
$(OBJ_DIR)prompt.mac \
|
|
$(OBJ_DIR)shell.mac \
|
|
$(OBJ_DIR)shellutil.mac \
|
|
$(OBJ_DIR)shellvar.mac \
|
|
$(OBJ_DIR)stdio.mac \
|
|
$(OBJ_DIR)sv.mac \
|
|
$(OBJ_DIR)term.mac
|
|
|
|
macros: $(MACROS)
|
|
|
|
#$(OBJ_DIR)%.mac: %.asm
|
|
# @echo making $@
|
|
# @$(MACGEN) $(MACGEN_FLAGS) $*.asm $@ $(MACRO_SRC)
|
|
|
|
# $(MACROS): $(LOCAL_MACRO_SRC)
|
|
|
|
#$(OBJ_DIR)alias.mac: $(MACRO_SRC)
|
|
# $(MACGEN) $(MACGEN_FLAGS) alias.asm $@ $(MACRO_SRC)
|
|
|
|
#bork:
|
|
# @echo OBJS are $(OBJS)
|
|
# gsh -c ${mktmp echo $(JINCL) $(JDEFS) $< > $@}
|
|
|
|
$(ODIR)alias.o: $(OBJ_DIR)alias.mac
|
|
$(ODIR)bufpool.o: $(OBJ_DIR)bufpool.mac
|
|
$(ODIR)builtin.o: $(OBJ_DIR)builtin.mac
|
|
$(ODIR)cmd.o: $(OBJ_DIR)cmd.mac
|
|
$(ODIR)dir.o: $(OBJ_DIR)dir.mac
|
|
$(ODIR)edit.o: $(OBJ_DIR)edit.mac
|
|
$(ODIR)expand.o: $(OBJ_DIR)expand.mac
|
|
$(ODIR)hash.o: $(OBJ_DIR)hash.mac
|
|
$(ODIR)history.o: $(OBJ_DIR)history.mac
|
|
$(ODIR)invoke.o: $(OBJ_DIR)invoke.mac
|
|
$(ODIR)jobs.o: $(OBJ_DIR)jobs.mac
|
|
$(ODIR)main.o: $(OBJ_DIR)main.mac
|
|
$(ODIR)mmdebug.o: $(OBJ_DIR)mmdebug.mac
|
|
$(ODIR)orca.o: $(OBJ_DIR)orca.mac
|
|
$(ODIR)prompt.o: $(OBJ_DIR)prompt.mac
|
|
$(ODIR)shell.o: $(OBJ_DIR)shell.mac
|
|
$(ODIR)shellutil.o: $(OBJ_DIR)shellutil.mac
|
|
$(ODIR)shellvar.o: $(OBJ_DIR)shellvar.mac
|
|
$(ODIR)stdio.o: $(OBJ_DIR)stdio.mac
|
|
$(ODIR)sv.o: $(OBJ_DIR)sv.mac
|
|
$(ODIR)term.o: $(OBJ_DIR)term.mac
|