1 # -*- makefile -*- GNU Makefile for NetWare target
6 -include $(OBJDIR
)/version.mak
8 TARGETS
=nasm.nlm ndisasm.nlm
12 CROSSPREFIX
=i586-netware-
19 VERSION
=$(NASM_MAJOR_VER
).
$(NASM_MINOR_VER
).
$(NASM_SUBMINOR_VER
)
21 CFLAGS
=-g
-O2
-Wall
-std
=c99
-pedantic
-D__NETWARE__
-D_POSIX_SOURCE
-DHAVE_CONFIG_H
-I.
22 LDFLAGS
=-Wl
,--nlm-description
="NASM $(NASM_VER) - the Netwide Assembler (gcc build)"
23 LDFLAGS
+=-Wl
,--nlm-copyright
="NASM is licensed under LGPL."
24 LDFLAGS
+=-Wl
,--nlm-version
=$(VERSION
)
25 LDFLAGS
+=-Wl
,--nlm-kernelspace
26 LDFLAGS
+=-Wl
,--nlm-posixflag
31 #-- Begin File Lists --#
32 # Edit in Makefile.in, not here!
36 LIBOBJ
= snprintf.o vsnprintf.o strlcpy.o \
40 error.o md5c.o string.o \
41 file.o mmap.o ilog2.o \
42 realpath.o filename.o srcfile.o \
43 zerobuf.o readnum.o bsi.o \
48 insnsa.o insnsb.o insnsd.o insnsn.o \
49 regs.o regvals.o regflags.o regdis.o \
54 assemble.o labels.o parser.o \
55 preproc.o quote.o pptok.o \
56 listing.o eval.o exprlib.o exprdump.o \
65 outform.o outlib.o legacy.o \
67 outbin.o outaout.o outcoff.o \
69 outobj.o outas86.o outrdf2.o \
70 outdbg.o outieee.o outmacho.o \
74 #-- End File Lists --#
76 NASM_OBJ
= $(addprefix $(OBJDIR
)/,$(notdir $(NASM
))) $(EOLIST
)
77 NDIS_OBJ
= $(addprefix $(OBJDIR
)/,$(notdir $(NDISASM
))) $(EOLIST
)
79 VPATH
= *.c
$(PROOT
) $(PROOT
)/output
82 all: $(OBJDIR
) config.h
$(TARGETS
)
85 $(CC
) $(CFLAGS
) -c
-o
$@
$<
87 nasm
$(BINSUFFIX
): $(NASM_OBJ
)
88 $(LD
) $(LDFLAGS
) -o
$@
$^
90 ndisasm
$(BINSUFFIX
): $(NDIS_OBJ
)
91 $(LD
) $(LDFLAGS
) -o
$@
$^
96 config.h
: $(PROOT
)/Mkfiles
/netware.mak
98 @echo
$(DL
)/* $@ for NetWare target.
$(DL
) > $@
99 @echo
$(DL
)** Do not edit this file
- it is created by make
!$(DL
) >> $@
100 @echo
$(DL
)** All your changes will be lost
!!$(DL
) >> $@
101 @echo
$(DL
)*/$(DL
) >> $@
102 @echo
$(DL
)#ifndef __NETWARE__$(DL) >> $@
103 @echo
$(DL
)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@
104 @echo
$(DL
)#endif$(DL) >> $@
105 @echo
$(DL
)#define PACKAGE_VERSION "$(NASM_VER)"$(DL) >> $@
106 @echo
$(DL
)#define OS "i586-pc-libc-NetWare"$(DL) >> $@
107 @echo
$(DL
)#define HAVE_DECL_STRCASECMP 1$(DL) >> $@
108 @echo
$(DL
)#define HAVE_DECL_STRICMP 1$(DL) >> $@
109 @echo
$(DL
)#define HAVE_DECL_STRNCASECMP 1$(DL) >> $@
110 @echo
$(DL
)#define HAVE_DECL_STRNICMP 1$(DL) >> $@
111 @echo
$(DL
)#define HAVE_INTTYPES_H 1$(DL) >> $@
112 @echo
$(DL
)#define HAVE_LIMITS_H 1$(DL) >> $@
113 @echo
$(DL
)#define HAVE_MEMORY_H 1$(DL) >> $@
114 @echo
$(DL
)#define HAVE_SNPRINTF 1$(DL) >> $@
115 @echo
$(DL
)#define HAVE_STDBOOL_H 1$(DL) >> $@
116 @echo
$(DL
)#define HAVE_STDINT_H 1$(DL) >> $@
117 @echo
$(DL
)#define HAVE_STDLIB_H 1$(DL) >> $@
118 @echo
$(DL
)#define HAVE_STRCASECMP 1$(DL) >> $@
119 @echo
$(DL
)#define HAVE_STRCSPN 1$(DL) >> $@
120 @echo
$(DL
)#define HAVE_STRICMP 1$(DL) >> $@
121 @echo
$(DL
)#define HAVE_STRINGS_H 1$(DL) >> $@
122 @echo
$(DL
)#define HAVE_STRING_H 1$(DL) >> $@
123 @echo
$(DL
)#define HAVE_STRNCASECMP 1$(DL) >> $@
124 @echo
$(DL
)#define HAVE_STRNICMP 1$(DL) >> $@
125 @echo
$(DL
)#define HAVE_STRSPN 1$(DL) >> $@
126 @echo
$(DL
)#define HAVE_SYS_STAT_H 1$(DL) >> $@
127 @echo
$(DL
)#define HAVE_SYS_TYPES_H 1$(DL) >> $@
128 @echo
$(DL
)#define HAVE_UNISTD_H 1$(DL) >> $@
129 @echo
$(DL
)#define HAVE_VSNPRINTF 1$(DL) >> $@
130 @echo
$(DL
)#define STDC_HEADERS 1$(DL) >> $@
131 @echo
$(DL
)#ifndef _GNU_SOURCE$(DL) >> $@
132 @echo
$(DL
)#define _GNU_SOURCE 1$(DL) >> $@
133 @echo
$(DL
)#endif$(DL) >> $@
134 @echo
$(DL
)#define ldiv __CW_ldiv$(DL) >> $@
143 $(OBJDIR
)/version.mak
: $(PROOT
)/version
$(PROOT
)/version.pl
$(OBJDIR
)
144 @
$(PERL
) $(PROOT
)/version.pl make
< $< > $@
146 #-- Magic hints to mkdep.pl --#
147 # @object-ending: ".o"
148 # @path-separator: ""
150 #-- Everything below is generated by mkdep.pl - do not edit --#
151 assemble.o
: assemble.c assemble.h directiv.h listing.h pptok.h preproc.h \
152 tokens.h config.h msvc.h unknown.h watcom.h compiler.h disp8.h iflag.h \
153 insns.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h iflaggen.h \
155 directiv.o
: directiv.c directiv.h pptok.h preproc.h config.h msvc.h \
156 unknown.h watcom.h compiler.h hashtbl.h nasm.h nasmint.h nasmlib.h \
157 opflags.h strlist.h tables.h insnsi.h regs.h
158 eval.o
: eval.c directiv.h eval.h float.h pptok.h preproc.h config.h msvc.h \
159 unknown.h watcom.h compiler.h labels.h nasm.h nasmint.h nasmlib.h opflags.h \
160 strlist.h tables.h insnsi.h regs.h
161 exprdump.o
: exprdump.c directiv.h pptok.h preproc.h config.h msvc.h \
162 unknown.h watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h \
163 strlist.h tables.h insnsi.h regs.h
164 exprlib.o
: exprlib.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
165 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h \
167 float.o
: float.c directiv.h float.h pptok.h preproc.h config.h msvc.h \
168 unknown.h watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h \
169 strlist.h tables.h insnsi.h regs.h
170 labels.o
: labels.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
171 watcom.h compiler.h hashtbl.h labels.h nasm.h nasmint.h nasmlib.h opflags.h \
172 strlist.h tables.h insnsi.h regs.h
173 listing.o
: listing.c directiv.h listing.h pptok.h preproc.h config.h msvc.h \
174 unknown.h watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h \
175 strlist.h tables.h insnsi.h regs.h
176 nasm.o
: nasm.c assemble.h directiv.h eval.h float.h listing.h parser.h \
177 pptok.h preproc.h stdscan.h tokens.h config.h msvc.h unknown.h watcom.h \
178 compiler.h iflag.h insns.h labels.h nasm.h nasmint.h nasmlib.h opflags.h \
179 raa.h saa.h strlist.h tables.h ver.h outform.h iflaggen.h insnsi.h regs.h
180 parser.o
: parser.c directiv.h eval.h float.h parser.h pptok.h preproc.h \
181 stdscan.h tokens.h config.h msvc.h unknown.h watcom.h compiler.h iflag.h \
182 insns.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h iflaggen.h \
184 pptok.o
: pptok.c pptok.h preproc.h config.h msvc.h unknown.h watcom.h \
185 compiler.h hashtbl.h nasmint.h nasmlib.h
186 preproc-nop.o
: preproc-nop.c directiv.h listing.h pptok.h preproc.h config.h \
187 msvc.h unknown.h watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h \
188 strlist.h tables.h insnsi.h regs.h
189 preproc.o
: preproc.c directiv.h eval.h listing.h pptok.h preproc.h quote.h \
190 stdscan.h tokens.h config.h msvc.h unknown.h watcom.h compiler.h hashtbl.h \
191 nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h insnsi.h regs.h
192 quote.o
: quote.c quote.h config.h msvc.h unknown.h watcom.h compiler.h \
194 rdstrnum.o
: rdstrnum.c directiv.h pptok.h preproc.h config.h msvc.h \
195 unknown.h watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h \
196 strlist.h tables.h insnsi.h regs.h
197 segalloc.o
: segalloc.c directiv.h pptok.h preproc.h tokens.h config.h msvc.h \
198 unknown.h watcom.h compiler.h iflag.h insns.h nasm.h nasmint.h nasmlib.h \
199 opflags.h strlist.h tables.h iflaggen.h insnsi.h regs.h
200 stdscan.o
: stdscan.c directiv.h pptok.h preproc.h quote.h stdscan.h tokens.h \
201 config.h msvc.h unknown.h watcom.h compiler.h iflag.h insns.h nasm.h \
202 nasmint.h nasmlib.h opflags.h strlist.h tables.h iflaggen.h insnsi.h regs.h
203 strfunc.o
: strfunc.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
204 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h \
206 tokhash.o
: tokhash.c directiv.h pptok.h preproc.h stdscan.h tokens.h \
207 config.h msvc.h unknown.h watcom.h compiler.h hashtbl.h iflag.h insns.h \
208 nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h iflaggen.h insnsi.h \
210 common.o
: common.c directiv.h pptok.h preproc.h tokens.h config.h msvc.h \
211 unknown.h watcom.h compiler.h iflag.h insns.h nasm.h nasmint.h nasmlib.h \
212 opflags.h strlist.h tables.h iflaggen.h insnsi.h regs.h
213 disasm.o
: disasm.c directiv.h pptok.h preproc.h tokens.h config.h msvc.h \
214 unknown.h watcom.h disasm.h sync.h compiler.h disp8.h iflag.h insns.h \
215 nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h iflaggen.h insnsi.h \
217 ndisasm.o
: ndisasm.c directiv.h pptok.h preproc.h tokens.h config.h msvc.h \
218 unknown.h watcom.h disasm.h sync.h compiler.h iflag.h insns.h nasm.h \
219 nasmint.h nasmlib.h opflags.h strlist.h tables.h ver.h iflaggen.h insnsi.h \
221 sync.o
: sync.c config.h msvc.h unknown.h watcom.h sync.h compiler.h \
223 macros.o
: macros.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
224 watcom.h compiler.h hashtbl.h nasm.h nasmint.h nasmlib.h opflags.h \
225 strlist.h tables.h outform.h insnsi.h regs.h
226 bsi.o
: bsi.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
228 crc64.o
: crc64.c config.h msvc.h unknown.h watcom.h compiler.h hashtbl.h \
230 error.o
: error.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
232 file.o
: file.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
234 filename.o
: filename.c config.h msvc.h unknown.h watcom.h compiler.h \
236 hashtbl.o
: hashtbl.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
237 watcom.h compiler.h hashtbl.h nasm.h nasmint.h nasmlib.h opflags.h \
238 strlist.h tables.h insnsi.h regs.h
239 ilog2.o
: ilog2.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
241 malloc.o
: malloc.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
243 md5c.o
: md5c.c config.h msvc.h unknown.h watcom.h compiler.h md5.h nasmint.h
244 mmap.o
: mmap.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
246 raa.o
: raa.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
248 rbtree.o
: rbtree.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
250 readnum.o
: readnum.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
251 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h \
253 realpath.o
: realpath.c config.h msvc.h unknown.h watcom.h compiler.h \
255 saa.o
: saa.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
257 srcfile.o
: srcfile.c config.h msvc.h unknown.h watcom.h compiler.h hashtbl.h \
259 string.o
: string.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
261 strlist.o
: strlist.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
263 ver.o
: ver.c ver.h version.h
264 zerobuf.o
: zerobuf.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
266 codeview.o
: codeview.c directiv.h pptok.h preproc.h config.h msvc.h \
267 unknown.h watcom.h compiler.h hashtbl.h md5.h nasm.h nasmint.h nasmlib.h \
268 opflags.h saa.h strlist.h tables.h outlib.h pecoff.h version.h insnsi.h \
270 legacy.o
: legacy.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
271 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h \
272 outlib.h insnsi.h regs.h
273 nulldbg.o
: nulldbg.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
274 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h \
275 outlib.h insnsi.h regs.h
276 nullout.o
: nullout.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
277 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h \
278 outlib.h insnsi.h regs.h
279 outaout.o
: outaout.c directiv.h eval.h pptok.h preproc.h stdscan.h config.h \
280 msvc.h unknown.h watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h \
281 raa.h saa.h strlist.h tables.h outform.h outlib.h insnsi.h regs.h
282 outas86.o
: outas86.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
283 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h raa.h saa.h \
284 strlist.h tables.h outform.h outlib.h insnsi.h regs.h
285 outbin.o
: outbin.c directiv.h eval.h pptok.h preproc.h stdscan.h config.h \
286 msvc.h unknown.h watcom.h compiler.h labels.h nasm.h nasmint.h nasmlib.h \
287 opflags.h saa.h strlist.h tables.h outform.h outlib.h insnsi.h regs.h
288 outcoff.o
: outcoff.c directiv.h eval.h pptok.h preproc.h config.h msvc.h \
289 unknown.h watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h raa.h \
290 saa.h strlist.h tables.h outform.h outlib.h pecoff.h insnsi.h regs.h
291 outdbg.o
: outdbg.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
292 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h \
293 outform.h outlib.h insnsi.h regs.h
294 outelf.o
: outelf.c directiv.h eval.h pptok.h preproc.h stdscan.h config.h \
295 msvc.h unknown.h watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h \
296 raa.h rbtree.h saa.h strlist.h tables.h ver.h dwarf.h elf.h outelf.h \
297 outform.h outlib.h stabs.h insnsi.h regs.h
298 outform.o
: outform.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
299 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h \
300 outform.h insnsi.h regs.h
301 outieee.o
: outieee.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
302 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h \
303 ver.h outform.h outlib.h insnsi.h regs.h
304 outlib.o
: outlib.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
305 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h \
306 outlib.h insnsi.h regs.h
307 outmacho.o
: outmacho.c directiv.h pptok.h preproc.h config.h msvc.h \
308 unknown.h watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h raa.h \
309 rbtree.h saa.h strlist.h tables.h outform.h outlib.h insnsi.h regs.h
310 outobj.o
: outobj.c directiv.h eval.h pptok.h preproc.h stdscan.h config.h \
311 msvc.h unknown.h watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h \
312 strlist.h tables.h ver.h outform.h outlib.h insnsi.h regs.h
313 outrdf2.o
: outrdf2.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
314 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h rdoff.h saa.h \
315 strlist.h tables.h outform.h outlib.h insnsi.h regs.h
316 snprintf.o
: snprintf.c config.h msvc.h unknown.h watcom.h compiler.h \
318 strlcpy.o
: strlcpy.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h
319 strnlen.o
: strnlen.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h
320 vsnprintf.o
: vsnprintf.c config.h msvc.h unknown.h watcom.h compiler.h \
322 disp8.o
: disp8.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
323 watcom.h compiler.h disp8.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h \
324 tables.h insnsi.h regs.h
325 iflag.o
: iflag.c config.h msvc.h unknown.h watcom.h compiler.h iflag.h \
327 insnsa.o
: insnsa.c directiv.h pptok.h preproc.h tokens.h config.h msvc.h \
328 unknown.h watcom.h compiler.h iflag.h insns.h nasm.h nasmint.h nasmlib.h \
329 opflags.h strlist.h tables.h iflaggen.h insnsi.h regs.h
330 insnsb.o
: insnsb.c directiv.h pptok.h preproc.h tokens.h config.h msvc.h \
331 unknown.h watcom.h compiler.h iflag.h insns.h nasm.h nasmint.h nasmlib.h \
332 opflags.h strlist.h tables.h iflaggen.h insnsi.h regs.h
333 insnsd.o
: insnsd.c directiv.h pptok.h preproc.h tokens.h config.h msvc.h \
334 unknown.h watcom.h compiler.h iflag.h insns.h nasm.h nasmint.h nasmlib.h \
335 opflags.h strlist.h tables.h iflaggen.h insnsi.h regs.h
336 insnsn.o
: insnsn.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
338 regdis.o
: regdis.c regdis.h regs.h
339 regflags.o
: regflags.c directiv.h pptok.h preproc.h config.h msvc.h \
340 unknown.h watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h \
341 strlist.h tables.h insnsi.h regs.h
342 regs.o
: regs.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
344 regvals.o
: regvals.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \