NASM 0.98p3
[nasm/avx512.git] / Makefile.in
blob5b8acebc947d3ae92c11615cc2c941f242a08270
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.
9 srcdir = @srcdir@
10 VPATH = @srcdir@
11 prefix = @prefix@
12 exec_prefix = @exec_prefix@
13 bindir = @bindir@
14 mandir = @mandir@
16 CC = @CC@
17 CFLAGS = @CFLAGS@ @GCCFLAGS@ -I$(srcdir) -I.
19 INSTALL = @INSTALL@
20 INSTALL_PROGRAM = @INSTALL_PROGRAM@
21 INSTALL_DATA = @INSTALL_DATA@
23 .c.o:
24 $(CC) -c $(CFLAGS) $<
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 \
29 eval.o
31 NDISASM = ndisasm.o disasm.o sync.o nasmlib.o insnsd.o
33 all: nasm ndisasm
35 nasm: $(NASM)
36 $(CC) -o nasm $(NASM)
38 ndisasm: $(NDISASM)
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 \
50 outform.h listing.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
64 sync.o: sync.c sync.h
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
81 install: nasm ndisasm
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
87 clean:
88 rm -f *.o nasm ndisasm
89 cd rdoff; $(MAKE) clean
91 spotless: clean
92 rm -f config.* Makefile
93 cd rdoff; $(MAKE) spotless
95 rdf:
96 cd rdoff; $(MAKE)
98 rdf_install install_rdf:
99 cd rdoff; $(MAKE) install