1 # Generated automatically from Makefile.in by configure.
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 # You may need to adjust these values.
17 # You _shouldn't_ need to adjust anything below this line.
19 exec_prefix = ${prefix}
20 bindir = ${exec_prefix}/bin
21 mandir = ${prefix}/man
23 INSTALL = /usr/bin/install -c
24 INSTALL_PROGRAM = ${INSTALL}
25 INSTALL_DATA = ${INSTALL} -m 644
28 LDRDFLIBS = rdoff.o ../nasmlib.o symtab.o hash.o collectn.o rdlib.o segtab.o
29 RDXLIBS = rdoff.o rdfload.o symtab.o hash.o collectn.o
32 $(CC) -c $(CFLAGS) $*.c
34 all: rdfdump ldrdf rdx rdflib rdf2bin rdf2com
37 $(CC) -o rdfdump rdfdump.o
39 ldrdf: ldrdf.o $(LDRDFLIBS)
40 $(CC) -o ldrdf ldrdf.o $(LDRDFLIBS)
42 $(CC) -o rdx rdx.o $(RDXLIBS)
44 $(CC) -o rdflib rdflib.o
45 rdf2bin: rdf2bin.o $(RDXLIBS) nasmlib.o
46 $(CC) -o rdf2bin rdf2bin.o $(RDXLIBS) nasmlib.o
48 $(LN_S) rdf2bin rdf2com
52 rdoff.o: rdoff.c rdoff.h
53 ldrdf.o: ldrdf.c rdoff.h ../nasmlib.h symtab.h collectn.h rdlib.h
54 symtab.o: symtab.c symtab.h hash.h
55 collectn.o: collectn.c collectn.h
56 rdx.o: rdx.c rdoff.h rdfload.h symtab.h
57 rdfload.o: rdfload.c rdfload.h rdoff.h collectn.h symtab.h
58 rdlib.o: rdlib.c rdlib.h
61 segtab.o: segtab.c segtab.h
63 nasmlib.o: ../nasmlib.c ../nasmlib.h ../names.c ../nasm.h
64 $(CC) -c $(CFLAGS) ../nasmlib.c
67 rm -f *.o rdfdump ldrdf rdx rdflib rdf2bin rdf2com
69 install: rdfdump ldrdf rdx rdflib rdf2bin rdf2com
70 $(INSTALL_PROGRAM) rdfdump $(bindir)/rdfdump
71 $(INSTALL_PROGRAM) ldrdf $(bindir)/ldrdf
72 $(INSTALL_PROGRAM) rdx $(bindir)/rdx
73 $(INSTALL_PROGRAM) rdflib $(bindir)/rdflib
74 $(INSTALL_PROGRAM) rdf2bin $(bindir)/rdf2bin
75 cd $(bindir); $(LN_S) rdf2bin rdf2com