Minor fixes needed to compile with MSVC++ 2005
[nasm/autotest.git] / Mkfiles / Makefile.scw
blob3fde2d6a2b1b42617746655d508a55852062880d
1 # Makefile for the Netwide Assembler under 32-bit Windows(tm)
3 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
4 # Julian Hall. All rights reserved. The software is
5 # redistributable under the licence given in the file "Licence"
6 # distributed in the NASM archive.
8 # This Makefile is designed to build NASM using the 32-bit WIN32 C
9 # compiler Symantec(tm) C++ 7.5, provided you have a MAKE-utility
10 # that's compatible to SMAKE.
12 CC = sc
13 CCFLAGS = -c -a1 -mn -Nc -w2 -w7 -o+time -5
14 # -5            optimize for pentium (tm)
15 # -c            compile only
16 # -o-all        no optimizations (to avoid problems in disasm.c)
17 # -o+time       optimize for speed
18 # -o+space      optimize for size
19 # -A1           byte alignment for structures
20 # -mn           compile for Win32 executable
21 # -mx           compile for DOS386 (DOSX) executable
22 # -Nc           create COMDAT records
23 # -w2           possible unattended assignment: off
24 # -w7           for loops with empty instruction-body
26 LINK = link
27 LINKFLAGS = /noi /exet:NT /su:console
28 # /noignorecase all symbols are case-sensitive
29 # /exet:NT      Exetype: NT (Win32)
30 # /exet:DOSX    Exetype: DOSX (DOS32)
31 # /su:console   Subsystem: Console (Console-App)
33 LIBRARIES =
34 EXE = .exe
35 OBJ = obj
37 .c.$(OBJ):
38         $(CC) $(CCFLAGS) $*.c
42 # modules needed for different programs
45 NASMOBJS = nasm.$(OBJ) nasmlib.$(OBJ) float.$(OBJ) insnsa.$(OBJ) \
46            assemble.$(OBJ) labels.$(OBJ) parser.$(OBJ) outform.$(OBJ) \
47            output/outbin.$(OBJ) output/outaout.$(OBJ) output/outcoff.$(OBJ) \
48            output/outelf32.$(OBJ) output/outelf64.$(OBJ) \
49            output/outobj.$(OBJ) output/outas86.$(OBJ) output/outrdf.$(OBJ) output/outdbg.$(OBJ) \
50            output/outrdf2.$(OBJ) output/outieee.$(OBJ) \
51            preproc.$(OBJ) listing.$(OBJ) eval.$(OBJ)
53 NDISASMOBJS = ndisasm.$(OBJ) disasm.$(OBJ) sync.$(OBJ) nasmlib.$(OBJ) \
54               insnsd.$(OBJ)
58 # programs to create
61 all : nasmw$(EXE) ndisasmw$(EXE)
65 # We have to have a horrible kludge here to get round the 128 character
66 # limit, as usual... we'll simply use LNK-files :)
68 nasmw$(EXE): $(NASMOBJS)
69         $(LINK) $(LINKFLAGS) @<<
70 $(NASMOBJS)
71 nasmw.exe;
74 ndisasmw$(EXE): $(NDISASMOBJS)
75         $(LINK) $(LINKFLAGS) @<<
76 $(NDISASMOBJS)
77 ndisasmw.exe;
80 clean :
81         del *.obj
82         del nasmw$(EXE)
83         del ndisasmw$(EXE)
85 #-- Magic hints to mkdep.pl --#
86 # @object-ending: ".$(OBJ)"
87 # @path-separator: "/"
88 #-- Everything below is generated by mkdep.pl - do not edit --#
89 assemble.$(OBJ): assemble.c preproc.h insns.h pptok.h regs.h regflags.c \
90  config.h version.h nasmlib.h nasm.h regvals.c assemble.h insnsi.h
91 crc64.$(OBJ): crc64.c
92 disasm.$(OBJ): disasm.c insns.h sync.h regdis.c regs.h config.h regs.c \
93  version.h nasm.h insnsn.c names.c insnsi.h disasm.h
94 eval.$(OBJ): eval.c labels.h eval.h regs.h config.h version.h nasmlib.h \
95  nasm.h insnsi.h
96 float.$(OBJ): float.c regs.h config.h version.h nasm.h insnsi.h
97 hashtbl.$(OBJ): hashtbl.c regs.h config.h version.h nasmlib.h hashtbl.h \
98  nasm.h insnsi.h
99 insnsa.$(OBJ): insnsa.c insns.h regs.h config.h version.h nasm.h insnsi.h
100 insnsd.$(OBJ): insnsd.c insns.h regs.h config.h version.h nasm.h insnsi.h
101 insnsn.$(OBJ): insnsn.c
102 labels.$(OBJ): labels.c regs.h config.h version.h hashtbl.h nasmlib.h nasm.h \
103  insnsi.h
104 listing.$(OBJ): listing.c regs.h config.h version.h nasmlib.h nasm.h \
105  insnsi.h listing.h
106 macros.$(OBJ): macros.c
107 names.$(OBJ): names.c regs.c insnsn.c
108 nasm.$(OBJ): nasm.c labels.h preproc.h insns.h parser.h eval.h pptok.h \
109  regs.h outform.h config.h version.h nasmlib.h nasm.h stdscan.h assemble.h \
110  insnsi.h listing.h
111 nasmlib.$(OBJ): nasmlib.c insns.h regs.h config.h version.h nasmlib.h nasm.h \
112  insnsi.h
113 ndisasm.$(OBJ): ndisasm.c insns.h sync.h regs.h config.h version.h nasmlib.h \
114  nasm.h insnsi.h disasm.h
115 outform.$(OBJ): outform.c regs.h config.h outform.h version.h nasm.h \
116  insnsi.h
117 output/outaout.$(OBJ): output/outaout.c regs.h outform.h config.h version.h \
118  nasmlib.h nasm.h stdscan.h insnsi.h
119 output/outas86.$(OBJ): output/outas86.c regs.h outform.h config.h version.h \
120  nasmlib.h nasm.h insnsi.h
121 output/outbin.$(OBJ): output/outbin.c labels.h eval.h regs.h outform.h \
122  config.h version.h nasmlib.h nasm.h stdscan.h insnsi.h
123 output/outcoff.$(OBJ): output/outcoff.c regs.h outform.h config.h version.h \
124  nasmlib.h nasm.h insnsi.h
125 output/outdbg.$(OBJ): output/outdbg.c regs.h outform.h config.h version.h \
126  nasmlib.h nasm.h insnsi.h
127 output/outelf32.$(OBJ): output/outelf32.c regs.h outform.h config.h \
128  version.h nasmlib.h nasm.h stdscan.h insnsi.h
129 output/outelf64.$(OBJ): output/outelf64.c regs.h outform.h config.h \
130  version.h nasmlib.h nasm.h stdscan.h insnsi.h
131 output/outieee.$(OBJ): output/outieee.c regs.h outform.h config.h version.h \
132  nasmlib.h nasm.h insnsi.h
133 output/outmacho.$(OBJ): output/outmacho.c compiler.h regs.h outform.h \
134  config.h version.h nasmlib.h nasm.h insnsi.h
135 output/outobj.$(OBJ): output/outobj.c regs.h outform.h config.h version.h \
136  nasmlib.h nasm.h stdscan.h insnsi.h
137 output/outrdf.$(OBJ): output/outrdf.c regs.h outform.h config.h version.h \
138  nasmlib.h nasm.h insnsi.h
139 output/outrdf2.$(OBJ): output/outrdf2.c rdoff/rdoff.h regs.h outform.h \
140  config.h version.h nasmlib.h nasm.h insnsi.h
141 parser.$(OBJ): parser.c insns.h parser.h float.h regs.h regflags.c config.h \
142  version.h nasmlib.h nasm.h stdscan.h insnsi.h
143 pptok.$(OBJ): pptok.c preproc.h pptok.h nasmlib.h
144 preproc.$(OBJ): preproc.c preproc.h macros.c pptok.h regs.h config.h \
145  version.h hashtbl.h nasmlib.h nasm.h insnsi.h
146 regdis.$(OBJ): regdis.c
147 regflags.$(OBJ): regflags.c
148 regs.$(OBJ): regs.c
149 regvals.$(OBJ): regvals.c
150 stdscan.$(OBJ): stdscan.c insns.h regs.h config.h version.h nasmlib.h nasm.h \
151  stdscan.h insnsi.h
152 sync.$(OBJ): sync.c sync.h
153 tokhash.$(OBJ): tokhash.c insns.h regs.h config.h version.h nasm.h insnsi.h