NASM 2.10.01
[nasm/avx512.git] / rdoff / Makefile.in
blob41fc5f1aad17750978525c1cb679f42f01b12476
2 # Auto-configuring Makefile for RDOFF object file utils; part of the
3 # Netwide Assembler
5 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
6 # Julian Hall. All rights reserved. The software is
7 # redistributable under the license given in the file "LICENSE"
8 # distributed in the NASM archive.
10 top_srcdir = @top_srcdir@
11 srcdir = @srcdir@
12 VPATH = @srcdir@
13 prefix = @prefix@
14 exec_prefix = @exec_prefix@
15 bindir = @bindir@
16 mandir = @mandir@
17 datarootdir = @datarootdir@
19 CC = @CC@
20 CFLAGS = @CFLAGS@
21 BUILD_CFLAGS = $(CFLAGS) @DEFS@
22 INTERNAL_CFLAGS = -I$(srcdir) -I$(top_srcdir)
23 ALL_CFLAGS = $(BUILD_CFLAGS) $(INTERNAL_CFLAGS)
24 LDFLAGS = @LDFLAGS@
26 INSTALL = @INSTALL@
27 INSTALL_PROGRAM = @INSTALL_PROGRAM@
28 INSTALL_DATA = @INSTALL_DATA@
29 LN_S = @LN_S@
30 MKDIR = mkdir
32 LDRDFLIBS = rdoff.$(O) symtab.$(O) collectn.$(O) \
33 rdlib.$(O) segtab.$(O) hash.$(O)
34 RDXLIBS = rdoff.$(O) rdfload.$(O) symtab.$(O) collectn.$(O) hash.$(O)
35 NASMLIB = ../nasmlib.$(O)
37 # Binary suffixes
38 O = @OBJEXT@
39 X = @EXEEXT@
41 PROGRAMS = rdfdump$(X) ldrdf$(X) rdx$(X) rdflib$(X) \
42 rdf2bin$(X) rdf2com$(X) rdf2ith$(X) rdf2ihx$(X) rdf2srec$(X)
44 .SUFFIXES: .c .i .s .$(O) .1 .man
46 .c.$(O):
47 $(CC) -c $(ALL_CFLAGS) $<
49 all: $(PROGRAMS)
51 rdfdump$(X): rdfdump.$(O) rdoff.$(O)
52 $(CC) $(LDFLAGS) -o rdfdump$(X) rdfdump.$(O) rdoff.$(O)
53 ldrdf$(X): ldrdf.$(O) $(LDRDFLIBS) $(NASMLIB)
54 $(CC) $(LDFLAGS) -o ldrdf$(X) ldrdf.$(O) $(LDRDFLIBS) $(NASMLIB)
55 rdx$(X): rdx.$(O) $(RDXLIBS) $(NASMLIB)
56 $(CC) $(LDFLAGS) -o rdx$(X) rdx.$(O) $(RDXLIBS) $(NASMLIB)
57 rdflib$(X): rdflib.$(O)
58 $(CC) $(LDFLAGS) -o rdflib$(X) rdflib.$(O)
59 rdf2bin$(X): rdf2bin.$(O) $(RDXLIBS) $(NASMLIB)
60 $(CC) $(LDFLAGS) -o rdf2bin$(X) rdf2bin.$(O) $(RDXLIBS) $(NASMLIB)
61 rdf2com$(X):
62 rm -f rdf2com$(X) && $(LN_S) rdf2bin$(X) rdf2com$(X)
63 rdf2ith$(X):
64 rm -f rdf2ith$(X) && $(LN_S) rdf2bin$(X) rdf2ith$(X)
65 rdf2ihx$(X):
66 rm -f rdf2ihx$(X) && $(LN_S) rdf2bin$(X) rdf2ihx$(X)
67 rdf2srec$(X):
68 rm -f rdf2srec$(X) && $(LN_S) rdf2bin$(X) rdf2srec$(X)
70 rdf2ihx.$(O): rdf2ihx.c
71 rdf2bin.$(O): rdf2bin.c
72 rdfdump.$(O): rdfdump.c
73 rdoff.$(O): rdoff.c rdoff.h
74 ldrdf.$(O): ldrdf.c rdoff.h ../nasmlib.h symtab.h collectn.h rdlib.h
75 symtab.$(O): symtab.c symtab.h
76 collectn.$(O): collectn.c collectn.h
77 rdx.$(O): rdx.c rdoff.h rdfload.h symtab.h
78 rdfload.$(O): rdfload.c rdfload.h rdoff.h collectn.h symtab.h
79 rdlib.$(O): rdlib.c rdlib.h
80 rdflib.$(O): rdflib.c
81 segtab.$(O): segtab.c
83 clean:
84 rm -f *.$(O) $(PROGRAMS)
86 spotless: clean
87 rm -f Makefile
89 distclean: spotless
91 install: all
92 $(MKDIR) -p $(INSTALLROOT)$(bindir)
93 $(INSTALL_PROGRAM) rdfdump$(X) $(INSTALLROOT)$(bindir)/rdfdump$(X)
94 $(INSTALL_PROGRAM) ldrdf$(X) $(INSTALLROOT)$(bindir)/ldrdf$(X)
95 $(INSTALL_PROGRAM) rdx$(X) $(INSTALLROOT)$(bindir)/rdx$(X)
96 $(INSTALL_PROGRAM) rdflib$(X) $(INSTALLROOT)$(bindir)/rdflib$(X)
97 $(INSTALL_PROGRAM) rdf2bin$(X) $(INSTALLROOT)$(bindir)/rdf2bin$(X)
98 cd $(INSTALLROOT)$(bindir) && rm -f rdf2com$(X) && $(LN_S) rdf2bin$(X) rdf2com$(X)
99 cd $(INSTALLROOT)$(bindir) && rm -f rdf2ith$(X) && $(LN_S) rdf2bin$(X) rdf2ith$(X)
100 cd $(INSTALLROOT)$(bindir) && rm -f rdf2ihx$(X) && $(LN_S) rdf2bin$(X) rdf2ihx$(X)
101 cd $(INSTALLROOT)$(bindir) && rm -f rdf2srec$(X) && $(LN_S) rdf2bin$(X) rdf2srec$(X)
102 $(MKDIR) -p $(INSTALLROOT)$(mandir)/man1
103 $(INSTALL_DATA) $(srcdir)/*.1 $(INSTALLROOT)$(mandir)/man1/