Plan 9 from Bell Labs’s /usr/web/sources/contrib/boyd/sys/src/cmd/sam.Make.linux.bundle

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


# To unbundle, run this file
echo libXg/Make.linux
sed 's/.//' >libXg/Make.linux <<'//GO.SYSIN DD libXg/Make.linux'
-#	Copyright (c) 1998 Lucent Technologies - All rights reserved.
-#
-#	Prototype Linux Makefile for libXg
-#	Courtesy of Boyd Roberts
-#
-#	Define operating system type: -DLINUX
-#
-#	Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
-#	if your compiler supports posix-compatible compilation
-OS=-DLINUX
-
-#	add -Iincludedir for any include directories that need to be searched
-INCS=-I../include -I/usr/X11R6/include
-
-#	set this if your X libraries are in different locations
-#	or if you need extra libraries to load with X11 applications
-XLIBS=/usr/X11R6/lib/libXt.a /usr/X11R6/lib/libX11.a \
-      /usr/X11R6/lib/libSM.a /usr/X11R6/lib/libICE.a
-
-#	add name of library orderer - use ":" if none
-RANLIB=ranlib
-
-#	add name of librarian
-AR=ar
-
-#	the name of the library
-LIB=libXg.a
-
-CFLAGS=$(OS) -D_LIBXG_EXTENSION $(INCS)
-CC=cc
-
-OBJS=	arc.o arith.o balloc.o bitblt.o bitbltclip.o border.o bscreenrect.o\
-	circle.o clipline.o clipr.o copymasked.o cursorset.o cursorswitch.o\
-	disc.o ellipse.o font.o gcs.o getrect.o gwin.o ldconvert.o latin1.o\
-	mkfont.o menuhit.o point.o polysegment.o rdbitmap.o rdbitmapfile.o\
-	rdfontfile.o rectclip.o rune.o segment.o string.o strwidth.o texture.o\
-	wrbitmap.o wrbitmapfile.o xtbinit.o
-
-all install:	$(LIB)
-compile:	$(LIB)
-test:	test.o
-	$(CC) -o $@ $? $(LIB) $(XLIBS) -lm
-	echo try running test
-clean:
-	rm -f *.o test
-
-nuke:	clean
-	rm -f $(LIB)
-
-$(LIB):	$(OBJS)
-	$(AR) rv $(LIB) $(OBJS)
-	$(RANLIB) $(LIB)
-
-$(OBJS):	../include/libg.h libgint.h ../include/libc.h
//GO.SYSIN DD libXg/Make.linux
echo libframe/Make.linux
sed 's/.//' >libframe/Make.linux <<'//GO.SYSIN DD libframe/Make.linux'
-#	Copyright (c) 1998 Lucent Technologies - All rights reserved.
-#
-#	Prototype Linux Makefile for libframe
-#	Courtesy of Boyd Roberts
-#
-#	Define operating system type: -DLINUX
-#
-#	Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
-#	if your compiler supports posix-compatible compilation
-OS=-DLINUX
-
-#	add -Iincludedir for any include directories that need to be searched
-#	for posix header files (for UMIPS, add -I/usr/include/posix)
-INCS=-I../include -I/usr/include/posix
-
-#	add name of library orderer - use ":" if none exists
-RANLIB=ranlib
-
-#	add name of library
-AR=ar
-
-CFLAGS=-c $(OS) $(INCS) -D_LIBXG_EXTENSION
-
-LIB=libframe.a
-CC=cc
-
-OBJ=frbox.o frdelete.o frdraw.o frinit.o frinsert.o frptofchar.o\
-	frselect.o frstr.o frutil.o misc.o
-
-all:	$(LIB)
-
-$(LIB):	$(OBJ)
-	$(AR) rv $(LIB) $(OBJ)
-	$(RANLIB) $(LIB)
-
-clean:
-	rm -f *.o
-
-nuke:	clean
-	rm -f $(LIB)
-
-install:	$(LIB)
-
-$(OBJ):	../include/u.h ../include/libc.h ../include/frame.h
//GO.SYSIN DD libframe/Make.linux
echo sam/Make.linux
sed 's/.//' >sam/Make.linux <<'//GO.SYSIN DD sam/Make.linux'
-
-#	Copyright (c) 1998 Lucent Technologies - All rights reserved.
-#
-#	Prototype Linux Makefile for sam
-#	Courtesy of Boyd Roberts
-#
-#	Define operating system type: -DLINUX
-#
-#	Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
-#	if your compiler supports posix-compatible compilation
-OS=-DLINUX
-
-#	add -Iincludedir for any include directories that need to be searched
-#	for posix header files (for UMIPS, add -I/usr/include/posix)
-INCS=-I../include -I/usr/include/posix
-
-#	Set the name of the environment variable containing the user's home directory
-HOMEDIR=HOME
-
-#	RSAMNAME and TERMNAME contain the names of the files containing the
-#	sam and samterm executables, respectively.  SAMDIR is the directory
-#	where sam is to be installed.  SAMSAVEDIR is the name of the directory
-#	where the samsave file restoration script is stored.
-RSAMNAME=sam
-TERMNAME=$(HOME)/bin/samterm
-SAMDIR=$(HOME)/bin
-SAMSAVEDIR=$(HOME)/bin
-
-#	Set TMP to a good place for tmp files (with lots of room)
-TMP=/var/tmp
-
-#	Set SHELLNAME and SHELLPATH to the name of a shell and the pathname
-#	of its executable
-SHELLNAME=sh
-SHELLPATH=/bin/sh
-
-#	Set RXNAME and RXPATHNAME to the name of the remote execution command
-#	and the pathname of its executable
-RXNAME=rsh
-RXPATHNAME=/usr/bin/rsh
-
-SAMSAVE=/bin/sh\\n$(SAMSAVEDIR)/samsave
-
-CFLAGS=$(OS) -D_LIBXG_EXTENSION $(INCS)
-
-SYSFLAGS=  -DHOMEDIR=\"$(HOMEDIR)\" -DRSAMNAME=\"$(RSAMNAME)\" \
-		-DTERMNAME=\"$(TERMNAME)\" -DTMP=\"$(TMP)\" \
-		-DSHELLNAME=\"$(SHELLNAME)\" -DSHELLPATH=\"$(SHELLPATH)\" \
-		-DRXNAME=\"$(RXNAME)\" -DRXPATHNAME=\"$(RXPATHNAME)\" \
-		-DSAMSAVE=\"$(SAMSAVE)\"
-
-LIB=../libframe/libframe.a ../libXg/libXg.a
-CC=cc
-
-OBJ=sam.o address.o buffer.o cmd.o disc.o error.o file.o io.o \
-	list.o mesg.o moveto.o multi.o rasp.o regexp.o shell.o \
-	string.o sys.o unix.o xec.o
-
-all:    sam
-
-sam:	$(OBJ) $(LIB)
-	$(CC) -o sam $(OBJ) $(LIB)
-
-clean:
-	rm -f *.o core
-
-nuke:	clean
-	rm -f sam
-
-install:	sam
-	cp sam $(SAMDIR)/$(RSAMNAME)
-	cp samsave $(SAMSAVEDIR)/samsave
-	chmod +x $(SAMSAVEDIR)/samsave
-
-$(OBJ):	sam.h ../include/u.h ../include/libc.h errors.h mesg.h
-
-cmd.o:	parse.h
-xec.o:	parse.h
-
-unix.o:	sam.h ../include/u.h ../include/libc.h errors.h mesg.h
-	$(CC) -c $(CFLAGS) $(SYSFLAGS) unix.c
//GO.SYSIN DD sam/Make.linux
echo samterm/Make.linux
sed 's/.//' >samterm/Make.linux <<'//GO.SYSIN DD samterm/Make.linux'
-
-#	Copyright (c) 1998 Lucent Technologies - All rights reserved.
-#
-#	Prototype Linux Makefile for samterm
-#	Courtesy of Boyd Roberts
-#
-#	Define operating system type: -DLINUX
-#
-#	Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
-#	if your compiler supports posix-compatible compilation
-OS=-DLINUX
-
-#	add -Iincludedir for any include directories that need to be searched
-#	for posix header files (for UMIPS, add -I/usr/include/posix)
-INCS=-I../include -I/usr/include/posix
-
-#	SAMTERM contains the name of the file containing the samterm
-#	executable.
-SAMTERM=$(HOME)/bin/samterm
-
-#	set this if your X libraries are in different locations
-#	or if you need extra libraries to load with X11 applications
-XLIBS=/usr/X11R6/lib/libXt.a /usr/X11R6/lib/libX11.a \
-      /usr/X11R6/lib/libSM.a /usr/X11R6/lib/libICE.a
-
-CFLAGS=$(OS) $(INCS) -D_LIBXG_EXTENSION
-
-LIBS=../libframe/libframe.a ../libXg/libXg.a
-CC=cc
-
-OBJ=main.o flayer.o icons.o io.o menu.o mesg.o rasp.o scroll.o unix.o
-
-all:	samterm
-
-samterm:	$(OBJ) $(LIBS)
-	$(CC) -o samterm $(OBJ) $(LIBS) $(XLIBS)
-
-clean:
-	rm -f *.o core
-
-nuke:	clean
-	rm -f samterm
-
-install:	samterm
-	cp samterm $(SAMTERM)
-
-$(OBJ):	samterm.h flayer.h ../include/frame.h ../include/libg.h ../include/u.h ../include/libc.h ../sam/mesg.h
//GO.SYSIN DD samterm/Make.linux

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].