OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [fp/] [implementation/] [mmix/] [Makefile] - Blame information for rev 118

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 15 hellwig
#
2
#   Makefile for MMIXware
3
#
4
 
5
#   Be sure that CWEB version 3.0 or greater is installed before proceeding!
6
#   In fact, CWEB 3.61 is recommended for making hardcopy or PDF documentation.
7
 
8
#   If you prefer optimization to debugging, change -g to something like -O:
9
CFLAGS = -g
10
 
11
#   Uncomment the second line if you use pdftex to bypass .dvi files:
12
PDFTEX = dvipdfm
13
#PDFTEX = pdftex
14
 
15
.SUFFIXES: .dvi .tex .w .ps .pdf .mmo .mmb .mms
16
 
17
.tex.dvi:
18
        tex $*.tex
19
 
20
.dvi.ps:
21
        dvips $* -o $*.ps
22
 
23
.w.c:
24
        if test -r $*.ch; then ctangle $*.w $*.ch; else ctangle $*.w; fi
25
 
26
.w.tex:
27
        if test -r $*.ch; then cweave $*.w $*.ch; else cweave $*.w; fi
28
 
29
.w.o:
30
        make $*.c
31
        make $*.o
32
 
33
.w:
34
        make $*.c
35
        make $*
36
 
37
.w.dvi:
38
        make $*.tex
39
        make $*.dvi
40
 
41
.w.ps:
42
        make $*.dvi
43
        make $*.ps
44
 
45
.w.pdf:
46
        make $*.tex
47
        case "$(PDFTEX)" in \
48
         dvipdfm ) tex "\let\pdf+ \input $*"; dvipdfm $* ;; \
49
         pdftex ) pdftex $* ;; \
50
        esac
51
 
52
.mmo.mmb:
53
        mmix -D$*.mmb $*.mmo
54
 
55
.mms.mmo:
56
        mmixal -x -b 250 -l $*.mml $*.mms
57
 
58
WEBFILES = abstime.w boilerplate.w mmix-arith.w mmix-config.w mmix-doc.w \
59
        mmix-io.w mmix-mem.w mmix-pipe.w mmix-sim.w mmixal.w mmmix.w mmotype.w
60
CHANGEFILES =
61
TESTFILES = *.mms silly.run silly.out *.mmconfig *.mmix
62
MISCFILES = Makefile makefile.dos README mmix.mp mmix.1
63
ALL = $(WEBFILES) $(TESTFILES) $(MISCFILES)
64
 
65
basic:  mmixal mmix
66
 
67
doc:    mmix-doc.ps mmixal.dvi mmix-sim.dvi
68
        dvips -n13 mmixal.dvi -o mmixal-intro.ps
69
        dvips -n8 mmix-sim.dvi -o mmix-sim-intro.ps
70
 
71
all:    mmixal mmix mmotype mmmix
72
 
73
clean:
74
        rm -f *~ *.o *.c *.h *.tex *.log *.dvi *.toc *.idx *.scn *.ps core
75
 
76
mmix-pipe.o: mmix-pipe.c abstime
77
        ./abstime > abstime.h
78
        $(CC) $(CFLAGS) -c mmix-pipe.c
79
        rm abstime.h
80
 
81
mmix-config.o: mmix-pipe.o
82
 
83
mmmix:  mmix-arith.o mmix-pipe.o mmix-config.o mmix-mem.o mmix-io.o mmmix.c
84
        $(CC) $(CFLAGS) mmmix.c \
85
          mmix-arith.o mmix-pipe.o mmix-config.o mmix-mem.o mmix-io.o -o mmmix
86
 
87
mmixal: mmix-arith.o mmixal.c
88
        $(CC) $(CFLAGS) mmixal.c mmix-arith.o -o mmixal
89
 
90
mmix:   mmix-arith.o mmix-io.o mmix-sim.c abstime
91
        ./abstime > abstime.h
92
        $(CC) $(CFLAGS) mmix-sim.c mmix-arith.o mmix-io.o -o mmix
93
        rm abstime.h
94
 
95
tarfile: $(ALL)
96
        tar cvf /tmp/mmix.tar $(ALL)
97
        gzip -9 /tmp/mmix.tar

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.