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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [fp/] [implementation/] [mmix/] [makefile.dos] - Blame information for rev 139

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

Line No. Rev Author Line
1 15 hellwig
#
2
#   Makefile for MMIXware under DOS
3
#
4
#   Comments to andreas.scherer@pobox.com
5
#
6
#   If you're using nmake, you'll need to save the Unix makefile and
7
#   rename this file to makefile, as in:
8
#
9
#               ren Makefile Makefile.unix
10
#               ren Makefile.dos Makefile
11
#
12
#       Then use nmake normally.
13
 
14
#   Be sure that CWEB version 3.0 or greater is installed before proceeding!
15
#   In fact, CWEB 3.6 is recommended for making hardcopy or PDF documentation.
16
 
17
#   If you prefer optimization to debugging, change /Zi to something like /GB:
18
MAKE   = $(MAKE) /$(MAKEFLAGS)
19
CFLAGS = /Zi
20
 
21
.SUFFIXES: .dvi .tex .w .ps .pdf
22
 
23
.tex.dvi:
24
        tex $*.tex
25
 
26
.tex.pdf:
27
        pdftex $*.tex
28
 
29
.dvi.ps:
30
        dvips $* -o $*.ps
31
 
32
.w.c:
33
    if exist $*.ch ctangle $*.w $*.ch
34
    if not exist $*.ch ctangle $*.w
35
 
36
.w.tex:
37
    if exist $*.ch cweave $*.w $*.ch
38
    if not exist $*.ch cweave $*.w
39
 
40
.w.obj:
41
        $(MAKE)  $*.c
42
        $(MAKE)  $*.obj
43
 
44
.w.exe:
45
        $(MAKE)  $*.c
46
        $(MAKE)  $*.exe
47
 
48
.w.dvi:
49
        $(MAKE)  $*.tex
50
        $(MAKE)  $*.dvi
51
 
52
.w.ps:
53
        $(MAKE)  $*.dvi
54
        $(MAKE)  $*.ps
55
 
56
.w.pdf:
57
        $(MAKE)  $*.tex
58
        $(MAKE)  $*.pdf
59
 
60
WEBFILES = mmix-def.w mmixal.w "mmix-arith.w" mmix-sim.w mmix-io.w mmix-mem.w \
61
        mmotype.w abstime.w mmix-doc.w "mmix-config.w" mmix-pipe.w mmmix.w
62
CHANGEFILES =
63
TESTFILES = *.mms silly.run silly.out *.mmconfig *.mmix
64
MISCFILES = Makefile makefile.dos README mmix.mp mmix.1
65
ALL = $(WEBFILES) $(TESTFILES) $(MISCFILES)
66
 
67
basic:  mmixal.exe mmix.exe
68
 
69
doc:    mmix-doc.ps mmixal.ps mmix-sim.ps abstime.ps
70
 
71
all:    mmixal.exe mmix.exe mmotype.exe mmmix.exe
72
 
73
clean:
74
        del *~
75
        del *.obj
76
        del *.c
77
        del *.h
78
        del *.tex
79
        del *.log
80
        del *.dvi
81
        del *.toc
82
        del *.idx
83
        del *.scn
84
        del *.ps
85
        del *.pdf
86
        del *.ilk
87
        del *.pdb
88
 
89
abstime.exe: abstime.obj
90
    $(CC) $(CFLAGS) abstime.obj /Feabstime.exe
91
 
92
"mmix-pipe.obj": "mmix-pipe.c" abstime.exe
93
        .\abstime >abstime.h
94
        $(CC) $(CFLAGS) -c mmix-pipe.c
95
 
96
mmmix.exe:  "mmix-arith.obj" "mmix-pipe.obj" "mmix-config.obj" \
97
            "mmix-mem.obj" "mmix-io.obj" mmmix.c
98
        $(CC) $(CFLAGS) mmmix.c \
99
          "mmix-arith.obj" "mmix-pipe.obj" "mmix-config.obj" "mmix-mem.obj" \
100
      "mmix-io.obj" /Femmmix.exe
101
 
102
mmixal.exe: "mmix-arith.obj" mmixal.c
103
        $(CC) $(CFLAGS) mmixal.c "mmix-arith.obj" /Femmixal.exe
104
 
105
mmix.exe:  "mmix-arith.obj" mmix-io.obj mmix-sim.c abstime.exe
106
        .\abstime >abstime.h
107
        $(CC) $(CFLAGS) mmix-sim.c \
108
                     "mmix-arith.obj" mmix-io.obj /Femmix.exe
109
 
110
mmotype.exe: mmotype.obj
111
        $(CC) $(CFLAGS) mmotype.obj /Femmotype.exe
112
 
113
tarfile: $(ALL)
114
        tar cvf /tmp/mmix.tar $(ALL)
115
        gzip -9 /tmp/mmix.tar
116
 
117
 

powered by: WebSVN 2.1.0

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