Mercurial > hg > CbC > old > device
diff Makefile @ 0:d35df41eac69
Initial revision
author | kono |
---|---|
date | Thu, 13 Jan 2000 02:41:41 +0900 |
parents | |
children | df7fa8cee67b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Thu Jan 13 02:41:41 2000 +0900 @@ -0,0 +1,45 @@ +CC = gcc +CFLAGS = -g +BASE=0 +STAGE=1 +MFLAGS=$(MFALGS) BASE=$(BASE) STAGE=$(STAGE) +MC=mc +PRINTF= # printf.c + +all: mc + +mc : mc-parse.o mc-nop-386.o mc-tree.o + $(CC) -g $> -o $@ +tar : + make clean + tar cBf - . | gzip > ../comp.tgz + +depend : + makedepend mc-parse.c mc-nop-386.c mc-tree.c + +clean : + -rm -f *.s *.o mc mc1 a.out *~ + +mc1 : b00.s b01.s mc-tree.o + $(CC) -g -o $@ $(PRINTF) mc-tree.o b00.s b01.s +b00.s : mc-parse.c mc + ./mc -s mc-parse.c + mv mcout.s $@ +b01.s : mc-nop-386.c mc + ./mc -s mc-nop-386.c + mv mcout.s $@ +b10.s : mc-parse.c mc1 + ./mc1 -s mc-parse.c + mv mcout.s $@ +b11.s : mc-nop-386.c $(PRINTF) mc1 + ./mc1 -s mc-nop-386.c + mv mcout.s $@ + +diff : b00.s b01.s b10.s b11.s + -diff b00.s b10.s + -diff b01.s b11.s +# DO NOT DELETE + +mc-parse.o: mc.h stdio.h +mc-nop-386.o: mc.h stdio.h +mc-tree.o: mc.h stdio.h