NASM 0.99.05
[nasm/avx512.git] / rdoff / Makefile.in
blob204546817759a48ebd8828c975b2e5453d7105b0
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 licence given in the file "Licence"
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@
18 CC = @CC@
19 CFLAGS = @CFLAGS@
20 BUILD_CFLAGS = $(CFLAGS) @DEFS@
21 INTERNAL_CFLAGS = -I$(srcdir) -I$(top_srcdir)
22 ALL_CFLAGS = $(BUILD_CFLAGS) $(INTERNAL_CFLAGS)
23 LDFLAGS = @LDFLAGS@
25 INSTALL = @INSTALL@
26 INSTALL_PROGRAM = @INSTALL_PROGRAM@
27 INSTALL_DATA = @INSTALL_DATA@
28 LN_S = @LN_S@
30 LDRDFLIBS = rdoff.o nasmlib.o symtab.o collectn.o rdlib.o segtab.o hash.o
31 RDXLIBS = rdoff.o rdfload.o symtab.o collectn.o hash.o
33 # Binary suffixes
34 O = @OBJEXT@
35 X = @EXEEXT@
37 PROGRAMS = rdfdump$(X) ldrdf$(X) rdx$(X) rdflib$(X) \
38 rdf2bin$(X) rdf2com$(X) rdf2ihx$(X)
40 .SUFFIXES: .c .i .s .$(O) .1 .man
42 .c.$(O):
43 $(CC) -c $(ALL_CFLAGS) $<
45 all: $(PROGRAMS)
47 rdfdump$(X): rdfdump.$(O) rdoff.$(O)
48 $(CC) $(LDFLAGS) -o rdfdump$(X) rdfdump.$(O) rdoff.$(O)
49 ldrdf$(X): ldrdf.$(O) $(LDRDFLIBS)
50 $(CC) $(LDFLAGS) -o ldrdf$(X) ldrdf.$(O) $(LDRDFLIBS)
51 rdx$(X): rdx.$(O) $(RDXLIBS)
52 $(CC) $(LDFLAGS) -o rdx$(X) rdx.$(O) $(RDXLIBS)
53 rdflib$(X): rdflib.$(O)
54 $(CC) $(LDFLAGS) -o rdflib$(X) rdflib.$(O)
55 rdf2bin$(X): rdf2bin.$(O) $(RDXLIBS) nasmlib.$(O)
56 $(CC) $(LDFLAGS) -o rdf2bin$(X) rdf2bin.$(O) $(RDXLIBS) nasmlib.$(O)
57 rdf2com$(X):
58 rm -f rdf2com$(X) && $(LN_S) rdf2bin$(X) rdf2com$(X)
59 rdf2ihx$(X): rdf2ihx.$(O) $(RDXLIBS) nasmlib.$(O)
60 $(CC) $(LDFLAGS) -o rdf2ihx$(X) rdf2ihx.$(O) $(RDXLIBS) nasmlib.$(O)
62 rdf2ihx.$(O): rdf2ihx.c
63 rdf2bin.$(O): rdf2bin.c
64 rdfdump.$(O): rdfdump.c
65 rdoff.$(O): rdoff.c rdoff.h
66 ldrdf.$(O): ldrdf.c rdoff.h ../nasmlib.h symtab.h collectn.h rdlib.h
67 symtab.$(O): symtab.c symtab.h
68 collectn.$(O): collectn.c collectn.h
69 rdx.$(O): rdx.c rdoff.h rdfload.h symtab.h
70 rdfload.$(O): rdfload.c rdfload.h rdoff.h collectn.h symtab.h
71 rdlib.$(O): rdlib.c rdlib.h
72 rdflib.$(O): rdflib.c
73 segtab.$(O): segtab.c
75 nasmlib.$(O): $(top_srcdir)/nasmlib.c
76 cd .. && $(MAKE) nasmlib.$(O)
77 cp ../nasmlib.$(O) .
79 clean:
80 rm -f *.$(O) $(PROGRAMS)
82 spotless: clean
83 rm -f Makefile
85 distclean: spotless
87 install: all
88 $(INSTALL_PROGRAM) rdfdump$(X) $(INSTALLROOT)$(bindir)/rdfdump$(X)
89 $(INSTALL_PROGRAM) ldrdf$(X) $(INSTALLROOT)$(bindir)/ldrdf$(X)
90 $(INSTALL_PROGRAM) rdx$(X) $(INSTALLROOT)$(bindir)/rdx$(X)
91 $(INSTALL_PROGRAM) rdflib$(X) $(INSTALLROOT)$(bindir)/rdflib$(X)
92 $(INSTALL_PROGRAM) rdf2bin$(X) $(INSTALLROOT)$(bindir)/rdf2bin$(X)
93 $(INSTALL_PROGRAM) rdf2ihx$(X) $(INSTALLROOT)$(bindir)/rdf2ihx$(X)
94 cd $(INSTALLROOT)$(bindir) && rm -f rdf2com$(X) && $(LN_S) rdf2bin$(X) rdf2com$(X)