head     1.5;
branch   ;
access   ;
symbols  ;
locks    bin:1.5; strict;
comment  @# @;


1.5
date     93.03.01.08.45.55;  author bin;  state Exp;
branches ;
next     1.4;

1.4
date     93.02.04.11.53.56;  author bin;  state Exp;
branches ;
next     1.3;

1.3
date     93.01.18.14.36.37;  author bin;  state Exp;
branches ;
next     1.2;

1.2
date     92.10.29.08.20.46;  author bin;  state Exp;
branches ;
next     1.1;

1.1
date     92.09.11.12.52.35;  author bin;  state Exp;
branches ;
next     ;


desc
@cef: fixed for asflags.h
@


1.5
log
@cef: fixed -a option
@
text
@# Object files required directly by as.386
O = main.o y_tab.o symtab.o lex.o common.o data.o space.o mwcvar.o \
 cmd.o build.o sym.o hash.o c_out.o utype.o getargs.o strtod.o

# Files required to build as.386 which are not scanned for comments
B=Makefile fixy tabbld.c getline.c table.386 docfix.c fixdoc.c script hash.c \
    utype.c utype.h mwcvar.c installer asfix.c  data.c strtod.c

# Files containing comments headed for the docs
S = asm.y lex.c common.c cmd.c build.c sym.c c_out.c space.c main.c getargs.c

# Header files
H = asm.h asme.h asflags.h

# Constructed header files
J = y_tab.h symtab.h

# Files required to build as.386 on the Atari
K = main.c utype.h tabbld.c table.386 y_tab.c lex.c common.c data.c space.c \
 strtod.c cmd.c build.c sym.c hash.c c_out.c utype.c  mwcvar.c \
 getargs.c ieee_f.c ieee_d.c getline.c asfix.c y_tab.h $H

I =  -I. -I..
CFLAGS = -A $I

as : $O
	cc -so as $O

install : as fixdoc asfix
	su root `srcpath installer` $<

# send a copy to mwc! where it will be saved on tape
save : $H $B $S
	tar cf - $< | compress -c > /tmp/a386.tar.Z
	uucp -r /tmp/a386.tar.Z mwc!/v/cef/

# send stuff to the atari which has a debugger
ker : $K
	kas $?
	touch ker

# scan for error messages, put them and the following comment in the docs
doc : $S
	cgrep -d @@ "(yyerror|yywarn|fatal)" $< | \
	 sed -f `srcpath script` | \
	 sort | \
	 fixdoc > doc

# list files on printer
list : $H $B $S
	ph  $?
	touch list

fixdoc : fixdoc.c
	cc -A $<

# convert old as format to new as format
asfix : asfix.c
	cc -A $<

y_tab.o : y_tab.c $H

# replace y.tab name with y_name for non UNIX systems
y_tab.c y_tab.h: asm.y
	yacc $<
	mv y.tab.c y_tab.c
	mv y.tab.h y_tab.h
	ed y_tab.c < `srcpath fixy`

lex.o: lex.c $J $H utype.h
tabbld: tabbld.c hash.o getline.o
	cc -A $< -lmisc

getline.o : getline.c
utype.o : utype.c utype.h
c_out.o : c_out.c utype.h
build.o : build.c $J $H
main.o : main.c $H
sym.o : sym.c $J $H
hash.o : hash.c
common.o: common.c $H
data.o : data.c $H
space.o : space.c $H
mwcvar.o : mwcvar.c $H
cmd.o : cmd.c $J $H
getargs.o : getargs.c

docfix : docfix.c
	cc $<

# build prehashed tables for assembler
symtab.c symtab.h: table.386 tabbld docfix
	tabbld < `srcpath table.386`
	sort document | docfix > opcodes.doc
	rm document
	egrep -v "(and|or|xor)(w|l).*0x64," test.s > t.s

symtab.o : symtab.c $J $H
	cc -c $I symtab.c
@


1.4
log
@cef: final Makefile before g++ beta
@
text
@a0 2
DESTDIR=/bin386/bin/as/

d24 1
a24 1
CFLAGS = -A $I -DGNU
d27 1
a27 1
	cc -so $(DESTDIR)as $O
@


1.3
log
@cef: new assembler for GNU compiler distribution
@
text
@d1 2
d4 2
a5 1
DESTDIR=/bin386/bin/
a6 3
O = main.o y_tab.o symtab.o lex.o common.o data.o space.o mwcvar.o \
 cmd.o build.o sym.o hash.o c_out.o utype.o getargs.o

d26 1
a26 1
CFLAGS = -A $I
d29 1
a29 2
	cc -so $(DSTDIR)as $O
	su root chmog 511 bin bin $(DESTDIR)$@@
@


1.2
log
@Update by cef for x87 suppt
@
text
@d2 2
a24 2
DESTDIR=/bin386/bin/

d29 2
a30 2
	cc -so $(DESTDIR)as $O
	chmog 511 bin bin $(DESTDIR)as
@


1.1
log
@Initial revision
@
text
@d6 2
a7 2
B=Makefile fixy tabbld.c getline.c table.386 docfix.c fixdoc.c script \
    mwcvar.c
d9 2
a10 3
# Files containing comments
S = utype.h asm.y lex.c common.c data.c strtod.c _pow10.c cmd.c build.c sym.c \
 hash.c c_out.c utype.c space.c asfix.c main.c getargs.c
d20 1
a20 1
 strtod.c _pow10.c cmd.c build.c sym.c hash.c c_out.c utype.c  mwcvar.c \
d23 3
a25 1
I =  -I.. -I.
d29 2
a30 1
	cc -so as $O
d32 2
a33 2
install : as
	su root `srcpath installer`
d35 1
d40 1
d45 1
d52 1
d60 1
d66 1
d94 1
@
