2 # Auto-configuring Makefile for the Netwide Assembler.
4 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
5 # Julian Hall. All rights reserved. The software is
6 # redistributable under the licence given in the file "Licence"
7 # distributed in the NASM archive.
12 exec_prefix = @
exec_prefix@
17 CFLAGS
= @CFLAGS@ @GCCFLAGS@
-I
$(srcdir) -I.
20 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
21 INSTALL_DATA
= @INSTALL_DATA@
26 NASM
= nasm.o nasmlib.o float.o insnsa.o assemble.o labels.o \
27 parser.o outform.o outbin.o outaout.o outcoff.o outelf.o \
28 outobj.o outas86.o outrdf.o outdbg.o preproc.o listing.o \
31 NDISASM
= ndisasm.o disasm.o sync.o nasmlib.o insnsd.o
39 $(CC
) -o ndisasm
$(NDISASM
)
41 assemble.o
: assemble.c nasm.h nasmlib.h assemble.h insns.h
42 disasm.o
: disasm.c nasm.h disasm.h sync.h insns.h names.c
43 eval.o
: eval.c eval.h nasm.h nasmlib.h
44 float.o
: float.c nasm.h
45 insnsa.o
: insnsa.c nasm.h insns.h
46 insnsd.o
: insnsd.c nasm.h insns.h
47 labels.o
: labels.c nasm.h nasmlib.h
48 listing.o
: listing.c nasm.h nasmlib.h listing.h
49 nasm.o
: nasm.c nasm.h nasmlib.h preproc.h parser.h assemble.h labels.h \
51 nasmlib.o
: nasmlib.c nasm.h nasmlib.h
52 ndisasm.o
: ndisasm.c nasm.h nasmlib.h sync.h disasm.h
53 outaout.o
: outaout.c nasm.h nasmlib.h outform.h
54 outas86.o
: outas86.c nasm.h nasmlib.h outform.h
55 outbin.o
: outbin.c nasm.h nasmlib.h outform.h
56 outcoff.o
: outcoff.c nasm.h nasmlib.h outform.h
57 outdbg.o
: outdbg.c nasm.h nasmlib.h outform.h
58 outelf.o
: outelf.c nasm.h nasmlib.h outform.h
59 outform.o
: outform.c outform.h nasm.h
60 outobj.o
: outobj.c nasm.h nasmlib.h outform.h
61 outrdf.o
: outrdf.c nasm.h nasmlib.h outform.h
62 parser.o
: parser.c nasm.h nasmlib.h parser.h float.h names.c
63 preproc.o
: preproc.c nasm.h nasmlib.h macros.c
66 # These two source files are automagically generated from a single
67 # instruction-table file by a Perl script. They're distributed,
68 # though, so it isn't necessary to have Perl just to recompile NASM
69 # from the distribution.
71 insnsa.c insnsd.c
: insns.dat insns.pl
72 perl
$(srcdir)/insns.pl
$(srcdir)/insns.dat
74 # This source file is generated from the standard macros file
75 # `standard.mac' by another Perl script. Again, it's part of the
76 # standard distribution.
78 macros.c
: standard.mac macros.pl
79 perl
$(srcdir)/macros.pl
$(srcdir)/standard.mac
82 $(INSTALL_PROGRAM
) nasm
$(bindir)/nasm
83 $(INSTALL_PROGRAM
) ndisasm
$(bindir)/ndisasm
84 $(INSTALL_DATA
) $(srcdir)/nasm
.1 $(mandir)/man1
/nasm
.1
85 $(INSTALL_DATA
) $(srcdir)/ndisasm
.1 $(mandir)/man1
/ndisasm
.1
88 rm -f
*.o nasm ndisasm
89 cd rdoff
; $(MAKE
) clean
92 rm -f config.
* Makefile
93 cd rdoff
; $(MAKE
) spotless
98 rdf_install install_rdf
:
99 cd rdoff
; $(MAKE
) install