3 # Auto-configuring Makefile for RDOFF object file utils; part of the
6 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
7 # Julian Hall. All rights reserved. The software is
8 # redistributable under the licence given in the file "Licence"
9 # distributed in the NASM archive.
11 top_srcdir
= @top_srcdir@
15 exec_prefix = @
exec_prefix@
20 CFLAGS
= @CFLAGS@ @GCCFLAGS@
-I
$(srcdir) -I
$(top_srcdir
)
24 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
25 INSTALL_DATA
= @INSTALL_DATA@
28 LDRDFLIBS
= rdoff.o nasmlib.o symtab.o collectn.o rdlib.o segtab.o hash.o
29 RDXLIBS
= rdoff.o rdfload.o symtab.o collectn.o hash.o
32 $(CC
) -c
$(CFLAGS
) -o
$@
$<
34 all: rdfdump ldrdf rdx rdflib rdf2bin rdf2com
37 $(CC
) $(LDFLAGS
) -o rdfdump rdfdump.o
38 ldrdf
: ldrdf.o
$(LDRDFLIBS
)
39 $(CC
) $(LDFLAGS
) -o ldrdf ldrdf.o
$(LDRDFLIBS
)
41 $(CC
) $(LDFLAGS
) -o rdx rdx.o
$(RDXLIBS
)
43 $(CC
) $(LDFLAGS
) -o rdflib rdflib.o
44 rdf2bin
: rdf2bin.o
$(RDXLIBS
) nasmlib.o
45 $(CC
) $(LDFLAGS
) -o rdf2bin rdf2bin.o
$(RDXLIBS
) nasmlib.o
47 rm -f rdf2com
&& $(LN_S
) rdf2bin rdf2com
51 rdoff.o
: rdoff.c rdoff.h
52 ldrdf.o
: ldrdf.c rdoff.h
$(top_srcdir
)/nasmlib.h symtab.h collectn.h rdlib.h
53 symtab.o
: symtab.c symtab.h
54 collectn.o
: collectn.c collectn.h
55 rdx.o
: rdx.c rdoff.h rdfload.h symtab.h
56 rdfload.o
: rdfload.c rdfload.h rdoff.h collectn.h symtab.h
57 rdlib.o
: rdlib.c rdlib.h
61 nasmlib.o
: $(top_srcdir
)/nasmlib.c
62 $(CC
) -c
$(CFLAGS
) $(top_srcdir
)/nasmlib.c
65 rm -f
*.o rdfdump ldrdf rdx rdflib rdf2bin rdf2com
72 install: rdfdump ldrdf rdx rdflib rdf2bin rdf2com
73 $(INSTALL_PROGRAM
) rdfdump
$(INSTALLROOT
)$(bindir)/rdfdump
74 $(INSTALL_PROGRAM
) ldrdf
$(INSTALLROOT
)$(bindir)/ldrdf
75 $(INSTALL_PROGRAM
) rdx
$(INSTALLROOT
)$(bindir)/rdx
76 $(INSTALL_PROGRAM
) rdflib
$(INSTALLROOT
)$(bindir)/rdflib
77 $(INSTALL_PROGRAM
) rdf2bin
$(INSTALLROOT
)$(bindir)/rdf2bin
78 cd
$(INSTALLROOT
)$(bindir) && rm -f rdf2com
&& $(LN_S
) rdf2bin rdf2com