head     1.1;
access   ;
symbols  ;
locks    dvolodin:1.1;
comment  @# @;


1.1
date     87.02.26.16.54.55;  author alex;  state Exp;
branches ;
next     ;


desc
@
Makefile
@



1.1
log
@Initial revision
@
text
@#          ####                                                                       #
#         #    #                                        ##
#         #                             #####          # #
#         #              ######         #   #            #
#         #                             #   #            #
#         #    #                        #   #            #
#          ####                         #   #           ###


CFLAGS=-O -f
OBJ=c10.o c11.o c12.o c13.o

c1:     $(OBJ) table.o xs.o
	$(CC) -f $(OBJ) table.o xs.o -o 0c1
	c7t10 0c1
	mv 0c1 c1
	-rm -f ../c1
	ln c1 ../c1

$(OBJ): c1.h

c10.o:  c10.c
c11.o:  c11.c
c12.o:  c12.c

.c.o:
	xstr -c $*.c
	$(CC) -c $(CFLAGS) x.c
	mv x.o $*.o
	-rm -f x.c

table.o: table.s cvopt
	unexpand -a < table.s | cvopt  | sed 's/.data/.text/' > table.i
	as -o table.o table.i

c13.o:  c13.c
	$(CC) -S $(CFLAGS) c13.c
	sed 's/.data/.text/' <c13.s >x.s
	as - -o c13.o x.s
	-rm -f c13.s x.s

strings: $(OBJ)

xs.o:   strings
	xstr
	$(CC) -S xs.c
	-rm -f xs.c
	sed <xs.s 's/.data/.text/' >xy.s
	-rm -f xs.s
	as -o xs.o xy.s
	-rm -f xy.s

cvopt:  cvopt.c
	$(CC) -s -O cvopt.c -o cvopt

clear:
	-rm -f c1 table.i .b cvopt strings xs.c x.c c13.s xy.s x.s xs.s
	-rm -f *.[ob]

.DEFAULT :  RCS/$@@.c
	co $(COFLAGS) $@@
@
