NASM 2.07rc4
[nasm/avx512.git] / rdoff / Makefile.in
blob93f2e2afc7097bf03d305eb6b3e2bc86c7d755ee
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 nasmlib.o symtab.o collectn.o rdlib.o segtab.o hash.o
33 RDXLIBS = rdoff.o rdfload.o symtab.o collectn.o hash.o
35 # Binary suffixes
36 O = @OBJEXT@
37 X = @EXEEXT@
39 PROGRAMS = rdfdump$(X) ldrdf$(X) rdx$(X) rdflib$(X) \
40 rdf2bin$(X) rdf2com$(X) rdf2ith$(X) rdf2ihx$(X) rdf2srec$(X)
42 .SUFFIXES: .c .i .s .$(O) .1 .man
44 .c.$(O):
45 $(CC) -c $(ALL_CFLAGS) $<
47 all: $(PROGRAMS)
49 rdfdump$(X): rdfdump.$(O) rdoff.$(O)
50 $(CC) $(LDFLAGS) -o rdfdump$(X) rdfdump.$(O) rdoff.$(O)
51 ldrdf$(X): ldrdf.$(O) $(LDRDFLIBS)
52 $(CC) $(LDFLAGS) -o ldrdf$(X) ldrdf.$(O) $(LDRDFLIBS)
53 rdx$(X): rdx.$(O) $(RDXLIBS)
54 $(CC) $(LDFLAGS) -o rdx$(X) rdx.$(O) $(RDXLIBS)
55 rdflib$(X): rdflib.$(O)
56 $(CC) $(LDFLAGS) -o rdflib$(X) rdflib.$(O)
57 rdf2bin$(X): rdf2bin.$(O) $(RDXLIBS) nasmlib.$(O)
58 $(CC) $(LDFLAGS) -o rdf2bin$(X) rdf2bin.$(O) $(RDXLIBS) nasmlib.$(O)
59 rdf2com$(X):
60 rm -f rdf2com$(X) && $(LN_S) rdf2bin$(X) rdf2com$(X)
61 rdf2ith$(X):
62 rm -f rdf2ith$(X) && $(LN_S) rdf2bin$(X) rdf2ith$(X)
63 rdf2ihx$(X):
64 rm -f rdf2ihx$(X) && $(LN_S) rdf2bin$(X) rdf2ihx$(X)
65 rdf2srec$(X):
66 rm -f rdf2srec$(X) && $(LN_S) rdf2bin$(X) rdf2srec$(X)
68 rdf2ihx.$(O): rdf2ihx.c
69 rdf2bin.$(O): rdf2bin.c
70 rdfdump.$(O): rdfdump.c
71 rdoff.$(O): rdoff.c rdoff.h
72 ldrdf.$(O): ldrdf.c rdoff.h ../nasmlib.h symtab.h collectn.h rdlib.h
73 symtab.$(O): symtab.c symtab.h
74 collectn.$(O): collectn.c collectn.h
75 rdx.$(O): rdx.c rdoff.h rdfload.h symtab.h
76 rdfload.$(O): rdfload.c rdfload.h rdoff.h collectn.h symtab.h
77 rdlib.$(O): rdlib.c rdlib.h
78 rdflib.$(O): rdflib.c
79 segtab.$(O): segtab.c
81 nasmlib.$(O): $(top_srcdir)/nasmlib.c
82 cd .. && $(MAKE) nasmlib.$(O)
83 cp ../nasmlib.$(O) .
85 clean:
86 rm -f *.$(O) $(PROGRAMS)
88 spotless: clean
89 rm -f Makefile
91 distclean: spotless
93 install: all
94 $(MKDIR) -p $(INSTALLROOT)$(bindir)
95 $(INSTALL_PROGRAM) rdfdump$(X) $(INSTALLROOT)$(bindir)/rdfdump$(X)
96 $(INSTALL_PROGRAM) ldrdf$(X) $(INSTALLROOT)$(bindir)/ldrdf$(X)
97 $(INSTALL_PROGRAM) rdx$(X) $(INSTALLROOT)$(bindir)/rdx$(X)
98 $(INSTALL_PROGRAM) rdflib$(X) $(INSTALLROOT)$(bindir)/rdflib$(X)
99 $(INSTALL_PROGRAM) rdf2bin$(X) $(INSTALLROOT)$(bindir)/rdf2bin$(X)
100 cd $(INSTALLROOT)$(bindir) && rm -f rdf2com$(X) && $(LN_S) rdf2bin$(X) rdf2com$(X)
101 cd $(INSTALLROOT)$(bindir) && rm -f rdf2ith$(X) && $(LN_S) rdf2bin$(X) rdf2ith$(X)
102 cd $(INSTALLROOT)$(bindir) && rm -f rdf2ihx$(X) && $(LN_S) rdf2bin$(X) rdf2ihx$(X)
103 cd $(INSTALLROOT)$(bindir) && rm -f rdf2srec$(X) && $(LN_S) rdf2bin$(X) rdf2srec$(X)
104 $(MKDIR) -p $(INSTALLROOT)$(mandir)/man1
105 $(INSTALL_DATA) $(srcdir)/*.1 $(INSTALLROOT)$(mandir)/man1/