NASM 0.98.12
[nasm/avx512.git] / rdoff / Makefile.in
blob5ea14a06460d2c3bfdfd6c0d8ef6db6712dfb94d
1 # $Id$
3 # Auto-configuring Makefile for RDOFF object file utils; part of the
4 # Netwide Assembler
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@
12 srcdir = @srcdir@
13 VPATH = @srcdir@
14 prefix = @prefix@
15 exec_prefix = @exec_prefix@
16 bindir = @bindir@
17 mandir = @mandir@
19 CC = @CC@
20 CFLAGS = @CFLAGS@ @GCCFLAGS@ -I$(srcdir) -I$(top_srcdir)
21 LDFLAGS = @LDFLAGS@
23 INSTALL = @INSTALL@
24 INSTALL_PROGRAM = @INSTALL_PROGRAM@
25 INSTALL_DATA = @INSTALL_DATA@
26 LN_S = @LN_S@
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
31 .c.o:
32 $(CC) -c $(CFLAGS) $<
34 all: rdfdump ldrdf rdx rdflib rdf2bin rdf2com rdf2ihx
36 rdfdump: rdfdump.o
37 $(CC) $(LDFLAGS) -o rdfdump rdfdump.o
38 ldrdf: ldrdf.o $(LDRDFLIBS)
39 $(CC) $(LDFLAGS) -o ldrdf ldrdf.o $(LDRDFLIBS)
40 rdx: rdx.o $(RDXLIBS)
41 $(CC) $(LDFLAGS) -o rdx rdx.o $(RDXLIBS)
42 rdflib: rdflib.o
43 $(CC) $(LDFLAGS) -o rdflib rdflib.o
44 rdf2bin: rdf2bin.o $(RDXLIBS) nasmlib.o
45 $(CC) $(LDFLAGS) -o rdf2bin rdf2bin.o $(RDXLIBS) nasmlib.o
46 rdf2com:
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
51 rdf2ihx.o: rdf2ihx.c
52 rdf2bin.o: rdf2bin.c
53 rdfdump.o: rdfdump.c
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
61 rdflib.o: rdflib.c
62 segtab.o: segtab.c
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)
69 clean:
70 rm -f *.o rdfdump ldrdf rdx rdflib rdf2bin rdf2com rdf2ihx
72 spotless: clean
73 rm -f Makefile
75 distclean: spotless
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