Hopefully it is actually fixed this time :P
[nasm/nasm.git] / Mkfiles / Makefile.wcw
blob2ee56ef24783909bc3cf934b462075f1cab505f6
1 # host: watcom c (dos, windows, os/2)
2 # target: windows nt character mode executable
3 # Makefile for the Netwide Assembler
5 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
6 # Julian Hall. All rights reserved. The software is
7 # redistributable under the licence given in the file "Licence"
8 # distributed in the NASM archive.
10 # this makefile is designed for use with of Watcom C 32 bit compiler
11 # it generates win32 console (character mode) executable
12 # it has been tested with
13 # borland make.exe 4.0
14 # microsoft nmake.exe 1.3
15 # watcom wmake.exe /u 3.2 (remember about that /u option :)
17 # all this should compile under watcom c 9.5, 10.0, 10.5 and 10.6
18 # i dont know about 11.0 because i didnt yet see it
20 CFLAGS = -fpi -mf -3r -s -bt=dos -oilrt
21 # -fpi    inline math + emulation
22 # -mf     flat model (isnt it by default :)
23 # -3r     386 register calling (does everyone have pentium nowadays ?)
24 # -s      no stack checking
25 # -bt=nt  target system - windows nt
26 # -oilrt  mega cool optimization :)
28 CC = wcc386.exe $(CFLAGS)
29 # compiler
30 LFLAGS = SYSTEM nt
31 # linker flags
32 # target system nt - character mode
33 LD = wlink.exe $(LFLAGS)
34 # linker
35 OBJ = obj
36 # whatever
38 .c.$(OBJ):
39         $(CC) $*.c
41 NASMOBJS = nasm.$(OBJ) nasmlib.$(OBJ) float.$(OBJ) insnsa.$(OBJ) \
42            assemble.$(OBJ) labels.$(OBJ) parser.$(OBJ) outform.$(OBJ) \
43            output/outbin.$(OBJ) output/outaout.$(OBJ) output/outcoff.$(OBJ) output/outelf.$(OBJ) \
44            output/outobj.$(OBJ) output/outas86.$(OBJ) output/outrdf.$(OBJ) output/outdbg.$(OBJ) \
45            preproc.$(OBJ) listing.$(OBJ) eval.$(OBJ) output/outrdf2.$(OBJ) \
46            output/outieee.$(OBJ)
48 NDISASMOBJS = ndisasm.$(OBJ) disasm.$(OBJ) sync.$(OBJ) nasmlib.$(OBJ) \
49               insnsd.$(OBJ)
51 all : nasm.exe ndisasm.exe
52         echo This is dummy command for dumb make
54 nasm.exe: $(NASMOBJS) NASM.LNK
55         $(LD) @NASM.LNK
57 ndisasm.exe: $(NDISASMOBJS) NDISASM.LNK
58         $(LD) @NDISASM.LNK
60 # linker response files
61 # that may take long, too much spawning command.com :)
62 NASM.LNK: makefile.wcw
63         echo N nasm.exe > NASM.LNK
64         echo F nasm.$(OBJ) >> NASM.LNK
65         echo F nasmlib.$(OBJ) >> NASM.LNK
66         echo F eval.$(OBJ) >> NASM.LNK
67         echo F float.$(OBJ) >> NASM.LNK
68         echo F insnsa.$(OBJ) >> NASM.LNK
69         echo F assemble.$(OBJ) >> NASM.LNK
70         echo F labels.$(OBJ) >> NASM.LNK
71         echo F listing.$(OBJ) >> NASM.LNK
72         echo F parser.$(OBJ) >> NASM.LNK
73         echo F preproc.$(OBJ) >> NASM.LNK
74         echo F outform.$(OBJ) >> NASM.LNK
75         echo F output/outbin.$(OBJ) >> NASM.LNK
76         echo F output/outaout.$(OBJ) >> NASM.LNK
77         echo F output/outcoff.$(OBJ) >> NASM.LNK
78         echo F output/outelf.$(OBJ) >> NASM.LNK
79         echo F output/outobj.$(OBJ) >> NASM.LNK
80         echo F output/outas86.$(OBJ) >> NASM.LNK
81         echo F output/outrdf.$(OBJ) >> NASM.LNK
82         echo F output/outrdf2.$(OBJ) >> NASM.LNK
83         echo F output/outieee.$(OBJ) >> NASM.LNK
84         echo F output/outdbg.$(OBJ) >> NASM.LNK
86 NDISASM.LNK: makefile.wcw
87         echo N ndisasm.exe > NDISASM.LNK
88         echo F ndisasm.$(OBJ) >> NDISASM.LNK
89         echo F disasm.$(OBJ) >> NDISASM.LNK
90         echo F sync.$(OBJ) >> NDISASM.LNK
91         echo F nasmlib.$(OBJ) >> NDISASM.LNK
92         echo F insnsd.$(OBJ) >> NDISASM.LNK
94 clean :
95         del *.obj
96         del *.lnk
97         del nasm.exe
98         del ndisasm.exe
100 #-- Magic hints to mkdep.pl --#
101 # @object-ending: ".$(OBJ)"
102 # @path-separator: "/"
103 #-- Everything below is generated by mkdep.pl - do not edit --#
104 assemble.$(OBJ): assemble.c preproc.h insns.h regs.h version.h nasmlib.h \
105  nasm.h regvals.c insnsi.h assemble.h
106 disasm.$(OBJ): disasm.c insns.h sync.h regdis.c regs.h regs.c version.h \
107  nasm.h insnsn.c names.c insnsi.h disasm.h
108 eval.$(OBJ): eval.c labels.h eval.h regs.h version.h nasmlib.h nasm.h
109 float.$(OBJ): float.c regs.h version.h nasm.h
110 insnsa.$(OBJ): insnsa.c insns.h regs.h version.h nasm.h insnsi.h
111 insnsd.$(OBJ): insnsd.c insns.h regs.h version.h nasm.h insnsi.h
112 insnsn.$(OBJ): insnsn.c
113 labels.$(OBJ): labels.c regs.h version.h nasmlib.h nasm.h
114 listing.$(OBJ): listing.c regs.h version.h nasmlib.h nasm.h listing.h
115 macros.$(OBJ): macros.c
116 names.$(OBJ): names.c regs.c insnsn.c
117 nasm.$(OBJ): nasm.c labels.h preproc.h insns.h parser.h eval.h regs.h \
118  outform.h version.h nasmlib.h nasm.h assemble.h insnsi.h listing.h
119 nasmlib.$(OBJ): nasmlib.c insns.h regs.h regs.c version.h nasmlib.h nasm.h \
120  insnsn.c names.c insnsi.h
121 ndisasm.$(OBJ): ndisasm.c insns.h sync.h regs.h version.h nasmlib.h nasm.h \
122  insnsi.h disasm.h
123 outform.$(OBJ): outform.c regs.h outform.h version.h nasm.h
124 output/outaout.$(OBJ): output/outaout.c regs.h outform.h version.h nasmlib.h \
125  nasm.h
126 output/outas86.$(OBJ): output/outas86.c regs.h outform.h version.h nasmlib.h \
127  nasm.h
128 output/outbin.$(OBJ): output/outbin.c labels.h eval.h regs.h outform.h \
129  version.h nasmlib.h nasm.h
130 output/outcoff.$(OBJ): output/outcoff.c regs.h outform.h version.h nasmlib.h \
131  nasm.h
132 output/outdbg.$(OBJ): output/outdbg.c regs.h outform.h version.h nasmlib.h \
133  nasm.h
134 output/outelf.$(OBJ): output/outelf.c regs.h outform.h version.h nasmlib.h \
135  nasm.h
136 output/outieee.$(OBJ): output/outieee.c regs.h outform.h version.h nasmlib.h \
137  nasm.h
138 output/outobj.$(OBJ): output/outobj.c regs.h outform.h version.h nasmlib.h \
139  nasm.h
140 output/outrdf.$(OBJ): output/outrdf.c regs.h outform.h version.h nasmlib.h \
141  nasm.h
142 output/outrdf2.$(OBJ): output/outrdf2.c rdoff/rdoff.h regs.h outform.h \
143  version.h nasmlib.h nasm.h
144 parser.$(OBJ): parser.c insns.h parser.h float.h regs.h regflags.c version.h \
145  nasmlib.h nasm.h insnsi.h
146 preproc.$(OBJ): preproc.c macros.c regs.h version.h nasmlib.h nasm.h
147 regdis.$(OBJ): regdis.c
148 regflags.$(OBJ): regflags.c
149 regs.$(OBJ): regs.c
150 regvals.$(OBJ): regvals.c
151 sync.$(OBJ): sync.c sync.h