head     1.5;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.5
date     86.01.29.21.01.47;  author gus;  state Exp;
branches ;
next     1.4;

1.4
date     85.10.03.21.46.37;  author gus;  state Exp;
branches ;
next     1.3;

1.3
date     85.05.28.03.00.51;  author gus;  state Exp;
branches ;
next     1.2;

1.2
date     84.09.29.04.48.04;  author ds;  state Released;
branches ;
next     1.1;

1.1
date     84.04.17.21.49.34;  author mann;  state Exp;
branches ;
next     ;


desc
@@


1.5
log
@Conforms to new buildfile format specs
@
text
@#buildfile for draw/mi


SUBDIRS = ../m68k ../vax ../unix

#include ../../buildmitemplate
 
all:
	domake "$(SUBDIRS)" "build all"

install:
	domake "$(SUBDIRS)" "build install"

clean:
	rm -f *.CKP *.BAK *.b *.o *.u
	domake "$(SUBDIRS)" "build clean"

rcs:
	domake "$(SUBDIRS)" "build rcs"
 
@


1.4
log
@A working version for the old world. Fixed double stdio.h problem.
@
text
@d1 1
a1 11
.SUFFIXES: .r .b .o .lst .lsth .press .c .hex .h .mss
#include ../../buildprefix
STUBS =
#ifdef X
C68FLAGS = -O -vxV -DM68K
CFLAGS = -g -I/usr/include -I$(VSYS)/include/mi -DUNIX
#else X
C68FLAGS = -O -vV -DM68K
CFLAGS = -O -I/usr/include -I$(VSYS)/include/mi -DUNIX
#endif X
LIBS = 
a2 16
ICON0 = icons/nouns/opencurve.hex icons/nouns/closedcurve.hex 
ICON1 = icons/nouns/filledcurve.hex icons/nouns/filledcircle.hex 
ICON2 = icons/nouns/filledelipse.hex icons/nouns/filledrectangle.hex 
ICON3 = icons/nouns/wideclosedarrow.hex icons/nouns/narrowclosedarrow.hex 
ICON4 = icons/nouns/presseditsymbol.hex icons/nouns/openpolygon.hex 
ICON5 = icons/nouns/closedpolygon.hex icons/nouns/filledpolygon.hex 
ICON6 = icons/nouns/closedcircle.hex icons/nouns/closedelipse.hex 
ICON7 = icons/nouns/closedrectangle.hex icons/nouns/wideopenarrow.hex 
ICON8 = icons/nouns/narrowopenarrow.hex icons/nouns/text.hex 
ICONn = $(ICON1) $(ICON2) $(ICON3) $(ICON4) $(ICON5) $(ICON6) $(ICON7) $(ICON8)
ICONa = icons/verbs/move.hex icons/verbs/copy.hex icons/verbs/erase.hex 
ICONb = icons/verbs/alter.hex icons/verbs/rotate.hex icons/verbs/scale.hex 
ICONc = icons/verbs/stretch.hex icons/verbs/group.hex icons/verbs/raise.hex 
ICONd = icons/verbs/lower.hex icons/verbs/opaque.hex 
ICONv = $(ICONa) $(ICONb) $(ICONc) $(ICONd)
ICONS = $(ICONn) $(ICONv)
d4 1
a4 8
SRC0 = backend.c input.c find.c point.c debug.c
SRC1 = load.c save.c help.c
SRC2 = nouns.c verbs.c commands.c 
SRC3 = icons.c init.c menu.c
SRC4 = drawpress.c spline.c splinedefs.c vec.c press.c
SRCn = draw.c
SRC = $(SRC0) $(SRC1) $(SRC2) $(SRC3) $(SRC4) $(SRCn)
SRCh = draw.h menu.h icons.h press.h vec.h dfont.h
d6 4
a9 7
SOBJ0 = backend.b input.b find.b point.b debug.b
SOBJ1 = load.b save.b help.b
SOBJ2 = nouns.b verbs.b commands.b
SOBJ3 = icons.b init.b menu.b
SOBJ4 = drawpress.b spline.b splinedefs.b vec.b press.b
SOBJn = draw.b
SOBJ = $(SOBJ0) $(SOBJ1)  $(SOBJ2) $(SOBJ3) $(SOBJ4) $(SOBJn)
d11 2
a12 7
UOBJ0 = backend.o input.o find.o point.o debug.o
UOBJ1 = load.o save.o help.o
UOBJ2 = nouns.o verbs.o commands.o
UOBJ3 = icons.o init.o menu.o
UOBJ4 = drawpress.o spline.o splinedefs.o vec.o press.o
UOBJn = draw.o
UOBJ = $(UOBJ0) $(UOBJ1) $(UOBJ2) $(UOBJ3) $(UOBJ4) $(UOBJn)
a13 76
LST0 = backend.lst input.lst find.lst point.lst debug.lst
LST1 = load.lst save.lst help.lst
LST2 = nouns.lst verbs.lst commands.lst
LST3 = icons.lst init.lst menu.lst
LST4 = drawpress.lst spline.lst splinedefs.lst vec.lst press.lst
LSTn = draw.lst
LST = $(LST0) $(LST1) $(LST2) $(LST3) $(LST4) $(LSTn)
LSTh = draw.lsth menu.lsth icons.lsth press.lsth vec.lsth dfont.lsth

