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@
25 .SUFFIXES
: .c .o
.1 .man
33 NASM
= nasm.o nasmlib.o float.o insnsa.o assemble.o labels.o \
34 parser.o outform.o outbin.o outaout.o outcoff.o outelf.o \
35 outobj.o outas86.o outrdf.o outrdf2.o outdbg.o zoutieee.o \
36 preproc.o listing.o eval.o
38 NDISASM
= ndisasm.o disasm.o sync.o nasmlib.o insnsd.o
40 all: nasm ndisasm nasm.man ndisasm.man
46 $(CC
) -o ndisasm
$(NDISASM
)
48 assemble.o
: assemble.c nasm.h insnsi.h nasmlib.h assemble.h insns.h
49 disasm.o
: disasm.c nasm.h insnsi.h disasm.h sync.h insns.h names.c insnsn.c
50 eval.o
: eval.c eval.h nasm.h insnsi.h nasmlib.h
51 float.o
: float.c nasm.h insnsi.h
52 insnsa.o
: insnsa.c nasm.h insnsi.h insns.h
53 insnsd.o
: insnsd.c nasm.h insnsi.h insns.h
54 labels.o
: labels.c nasm.h insnsi.h nasmlib.h
55 listing.o
: listing.c nasm.h insnsi.h nasmlib.h listing.h
56 nasm.o
: nasm.c nasm.h insnsi.h nasmlib.h preproc.h parser.h assemble.h labels.h \
58 nasmlib.o
: nasmlib.c nasm.h insnsi.h nasmlib.h
59 ndisasm.o
: ndisasm.c nasm.h insnsi.h nasmlib.h sync.h disasm.h
60 outaout.o
: outaout.c nasm.h insnsi.h nasmlib.h outform.h
61 outas86.o
: outas86.c nasm.h insnsi.h nasmlib.h outform.h
62 outbin.o
: outbin.c nasm.h insnsi.h nasmlib.h outform.h
63 outcoff.o
: outcoff.c nasm.h insnsi.h nasmlib.h outform.h
64 outdbg.o
: outdbg.c nasm.h insnsi.h nasmlib.h outform.h
65 outelf.o
: outelf.c nasm.h insnsi.h nasmlib.h outform.h
66 outform.o
: outform.c outform.h nasm.h insnsi.h
67 outobj.o
: outobj.c nasm.h insnsi.h nasmlib.h outform.h
68 outrdf.o
: outrdf.c nasm.h insnsi.h nasmlib.h outform.h
69 outrdf2.o
: outrdf2.c nasm.h insnsi.h nasmlib.h outform.h
70 parser.o
: parser.c nasm.h insnsi.h nasmlib.h parser.h float.h names.c insnsn.c
71 preproc.o
: preproc.c nasm.h insnsi.h nasmlib.h macros.c
73 zoutieee.o
: zoutieee.c nasm.h insnsi.h nasmlib.h outform.h
75 # These source files are automagically generated from a single
76 # instruction-table file by a Perl script. They're distributed,
77 # though, so it isn't necessary to have Perl just to recompile NASM
78 # from the distribution.
80 insnsa.c insnsd.c insnsi.h insnsn.c
: insns.dat insns.pl
81 perl
$(srcdir)/insns.pl
$(srcdir)/insns.dat
83 # This source file is generated from the standard macros file
84 # `standard.mac' by another Perl script. Again, it's part of the
85 # standard distribution.
87 macros.c
: standard.mac macros.pl
88 perl
$(srcdir)/macros.pl
$(srcdir)/standard.mac
91 $(INSTALL_PROGRAM
) nasm
$(bindir)/nasm
92 $(INSTALL_PROGRAM
) ndisasm
$(bindir)/ndisasm
93 $(INSTALL_DATA
) $(srcdir)/nasm
.1 $(mandir)/man1
/nasm
.1
94 $(INSTALL_DATA
) $(srcdir)/ndisasm
.1 $(mandir)/man1
/ndisasm
.1
97 rm -f
*.o nasm ndisasm
98 cd rdoff
; $(MAKE
) clean
101 rm -f config.
* Makefile
*~
*.bak changed.lst changed.bin
102 cd rdoff
; $(MAKE
) distclean
105 rm -f insnsa.c insnsd.c insnsi.h insnsn.c macros.c
*.man
107 spotless
: distclean cleaner
112 rdf_install install_rdf
:
113 cd rdoff
; $(MAKE
) install