2 # Auto-configuring Makefile for RDOFF object file utils; part of the
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@
14 exec_prefix = @
exec_prefix@
17 datarootdir
= @datarootdir@
21 BUILD_CFLAGS
= $(CFLAGS
) @DEFS@
22 INTERNAL_CFLAGS
= -I
$(srcdir) -I
$(top_srcdir
)
23 ALL_CFLAGS
= $(BUILD_CFLAGS
) $(INTERNAL_CFLAGS
)
27 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
28 INSTALL_DATA
= @INSTALL_DATA@
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
39 PROGRAMS
= rdfdump
$(X
) ldrdf
$(X
) rdx
$(X
) rdflib
$(X
) \
40 rdf2bin
$(X
) rdf2com
$(X
) rdf2ihx
$(X
)
42 .SUFFIXES
: .c .i .s .
$(O
) .1 .man
45 $(CC
) -c
$(ALL_CFLAGS
) $<
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
)
60 rm -f rdf2com
$(X
) && $(LN_S
) rdf2bin
$(X
) rdf2com
$(X
)
61 rdf2ihx
$(X
): rdf2ihx.
$(O
) $(RDXLIBS
) nasmlib.
$(O
)
62 $(CC
) $(LDFLAGS
) -o rdf2ihx
$(X
) rdf2ihx.
$(O
) $(RDXLIBS
) nasmlib.
$(O
)
64 rdf2ihx.
$(O
): rdf2ihx.c
65 rdf2bin.
$(O
): rdf2bin.c
66 rdfdump.
$(O
): rdfdump.c
67 rdoff.
$(O
): rdoff.c rdoff.h
68 ldrdf.
$(O
): ldrdf.c rdoff.h ..
/nasmlib.h symtab.h collectn.h rdlib.h
69 symtab.
$(O
): symtab.c symtab.h
70 collectn.
$(O
): collectn.c collectn.h
71 rdx.
$(O
): rdx.c rdoff.h rdfload.h symtab.h
72 rdfload.
$(O
): rdfload.c rdfload.h rdoff.h collectn.h symtab.h
73 rdlib.
$(O
): rdlib.c rdlib.h
77 nasmlib.
$(O
): $(top_srcdir
)/nasmlib.c
78 cd ..
&& $(MAKE
) nasmlib.
$(O
)
82 rm -f
*.
$(O
) $(PROGRAMS
)
90 $(MKDIR
) -p
$(INSTALLROOT
)$(bindir)
91 $(INSTALL_PROGRAM
) rdfdump
$(X
) $(INSTALLROOT
)$(bindir)/rdfdump
$(X
)
92 $(INSTALL_PROGRAM
) ldrdf
$(X
) $(INSTALLROOT
)$(bindir)/ldrdf
$(X
)
93 $(INSTALL_PROGRAM
) rdx
$(X
) $(INSTALLROOT
)$(bindir)/rdx
$(X
)
94 $(INSTALL_PROGRAM
) rdflib
$(X
) $(INSTALLROOT
)$(bindir)/rdflib
$(X
)
95 $(INSTALL_PROGRAM
) rdf2bin
$(X
) $(INSTALLROOT
)$(bindir)/rdf2bin
$(X
)
96 $(INSTALL_PROGRAM
) rdf2ihx
$(X
) $(INSTALLROOT
)$(bindir)/rdf2ihx
$(X
)
97 cd
$(INSTALLROOT
)$(bindir) && rm -f rdf2com
$(X
) && $(LN_S
) rdf2bin
$(X
) rdf2com
$(X
)
98 $(MKDIR
) -p
$(INSTALLROOT
)$(mandir)/man1
99 $(INSTALL_DATA
) $(srcdir)/*.1 $(INSTALLROOT
)$(mandir)/man1
/