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 licence given in the file "Licence"
8 # distributed in the NASM archive.
10 top_srcdir = @top_srcdir@
14 exec_prefix = @exec_prefix@
19 CFLAGS = @CFLAGS@ @GCCFLAGS@ -I$(top_srcdir)
22 INSTALL_PROGRAM = @INSTALL_PROGRAM@
23 INSTALL_DATA = @INSTALL_DATA@
26 LDRDFLIBS = rdoff.o nasmlib.o symtab.o collectn.o rdlib.o
27 RDXLIBS = rdoff.o rdfload.o symtab.o collectn.o
32 all: rdfdump ldrdf rdx rdflib rdf2bin rdf2com
35 $(CC) -o rdfdump rdfdump.o
37 ldrdf: ldrdf.o $(LDRDFLIBS)
38 $(CC) -o ldrdf ldrdf.o $(LDRDFLIBS)
40 $(CC) -o rdx rdx.o $(RDXLIBS)
42 $(CC) -o rdflib rdflib.o
43 rdf2bin: rdf2bin.o $(RDXLIBS) nasmlib.o
44 $(CC) -o rdf2bin rdf2bin.o $(RDXLIBS) nasmlib.o
46 $(LN_S) rdf2bin rdf2com
50 rdoff.o: rdoff.c rdoff.h
51 ldrdf.o: ldrdf.c rdoff.h $(top_srcdir)/nasmlib.h symtab.h collectn.h rdlib.h
52 symtab.o: symtab.c symtab.h
53 collectn.o: collectn.c collectn.h
54 rdx.o: rdx.c rdoff.h rdfload.h symtab.h
55 rdfload.o: rdfload.c rdfload.h rdoff.h collectn.h symtab.h
56 rdlib.o: rdlib.c rdlib.h
59 nasmlib.o: $(top_srcdir)/nasmlib.c
60 $(CC) -c $(CFLAGS) $(top_srcdir)/nasmlib.c
63 rm -f *.o rdfdump ldrdf rdx rdflib rdf2bin rdf2com
72 install: rdfdump ldrdf rdx rdflib rdf2bin rdf2com
73 $(INSTALL_PROGRAM) rdfdump $(bindir)/rdfdump
74 $(INSTALL_PROGRAM) ldrdf $(bindir)/ldrdf
75 $(INSTALL_PROGRAM) rdx $(bindir)/rdx
76 $(INSTALL_PROGRAM) rdflib $(bindir)/rdflib
77 $(INSTALL_PROGRAM) rdf2bin $(bindir)/rdf2bin
78 cd $(bindir); $(LN_S) rdf2bin rdf2com