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 outrdf2.o outdbg.o zoutieee.o \
29 preproc.o listing.o eval.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 insnsi.h nasmlib.h assemble.h insns.h
42 disasm.o
: disasm.c nasm.h insnsi.h disasm.h sync.h insns.h names.c insnsn.c
43 eval.o
: eval.c eval.h nasm.h insnsi.h nasmlib.h
44 float.o
: float.c nasm.h insnsi.h
45 insnsa.o
: insnsa.c nasm.h insnsi.h insns.h
46 insnsd.o
: insnsd.c nasm.h insnsi.h insns.h
47 labels.o
: labels.c nasm.h insnsi.h nasmlib.h
48 listing.o
: listing.c nasm.h insnsi.h nasmlib.h listing.h
49 nasm.o
: nasm.c nasm.h insnsi.h nasmlib.h preproc.h parser.h assemble.h labels.h \
51 nasmlib.o
: nasmlib.c nasm.h insnsi.h nasmlib.h
52 ndisasm.o
: ndisasm.c nasm.h insnsi.h nasmlib.h sync.h disasm.h
53 outaout.o
: outaout.c nasm.h insnsi.h nasmlib.h outform.h
54 outas86.o
: outas86.c nasm.h insnsi.h nasmlib.h outform.h
55 outbin.o
: outbin.c nasm.h insnsi.h nasmlib.h outform.h
56 outcoff.o
: outcoff.c nasm.h insnsi.h nasmlib.h outform.h
57 outdbg.o
: outdbg.c nasm.h insnsi.h nasmlib.h outform.h
58 outelf.o
: outelf.c nasm.h insnsi.h nasmlib.h outform.h
59 outform.o
: outform.c outform.h nasm.h insnsi.h
60 outobj.o
: outobj.c nasm.h insnsi.h nasmlib.h outform.h
61 outrdf.o
: outrdf.c nasm.h insnsi.h nasmlib.h outform.h
62 outrdf2.o
: outrdf2.c nasm.h insnsi.h nasmlib.h outform.h
63 parser.o
: parser.c nasm.h insnsi.h nasmlib.h parser.h float.h names.c insnsn.c
64 preproc.o
: preproc.c nasm.h insnsi.h nasmlib.h macros.c
66 zoutieee.o
: zoutieee.c nasm.h insnsi.h nasmlib.h outform.h
68 # These source files are automagically generated from a single
69 # instruction-table file by a Perl script. They're distributed,
70 # though, so it isn't necessary to have Perl just to recompile NASM
71 # from the distribution.
73 insnsa.c insnsd.c insnsi.h insnsn.c
: insns.dat insns.pl
74 perl
$(srcdir)/insns.pl
$(srcdir)/insns.dat
76 # This source file is generated from the standard macros file
77 # `standard.mac' by another Perl script. Again, it's part of the
78 # standard distribution.
80 macros.c
: standard.mac macros.pl
81 perl
$(srcdir)/macros.pl
$(srcdir)/standard.mac
84 $(INSTALL_PROGRAM
) nasm
$(bindir)/nasm
85 $(INSTALL_PROGRAM
) ndisasm
$(bindir)/ndisasm
86 $(INSTALL_DATA
) $(srcdir)/nasm
.1 $(mandir)/man1
/nasm
.1
87 $(INSTALL_DATA
) $(srcdir)/ndisasm
.1 $(mandir)/man1
/ndisasm
.1
90 rm -f
*.o nasm ndisasm
91 cd rdoff
; $(MAKE
) clean
94 rm -f config.
* Makefile
*~
*.bak changes.lst changes.bin
95 cd rdoff
; $(MAKE
) distclean
98 rm -f insnsa.c insnsd.c insnsi.h insnsn.c macros.c
100 spotless
: distclean cleaner
105 rdf_install install_rdf
:
106 cd rdoff
; $(MAKE
) install