1 # Generated automatically from Makefile.in by configure.
4 # Auto-configuring Makefile for RDOFF object file utils; part of the
7 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
8 # Julian Hall. All rights reserved. The software is
9 # redistributable under the licence given in the file "Licence"
10 # distributed in the NASM archive.
15 exec_prefix = ${prefix}
16 bindir = ${exec_prefix}/bin
17 mandir = ${prefix}/man
20 CFLAGS = -s -Zomf -O2 -fomit-frame-pointer -Wall -ansi -pedantic -I$(srcdir) -I$(top_srcdir)
21 LDFLAGS = -s -Zomf -Zexe -Zcrtdll
24 INSTALL = .././install-sh -c
25 INSTALL_PROGRAM = ${INSTALL}
26 INSTALL_DATA = ${INSTALL} -m 644
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
37 $(CC) $(LDFLAGS) -o rdfdump rdfdump.o $(LIBS)
38 ldrdf: ldrdf.o $(LDRDFLIBS)
39 $(CC) $(LDFLAGS) -o ldrdf ldrdf.o $(LDRDFLIBS) $(LIBS)
41 $(CC) $(LDFLAGS) -o rdx rdx.o $(RDXLIBS) $(LIBS)
43 $(CC) $(LDFLAGS) -o rdflib rdflib.o $(LIBS)
44 rdf2bin: rdf2bin.o $(RDXLIBS) nasmlib.o
45 $(CC) $(LDFLAGS) -o rdf2bin rdf2bin.o $(RDXLIBS) nasmlib.o $(LIBS)
49 rdoff.o: rdoff.c rdoff.h
50 ldrdf.o: ldrdf.c rdoff.h $(top_srcdir)/nasmlib.h symtab.h collectn.h rdlib.h
51 symtab.o: symtab.c symtab.h
52 collectn.o: collectn.c collectn.h
53 rdx.o: rdx.c rdoff.h rdfload.h symtab.h
54 rdfload.o: rdfload.c rdfload.h rdoff.h collectn.h symtab.h
55 rdlib.o: rdlib.c rdlib.h
59 nasmlib.o: $(top_srcdir)/nasmlib.c
60 $(CC) -c $(CFLAGS) -o $@ $(top_srcdir)/nasmlib.c
63 rm -f *.o rdfdump ldrdf rdx rdflib rdf2bin rdf2com
70 install: rdfdump ldrdf rdx rdflib rdf2bin rdf2com
71 $(INSTALL_PROGRAM) rdfdump $(INSTALLROOT)$(bindir)/rdfdump
72 $(INSTALL_PROGRAM) ldrdf $(INSTALLROOT)$(bindir)/ldrdf
73 $(INSTALL_PROGRAM) rdx $(INSTALLROOT)$(bindir)/rdx
74 $(INSTALL_PROGRAM) rdflib $(INSTALLROOT)$(bindir)/rdflib
75 $(INSTALL_PROGRAM) rdf2bin $(INSTALLROOT)$(bindir)/rdf2bin
76 cd $(INSTALLROOT)$(bindir) && rm -f rdf2com && $(LN_S) rdf2bin rdf2com