all: unix sun
unix: draw
sun: draw.r
manuals: manual.press internal.press

draw: $(UOBJ)
	cc -o draw $(UOBJ) $(CFLAGS) $(STUBS) -lm /xV/libc/unix/libVgts.a

draw.r: $(SOBJ)
	cc68 $(C68FLAGS) -r -o draw.r $(SOBJ) $(LIBS) 

lint:
	lint -bhax -I$(VSYS)/include/mi -I$(VSYS)/include/m68k $(SRC) >lint.out

$(UOBJ)  $(SOBJ):	draw.h
$(UOBJ3) $(SOBJ3):	icons.h menu.h
$(UOBJ4) $(SOBJ4):	press.h vec.h dfont.h

icons.o icons.b: $(ICONS) icons.c



.c.o:
	cc -c $(CFLAGS) $*.c

.c.b:
	cc68 -c $(C68FLAGS) -o $@@ $*.c

.mss.press:
	scribe $<

#---------------------------------------------------------------------
#     General purpose nicknacks.
#---------------------------------------------------------------------

manual-listings: manual.press internal.press
	@@echo Making a listing of the manuals on the Dover.
	@@cz manual.press
	@@cz internal.press
	@@echo

boise-listings:
	@@echo Making listings on Boise.
	@@pr -f -l78 README buildfile $(SRCh) $(SRC) | boise -b "Draw program"

all-listings:
	@@echo Making listings on the dover.
	@@cz README buildfile
	@@echo
	@@touch $(LST) $(LSTh)
	@@yapp $(SRC) $(SRCh)

no-listings:
	@@touch $(LST) $(LSTh)

incr-listings: $(LST) $(LSTh)

.c.lst:
	@@echo Listing $? on the Dover.
	@@yapp $? 
	@@touch $@@

.h.lsth:
	@@echo Listing $? on the Dover.
	@@yapp $? 
	@@touch $@@

d15 2
a16 2
	rm -f *.BAK *.CKP core .emacs* *.press *.otl *.aux *.err
	rm -f *.o *.b *.lst *.lsth draw draw.r lint.out
d18 3
a20 6
install: all
	$(NETINSTALL) -p draw.r $(VSYS)/bin
	$(NETINSTALL) -p -m 755 draw /usr/local/bin



@


1.3
log
@new version of draw - lots of changes
@
text
@d1 2
a2 3
.SUFFIXES: .b .c .lst .h .mss .press .o
.SUFFIXES: .r .b .o .lst .press .c .h .mss
#include /xV/buildprefix
d5 2
a6 2
C68FLAGS = -O -vxV
CFLAGS = -g -I/usr/sun/xinclude -DVAX
d8 2
a9 2
C68FLAGS = -O -vV
CFLAGS = -O -I/usr/sun/include -DVAX
d37 1
a37 1
SRCh = draw.h
d39 7
a45 7
OBJ0 = backend.b input.b find.b point.b debug.b
OBJ1 = load.b save.b help.b
OBJ2 = nouns.b verbs.b commands.b
OBJ3 = icons.b init.b menu.b
OBJ4 = drawpress.b spline.b splinedefs.b vec.b press.b
OBJn = draw.b
OBJ = $(OBJ0) $(OBJ1)  $(OBJ2) $(OBJ3) $(OBJ4) $(OBJn)
d47 7
a53 7
VOBJ0 = backend.o input.o find.o point.o debug.o
VOBJ1 = load.o save.o help.o
VOBJ2 = nouns.o verbs.o commands.o
VOBJ3 = icons.o init.o menu.o
VOBJ4 = drawpress.o spline.o splinedefs.o vec.o press.o
VOBJn = draw.o
VOBJ = $(VOBJ0) $(VOBJ1) $(VOBJ2) $(VOBJ3) $(VOBJ4) $(VOBJn)
d62 1
d64 2
a65 1
vax: draw
a66 1
all: sun vax
d69 2
a70 2
draw: $(VOBJ)
	cc -o draw $(VOBJ) $(CFLAGS) $(STUBS) -lm /xV/libc/unix/libVgts.a
d72 2
a73 2
draw.r: $(OBJ)
	cc68 $(C68FLAGS) -r -o draw.r $(OBJ) $(LIBS) 
d76 1
a76 1
	lint -bhax -I/usr/sun/include $(SRC) >lint.out
d78 3
a80 3
$(VOBJ)  $(OBJ):	draw.h
$(VOBJ3) $(OBJ3):	icons.h menu.h
$(VOBJ4) $(OBJ4):	press.h vec.h dfont.h
d100 1
a102 1
	@@echo Making a listing of the manuals on the Dover.
