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
34 all: rdfdump ldrdf rdx rdflib rdf2bin rdf2com rdf2ihx
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
48 rdf2ihx
: rdf2ihx.o
$(RDXLIBS
) nasmlib.o
49 $(CC
) $(LDFLAGS
) -o rdf2ihx rdf2ihx.o
$(RDXLIBS
) nasmlib.o
54 rdoff.o
: rdoff.c rdoff.h
55 ldrdf.o
: ldrdf.c rdoff.h
$(top_srcdir
)/nasmlib.h symtab.h collectn.h rdlib.h
56 symtab.o
: symtab.c symtab.h
57 collectn.o
: collectn.c collectn.h
58 rdx.o
: rdx.c rdoff.h rdfload.h symtab.h
59 rdfload.o
: rdfload.c rdfload.h rdoff.h collectn.h symtab.h
60 rdlib.o
: rdlib.c rdlib.h
64 nasmlib.o
: $(top_srcdir
)/nasmlib.c
65 ## $(CC) -c $(CFLAGS) $(top_srcdir)/nasmlib.c
66 cd
$(top_srcdir
);make nasmlib.o
67 cp
$(top_srcdir
)/nasmlib.o
$(srcdir)
70 rm -f
*.o rdfdump ldrdf rdx rdflib rdf2bin rdf2com rdf2ihx
77 install: rdfdump ldrdf rdx rdflib rdf2bin rdf2com rdf2ihx
78 $(INSTALL_PROGRAM
) rdfdump
$(INSTALLROOT
)$(bindir)/rdfdump
79 $(INSTALL_PROGRAM
) ldrdf
$(INSTALLROOT
)$(bindir)/ldrdf
80 $(INSTALL_PROGRAM
) rdx
$(INSTALLROOT
)$(bindir)/rdx
81 $(INSTALL_PROGRAM
) rdflib
$(INSTALLROOT
)$(bindir)/rdflib
82 $(INSTALL_PROGRAM
) rdf2bin
$(INSTALLROOT
)$(bindir)/rdf2bin
83 $(INSTALL_PROGRAM
) rdf2ihx
$(INSTALLROOT
)$(bindir)/rdf2ihx
84 cd
$(INSTALLROOT
)$(bindir) && rm -f rdf2com
&& $(LN_S
) rdf2bin rdf2com