1 # Unix fall-back makefile for the Netwide Assembler. For use if
2 # `configure' fails to generate a workable Makefile.
4 # If `configure' doesn't work for you, *please* inform
5 # <nasm-bugs@lists.sourceforge.net>
7 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
8 # Julian Hall. All rights reserved. The software is
9 # redistributable under the GNU Lesser General Public License.
11 # You may need to adjust these values.
17 # You _shouldn't_ need to adjust anything below this line.
19 exec_prefix = ${prefix}
20 bindir = ${exec_prefix}/bin
21 mandir = ${prefix}/man
24 INSTALL_PROGRAM = ${INSTALL}
25 INSTALL_DATA = ${INSTALL} -m 644
28 $(CC) -c $(CFLAGS) $*.c
30 NASM = nasm.o nasmlib.o float.o insnsa.o assemble.o labels.o \
31 parser.o outform.o output/outbin.o output/outaout.o output/outcoff.o output/outelf.o \
32 output/outobj.o output/outas86.o output/outrdf.o output/outdbg.o preproc.o listing.o \
33 eval.o output/outrdf2.o output/outieee.o
35 NDISASM = ndisasm.o disasm.o sync.o nasmlib.o insnsd.o
43 $(CC) -o ndisasm $(NDISASM)
45 assemble.o: assemble.c nasm.h version.h insnsi.h nasmlib.h assemble.h insnsn.c
46 disasm.o: disasm.c nasm.h version.h insnsi.h disasm.h sync.h insns.h names.c insnsn.c
47 eval.o: eval.c eval.h nasm.h version.h insnsi.h nasmlib.h
48 float.o: float.c nasm.h version.h insnsi.h
49 insnsa.o: insnsa.c nasm.h version.h insnsi.h insns.h
50 insnsd.o: insnsd.c nasm.h version.h insnsi.h insns.h
51 labels.o: labels.c nasm.h version.h insnsi.h nasmlib.h
52 listing.o: listing.c nasm.h version.h insnsi.h nasmlib.h listing.h
53 nasm.o: nasm.c nasm.h version.h insnsi.h nasmlib.h preproc.h parser.h assemble.h labels.h \
55 nasmlib.o: nasmlib.c nasm.h version.h insnsi.h nasmlib.h names.c insnsn.c
56 ndisasm.o: ndisasm.c nasm.h version.h insnsi.h nasmlib.h sync.h disasm.h
57 output/outaout.o: output/outaout.c nasm.h version.h insnsi.h nasmlib.h outform.h
58 output/outas86.o: output/outas86.c nasm.h version.h insnsi.h nasmlib.h outform.h
59 output/outbin.o: output/outbin.c nasm.h version.h insnsi.h nasmlib.h outform.h
60 output/outcoff.o: output/outcoff.c nasm.h version.h insnsi.h nasmlib.h outform.h
61 output/outdbg.o: output/outdbg.c nasm.h version.h insnsi.h nasmlib.h outform.h
62 output/outelf.o: output/outelf.c nasm.h version.h insnsi.h nasmlib.h outform.h
63 outform.o: outform.c outform.h nasm.h version.h insnsi.h
64 output/outobj.o: output/outobj.c nasm.h version.h insnsi.h nasmlib.h outform.h
65 output/outrdf2.o: output/outrdf2.c nasm.h version.h insnsi.h nasmlib.h outform.h
66 output/outieee.o: output/outieee.c nasm.h version.h insnsi.h nasmlib.h outform.h
67 parser.o: parser.c nasm.h version.h insnsi.h nasmlib.h parser.h float.h names.c insnsn.c
68 preproc.o: preproc.c nasm.h version.h insnsi.h nasmlib.h macros.c
71 # These files contains all the standard macros that are derived from
73 version.h: version version.pl
74 perl version.pl h < version > version.h
76 version.mac: version version.pl
77 perl version.pl mac < version > version.mac
79 # This source file is generated from the standard macros file
80 # `standard.mac' by another Perl script. Again, it's part of the
81 # standard distribution.
83 macros.c: macros.pl standard.mac version.mac
84 perl macros.pl standard.mac version.mac
86 # This target generates all files that require perl.
87 # This allows easier generation of distribution (see dist target).
88 perlreq: macros.c insnsa.c insnsd.c insnsi.h insnsn.c version.h version.mac
91 $(INSTALL_PROGRAM) nasm $(bindir)/nasm
92 $(INSTALL_PROGRAM) ndisasm $(bindir)/ndisasm
93 $(INSTALL_DATA) nasm.1 $(mandir)/man1/nasm.1
94 $(INSTALL_DATA) ndisasm.1 $(mandir)/man1/ndisasm.1
97 rm -f *.o nasm ndisasm
98 $(MAKE) -C rdoff clean
103 rdf_install install_rdf:
104 $(MAKE) -C rdoff install