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 \
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 directiv.o directbl.o \
56 assemble.o labels.o parser.o \
57 preproc.o quote.o pptok.o \
58 listing.o eval.o exprlib.o exprdump.o \
67 outform.o outlib.o legacy.o \
69 outbin.o outaout.o outcoff.o \
71 outobj.o outas86.o outrdf2.o \
72 outdbg.o outieee.o outmacho.o \
77 SUBDIRS
= stdlib nasmlib output asm disasm x86 common macros
78 XSUBDIRS
= test doc nsis
79 #-- End File Lists --#
81 NASM_OBJ
= $(addprefix $(OBJDIR
)/,$(notdir $(NASM
))) $(EOLIST
)
82 NDIS_OBJ
= $(addprefix $(OBJDIR
)/,$(notdir $(NDISASM
))) $(EOLIST
)
84 VPATH
= *.c
$(PROOT
) $(PROOT
)/output
87 all: $(OBJDIR
) config.h
$(TARGETS
)
90 $(CC
) $(CFLAGS
) -c
-o
$@
$<
92 nasm
$(BINSUFFIX
): $(NASM_OBJ
)
93 $(LD
) $(LDFLAGS
) -o
$@
$^
95 ndisasm
$(BINSUFFIX
): $(NDIS_OBJ
)
96 $(LD
) $(LDFLAGS
) -o
$@
$^
101 config.h
: $(PROOT
)/Mkfiles
/netware.mak
103 @echo
$(DL
)/* $@ for NetWare target.
$(DL
) > $@
104 @echo
$(DL
)** Do not edit this file
- it is created by make
!$(DL
) >> $@
105 @echo
$(DL
)** All your changes will be lost
!!$(DL
) >> $@
106 @echo
$(DL
)*/$(DL
) >> $@
107 @echo
$(DL
)#ifndef __NETWARE__$(DL) >> $@
108 @echo
$(DL
)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@
109 @echo
$(DL
)#endif$(DL) >> $@
110 @echo
$(DL
)#define PACKAGE_VERSION "$(NASM_VER)"$(DL) >> $@
111 @echo
$(DL
)#define OS "i586-pc-libc-NetWare"$(DL) >> $@
112 @echo
$(DL
)#define HAVE_DECL_STRCASECMP 1$(DL) >> $@
113 @echo
$(DL
)#define HAVE_DECL_STRICMP 1$(DL) >> $@
114 @echo
$(DL
)#define HAVE_DECL_STRNCASECMP 1$(DL) >> $@
115 @echo
$(DL
)#define HAVE_DECL_STRNICMP 1$(DL) >> $@
116 @echo
$(DL
)#define HAVE_INTTYPES_H 1$(DL) >> $@
117 @echo
$(DL
)#define HAVE_LIMITS_H 1$(DL) >> $@
118 @echo
$(DL
)#define HAVE_MEMORY_H 1$(DL) >> $@
119 @echo
$(DL
)#define HAVE_SNPRINTF 1$(DL) >> $@
120 @echo
$(DL
)#define HAVE_STDBOOL_H 1$(DL) >> $@
121 @echo
$(DL
)#define HAVE_STDINT_H 1$(DL) >> $@
122 @echo
$(DL
)#define HAVE_STDLIB_H 1$(DL) >> $@
123 @echo
$(DL
)#define HAVE_STRCASECMP 1$(DL) >> $@
124 @echo
$(DL
)#define HAVE_STRCSPN 1$(DL) >> $@
125 @echo
$(DL
)#define HAVE_STRICMP 1$(DL) >> $@
126 @echo
$(DL
)#define HAVE_STRINGS_H 1$(DL) >> $@
127 @echo
$(DL
)#define HAVE_STRING_H 1$(DL) >> $@
128 @echo
$(DL
)#define HAVE_STRNCASECMP 1$(DL) >> $@
129 @echo
$(DL
)#define HAVE_STRNICMP 1$(DL) >> $@
130 @echo
$(DL
)#define HAVE_STRSPN 1$(DL) >> $@
131 @echo
$(DL
)#define HAVE_SYS_STAT_H 1$(DL) >> $@
132 @echo
$(DL
)#define HAVE_SYS_TYPES_H 1$(DL) >> $@
133 @echo
$(DL
)#define HAVE_UNISTD_H 1$(DL) >> $@
134 @echo
$(DL
)#define HAVE_VSNPRINTF 1$(DL) >> $@
135 @echo
$(DL
)#define STDC_HEADERS 1$(DL) >> $@
136 @echo
$(DL
)#ifndef _GNU_SOURCE$(DL) >> $@
137 @echo
$(DL
)#define _GNU_SOURCE 1$(DL) >> $@
138 @echo
$(DL
)#endif$(DL) >> $@
139 @echo
$(DL
)#define ldiv __CW_ldiv$(DL) >> $@
148 $(OBJDIR
)/version.mak
: $(PROOT
)/version
$(PROOT
)/version.pl
$(OBJDIR
)
149 @
$(PERL
) $(PROOT
)/version.pl make
< $< > $@
151 #-- Magic hints to mkdep.pl --#
152 # @object-ending: ".o"
153 # @path-separator: ""
155 #-- Everything below is generated by mkdep.pl - do not edit --#
156 assemble.o
: assemble.c assemble.h directiv.h listing.h pptok.h preproc.h \
157 tokens.h config.h msvc.h unknown.h watcom.h compiler.h disp8.h error.h \
158 iflag.h insns.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h \
159 iflaggen.h insnsi.h regs.h
160 directbl.o
: directbl.c directiv.h pptok.h preproc.h config.h msvc.h \
161 unknown.h watcom.h compiler.h hashtbl.h nasm.h nasmint.h nasmlib.h \
162 opflags.h strlist.h tables.h insnsi.h regs.h
163 directiv.o
: directiv.c assemble.h directiv.h eval.h float.h listing.h \
164 pptok.h preproc.h stdscan.h config.h msvc.h unknown.h watcom.h compiler.h \
165 error.h iflag.h labels.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h \
166 tables.h outform.h iflaggen.h insnsi.h regs.h
167 error.o
: error.c config.h msvc.h unknown.h watcom.h compiler.h error.h \
169 eval.o
: eval.c assemble.h directiv.h eval.h float.h pptok.h preproc.h \
170 config.h msvc.h unknown.h watcom.h compiler.h error.h iflag.h labels.h \
171 nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h iflaggen.h insnsi.h \
173 exprdump.o
: exprdump.c directiv.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 exprlib.o
: exprlib.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
177 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h \
179 float.o
: float.c directiv.h float.h pptok.h preproc.h config.h msvc.h \
180 unknown.h watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h opflags.h \
181 strlist.h tables.h insnsi.h regs.h
182 labels.o
: labels.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
183 watcom.h compiler.h error.h hashtbl.h labels.h nasm.h nasmint.h nasmlib.h \
184 opflags.h strlist.h tables.h insnsi.h regs.h
185 listing.o
: listing.c directiv.h listing.h pptok.h preproc.h config.h msvc.h \
186 unknown.h watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h opflags.h \
187 strlist.h tables.h insnsi.h regs.h
188 nasm.o
: nasm.c assemble.h directiv.h eval.h float.h listing.h parser.h \
189 pptok.h preproc.h stdscan.h tokens.h config.h msvc.h unknown.h watcom.h \
190 compiler.h error.h iflag.h insns.h labels.h nasm.h nasmint.h nasmlib.h \
191 opflags.h raa.h saa.h strlist.h tables.h ver.h outform.h iflaggen.h \
193 parser.o
: parser.c assemble.h directiv.h eval.h float.h parser.h pptok.h \
194 preproc.h stdscan.h tokens.h config.h msvc.h unknown.h watcom.h compiler.h \
195 error.h iflag.h insns.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h \
196 tables.h iflaggen.h insnsi.h regs.h
197 pptok.o
: pptok.c pptok.h preproc.h config.h msvc.h unknown.h watcom.h \
198 compiler.h hashtbl.h nasmint.h nasmlib.h
199 pragma.o
: pragma.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
200 watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h \
201 tables.h insnsi.h regs.h
202 preproc-nop.o
: preproc-nop.c directiv.h listing.h pptok.h preproc.h config.h \
203 msvc.h unknown.h watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h \
204 opflags.h strlist.h tables.h insnsi.h regs.h
205 preproc.o
: preproc.c directiv.h eval.h listing.h pptok.h preproc.h quote.h \
206 stdscan.h tokens.h config.h msvc.h unknown.h watcom.h compiler.h error.h \
207 hashtbl.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h insnsi.h \
209 quote.o
: quote.c quote.h config.h msvc.h unknown.h watcom.h compiler.h \
211 rdstrnum.o
: rdstrnum.c directiv.h pptok.h preproc.h config.h msvc.h \
212 unknown.h watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h \
213 strlist.h tables.h insnsi.h regs.h
214 segalloc.o
: segalloc.c directiv.h pptok.h preproc.h tokens.h config.h msvc.h \
215 unknown.h watcom.h compiler.h iflag.h insns.h nasm.h nasmint.h nasmlib.h \
216 opflags.h strlist.h tables.h iflaggen.h insnsi.h regs.h
217 stdscan.o
: stdscan.c directiv.h pptok.h preproc.h quote.h stdscan.h tokens.h \
218 config.h msvc.h unknown.h watcom.h compiler.h error.h iflag.h insns.h \
219 nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h iflaggen.h insnsi.h \
221 strfunc.o
: strfunc.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
222 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h \
224 tokhash.o
: tokhash.c directiv.h pptok.h preproc.h stdscan.h tokens.h \
225 config.h msvc.h unknown.h watcom.h compiler.h hashtbl.h iflag.h insns.h \
226 nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h iflaggen.h insnsi.h \
228 common.o
: common.c directiv.h pptok.h preproc.h tokens.h config.h msvc.h \
229 unknown.h watcom.h compiler.h iflag.h insns.h nasm.h nasmint.h nasmlib.h \
230 opflags.h strlist.h tables.h iflaggen.h insnsi.h regs.h
231 disasm.o
: disasm.c directiv.h pptok.h preproc.h tokens.h config.h msvc.h \
232 unknown.h watcom.h disasm.h sync.h compiler.h disp8.h iflag.h insns.h \
233 nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h iflaggen.h insnsi.h \
235 ndisasm.o
: ndisasm.c directiv.h pptok.h preproc.h tokens.h config.h msvc.h \
236 unknown.h watcom.h disasm.h sync.h compiler.h error.h iflag.h insns.h \
237 nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h ver.h iflaggen.h \
239 sync.o
: sync.c config.h msvc.h unknown.h watcom.h sync.h compiler.h \
241 macros.o
: macros.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
242 watcom.h compiler.h hashtbl.h nasm.h nasmint.h nasmlib.h opflags.h \
243 strlist.h tables.h outform.h insnsi.h regs.h
244 bsi.o
: bsi.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
246 crc64.o
: crc64.c config.h msvc.h unknown.h watcom.h compiler.h hashtbl.h \
248 file.o
: file.c config.h msvc.h unknown.h watcom.h compiler.h error.h \
249 nasmint.h nasmlib.h file.h
250 filename.o
: filename.c config.h msvc.h unknown.h watcom.h compiler.h error.h \
252 hashtbl.o
: hashtbl.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
253 watcom.h compiler.h hashtbl.h nasm.h nasmint.h nasmlib.h opflags.h \
254 strlist.h tables.h insnsi.h regs.h
255 ilog2.o
: ilog2.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
257 malloc.o
: malloc.c config.h msvc.h unknown.h watcom.h compiler.h error.h \
259 md5c.o
: md5c.c config.h msvc.h unknown.h watcom.h compiler.h md5.h nasmint.h
260 mmap.o
: mmap.c config.h msvc.h unknown.h watcom.h compiler.h error.h \
261 nasmint.h nasmlib.h file.h
262 raa.o
: raa.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
264 rbtree.o
: rbtree.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
266 readnum.o
: readnum.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
267 watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h \
268 tables.h insnsi.h regs.h
269 realpath.o
: realpath.c config.h msvc.h unknown.h watcom.h compiler.h \
271 saa.o
: saa.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
273 srcfile.o
: srcfile.c config.h msvc.h unknown.h watcom.h compiler.h hashtbl.h \
275 string.o
: string.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
277 strlist.o
: strlist.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
279 ver.o
: ver.c ver.h version.h
280 zerobuf.o
: zerobuf.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
282 codeview.o
: codeview.c directiv.h pptok.h preproc.h config.h msvc.h \
283 unknown.h watcom.h compiler.h error.h hashtbl.h md5.h nasm.h nasmint.h \
284 nasmlib.h opflags.h saa.h strlist.h tables.h outlib.h pecoff.h version.h \
286 legacy.o
: legacy.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
287 watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h \
288 tables.h outlib.h insnsi.h regs.h
289 nulldbg.o
: nulldbg.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
290 watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h \
291 tables.h outlib.h insnsi.h regs.h
292 nullout.o
: nullout.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
293 watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h \
294 tables.h outlib.h insnsi.h regs.h
295 outaout.o
: outaout.c directiv.h eval.h pptok.h preproc.h stdscan.h config.h \
296 msvc.h unknown.h watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h \
297 opflags.h raa.h saa.h strlist.h tables.h outform.h outlib.h insnsi.h regs.h
298 outas86.o
: outas86.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
299 watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h opflags.h raa.h \
300 saa.h strlist.h tables.h outform.h outlib.h insnsi.h regs.h
301 outbin.o
: outbin.c directiv.h eval.h pptok.h preproc.h stdscan.h config.h \
302 msvc.h unknown.h watcom.h compiler.h error.h labels.h nasm.h nasmint.h \
303 nasmlib.h opflags.h saa.h strlist.h tables.h outform.h outlib.h insnsi.h \
305 outcoff.o
: outcoff.c directiv.h eval.h pptok.h preproc.h config.h msvc.h \
306 unknown.h watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h opflags.h \
307 raa.h saa.h strlist.h tables.h outform.h outlib.h pecoff.h insnsi.h regs.h
308 outdbg.o
: outdbg.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
309 watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h \
310 tables.h outform.h outlib.h insnsi.h regs.h
311 outelf.o
: outelf.c directiv.h eval.h pptok.h preproc.h stdscan.h config.h \
312 msvc.h unknown.h watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h \
313 opflags.h raa.h rbtree.h saa.h strlist.h tables.h ver.h dwarf.h elf.h \
314 outelf.h outform.h outlib.h stabs.h insnsi.h regs.h
315 outform.o
: outform.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
316 watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h tables.h \
317 outform.h insnsi.h regs.h
318 outieee.o
: outieee.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
319 watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h \
320 tables.h ver.h outform.h outlib.h insnsi.h regs.h
321 outlib.o
: outlib.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
322 watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h \
323 tables.h outlib.h insnsi.h regs.h
324 outmacho.o
: outmacho.c directiv.h pptok.h preproc.h config.h msvc.h \
325 unknown.h watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h opflags.h \
326 raa.h rbtree.h saa.h strlist.h tables.h outform.h outlib.h insnsi.h regs.h
327 outobj.o
: outobj.c directiv.h eval.h pptok.h preproc.h stdscan.h config.h \
328 msvc.h unknown.h watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h \
329 opflags.h strlist.h tables.h ver.h outform.h outlib.h insnsi.h regs.h
330 outrdf2.o
: outrdf2.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
331 watcom.h compiler.h error.h nasm.h nasmint.h nasmlib.h opflags.h rdoff.h \
332 saa.h strlist.h tables.h outform.h outlib.h insnsi.h regs.h
333 snprintf.o
: snprintf.c config.h msvc.h unknown.h watcom.h compiler.h \
335 strlcpy.o
: strlcpy.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h
336 strnlen.o
: strnlen.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h
337 vsnprintf.o
: vsnprintf.c config.h msvc.h unknown.h watcom.h compiler.h \
338 error.h nasmint.h nasmlib.h
339 disp8.o
: disp8.c directiv.h pptok.h preproc.h config.h msvc.h unknown.h \
340 watcom.h compiler.h disp8.h nasm.h nasmint.h nasmlib.h opflags.h strlist.h \
341 tables.h insnsi.h regs.h
342 iflag.o
: iflag.c config.h msvc.h unknown.h watcom.h compiler.h iflag.h \
344 insnsa.o
: insnsa.c directiv.h pptok.h preproc.h tokens.h config.h msvc.h \
345 unknown.h watcom.h compiler.h iflag.h insns.h nasm.h nasmint.h nasmlib.h \
346 opflags.h strlist.h tables.h iflaggen.h insnsi.h regs.h
347 insnsb.o
: insnsb.c directiv.h pptok.h preproc.h tokens.h config.h msvc.h \
348 unknown.h watcom.h compiler.h iflag.h insns.h nasm.h nasmint.h nasmlib.h \
349 opflags.h strlist.h tables.h iflaggen.h insnsi.h regs.h
350 insnsd.o
: insnsd.c directiv.h pptok.h preproc.h tokens.h config.h msvc.h \
351 unknown.h watcom.h compiler.h iflag.h insns.h nasm.h nasmint.h nasmlib.h \
352 opflags.h strlist.h tables.h iflaggen.h insnsi.h regs.h
353 insnsn.o
: insnsn.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
355 regdis.o
: regdis.c regdis.h regs.h
356 regflags.o
: regflags.c directiv.h pptok.h preproc.h config.h msvc.h \
357 unknown.h watcom.h compiler.h nasm.h nasmint.h nasmlib.h opflags.h \
358 strlist.h tables.h insnsi.h regs.h
359 regs.o
: regs.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \
361 regvals.o
: regvals.c config.h msvc.h unknown.h watcom.h compiler.h nasmint.h \