Document new Cygwin compatibility
[nasm/avx512.git] / rdoff / Makefile.in
blob293aec7a7df9d072be11e12ff2914af8058cde03
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 # Binary suffixes
32 O = @OBJEXT@
33 X = @EXEEXT@
35 PROGRAMS = rdfdump$(X) ldrdf$(X) rdx$(X) rdflib$(X) \
36 rdf2bin$(X) rdf2com$(X) rdf2ihx$(X)
38 .SUFFIXES: .c .i .s .$(O) .1 .man
40 .c.$(O):
41 $(CC) -c $(CFLAGS) $<
43 all: $(PROGRAMS)
45 rdfdump$(X): rdfdump.$(O)
46 $(CC) $(LDFLAGS) -o rdfdump$(X) rdfdump.$(O)
47 ldrdf$(X): ldrdf.$(O) $(LDRDFLIBS)
48 $(CC) $(LDFLAGS) -o ldrdf$(X) ldrdf.$(O) $(LDRDFLIBS)
49 rdx$(X): rdx.$(O) $(RDXLIBS)
50 $(CC) $(LDFLAGS) -o rdx$(X) rdx.$(O) $(RDXLIBS)
51 rdflib$(X): rdflib.$(O)
52 $(CC) $(LDFLAGS) -o rdflib$(X) rdflib.$(O)
53 rdf2bin$(X): rdf2bin.$(O) $(RDXLIBS) nasmlib.$(O)
54 $(CC) $(LDFLAGS) -o rdf2bin$(X) rdf2bin.$(O) $(RDXLIBS) nasmlib.$(O)
55 rdf2com$(X):
56 rm -f rdf2com$(X) && $(LN_S) rdf2bin$(X) rdf2com$(X)
57 rdf2ihx$(X): rdf2ihx.$(O) $(RDXLIBS) nasmlib.$(O)
58 $(CC) $(LDFLAGS) -o rdf2ihx$(X) rdf2ihx.$(O) $(RDXLIBS) nasmlib.$(O)
60 rdf2ihx.$(O): rdf2ihx.c
61 rdf2bin.$(O): rdf2bin.c
62 rdfdump.$(O): rdfdump.c
63 rdoff.$(O): rdoff.c rdoff.h
64 ldrdf.$(O): ldrdf.c rdoff.h ../nasmlib.h symtab.h collectn.h rdlib.h
65 symtab.$(O): symtab.c symtab.h
66 collectn.$(O): collectn.c collectn.h
67 rdx.$(O): rdx.c rdoff.h rdfload.h symtab.h
68 rdfload.$(O): rdfload.c rdfload.h rdoff.h collectn.h symtab.h
69 rdlib.$(O): rdlib.c rdlib.h
70 rdflib.$(O): rdflib.c
71 segtab.$(O): segtab.c
73 nasmlib.$(O): $(top_srcdir)/nasmlib.c
74 cd .. && $(MAKE) nasmlib.$(O)
75 cp ../nasmlib.$(O) .
77 clean:
78 rm -f *.$(O) $(PROGRAMS)
80 spotless: clean
81 rm -f Makefile
83 distclean: spotless
85 install: all
86 $(INSTALL_PROGRAM) rdfdump$(X) $(INSTALLROOT)$(bindir)/rdfdump$(X)
87 $(INSTALL_PROGRAM) ldrdf$(X) $(INSTALLROOT)$(bindir)/ldrdf$(X)
88 $(INSTALL_PROGRAM) rdx$(X) $(INSTALLROOT)$(bindir)/rdx$(X)
89 $(INSTALL_PROGRAM) rdflib$(X) $(INSTALLROOT)$(bindir)/rdflib$(X)
90 $(INSTALL_PROGRAM) rdf2bin$(X) $(INSTALLROOT)$(bindir)/rdf2bin$(X)
91 $(INSTALL_PROGRAM) rdf2ihx$(X) $(INSTALLROOT)$(bindir)/rdf2ihx$X(X)
92 cd $(INSTALLROOT)$(bindir) && rm -f rdf2com$(X) && $(LN_S) rdf2bin$(X) rdf2com$(X)