d107 1
a107 1
	@@pr -f -l78 README makefile draw.h $(SRC) | boise -b "Draw program"
a109 1
	@@cz README makefile draw.h &
d111 1
d113 2
a114 2
	@@touch $(LST)
	@@yapp $(SRC) &
d117 1
a117 1
	@@touch $(LST)
d119 1
a119 1
incr-listings: $(LST)
d122 2
a123 1
	@@yapp $? &
a124 2
	@@echo Listed $? on the Dover.
	@@echo
d126 5
d132 2
a133 2
	rm -f *.BAK *.CKP core .emacs* *.press *.otl *.aux
	rm -f *.o *.b *.lst draw draw.r bitpress lint.out
d135 3
a138 8
install: all
#ifdef X
	netinstall -x -p draw.r /usr/sun/xVboot
	netinstall -x -p -m 755 draw /usr/local/bin
#else X
	netinstall -p draw.r /usr/sun/Vboot
	netinstall -p -m 755 draw /usr/local/bin
#endif X
@


1.2
log
@Removed the instructions for making the Unix version of draw, which noone
used anyway.
@
text
@d2 2
a3 2

#CFLAGS = -I/usr/sun/include -DVAX
d6 2
a7 1
C68FLAGS = -O -V -vx
d9 2
a10 1
C68FLAGS = -O -V
d14 22
a35 4
SRC0 = misc.c init.c input.c find.c debug.c
SRC1 = perm.c defaults.c
SRC2 = rotate.c scale.c move.c copy.c create.c
SRC3 = alter.c erase.c lower.c raise.c
d37 1
a37 1
SRC = $(SRC0) $(SRC1) $(SRC2) $(SRC3) $(SRCn)
d40 5
a44 4
OBJ0 = misc.b init.b input.b find.b debug.b
OBJ1 = perm.b defaults.b
OBJ2 = rotate.b scale.b move.b copy.b create.b
OBJ3 = alter.b erase.b lower.b raise.b
d46 1
a46 1
OBJ = $(OBJ0) $(OBJ1)  $(OBJ2) $(OBJ3) $(OBJn)
d48 7
a54 6
#VOBJ0 = misc.o init.o input.o find.o debug.o
#VOBJ1 = perm.o defaults.o
#VOBJ2 = rotate.o scale.o move.o copy.o create.o
#VOBJ3 = alter.o erase.o lower.o raise.o
#VOBJn = draw.o
#VOBJ = $(VOBJ0) $(VOBJ1) $(VOBJ2) $(VOBJ3) $(VOBJn)
d56 5
a60 4
LST0 = misc.lst init.lst input.lst find.lst debug.lst
LST1 = perm.lst defaults.lst
LST2 = rotate.lst scale.lst move.lst copy.lst create.lst
LST3 = alter.lst erase.lst lower.lst raise.lst
d62 1
a62 1
LST = $(LST0) $(LST1) $(LST2) $(LST3) $(LSTn)
d64 3
a66 3

#all: draw.r draw
all: draw.r
d69 2
a70 2
#draw: $(VOBJ)
#	cc -O -o draw $(VOBJ) $(CFLAGS) $(STUBS) -lm -lVgts
d78 3
a80 2
#$(VOBJ) $(OBJ):	draw.h
$(OBJ):	draw.h
d82 1
a82 2
#.c.o:
#	cc -c $(C68FLAGS) $(CFLAGS) $<
d84 5
d90 1
a90 1
	cc68 -c $(C68FLAGS) $<
d129 1
a129 2
#	rm -f *.o *.b *.lst draw draw.r bitpress lint.out
	rm -f *.o *.b *.lst draw.r bitpress lint.out
d131 2
a132 1
install: draw.r
d135 1
d138 1
a140 2
backup:
	cd ..; cpdir draw ../../Vbackup/cmds/draw
a141 5
build:
	buildmake

xbuild:
	buildmake -DX=1
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
CFLAGS = -I/usr/sun/include -DVAX
d27 6
a32 6
VOBJ0 = misc.o init.o input.o find.o debug.o
VOBJ1 = perm.o defaults.o
VOBJ2 = rotate.o scale.o move.o copy.o create.o
VOBJ3 = alter.o erase.o lower.o raise.o
VOBJn = draw.o
VOBJ = $(VOBJ0) $(VOBJ1) $(VOBJ2) $(VOBJ3) $(VOBJn)
d42 2
a43 1
all: draw.r draw
d46 2
a47 2
draw: $(VOBJ)
	cc -O -o draw $(VOBJ) $(CFLAGS) $(STUBS) -lm -lVgts
d55 2
a56 1
$(VOBJ) $(OBJ):	draw.h
d58 2
a59 2
.c.o:
	cc -c $(C68FLAGS) $(CFLAGS) $<
d101 2
a102 1
	rm -f *.o *.b *.lst draw draw.r bitpress lint.out
@
