coff: Better handling of section redefinition
[nasm.git] / rdoff / Mkfiles / Makefile.unx
blob9041b4178cec51b297c4986bfae1327f6a3f4f0b
1 # Generated automatically from Makefile.in by configure.
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 license given in the file "LICENSE"
9 # distributed in the NASM archive.
11 # You may need to adjust these values.
13 prefix = /usr/local
14 CC = cc
15 CFLAGS = -O -I..
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
26 LN_S = ln -s
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
31 .c.o:
32         $(CC) -c $(CFLAGS) $*.c
34 all: rdfdump ldrdf rdx rdflib rdf2bin rdf2com
36 rdfdump: rdfdump.o rdoff.o
37         $(CC) -o rdfdump rdfdump.o rdoff.o
39 ldrdf: ldrdf.o $(LDRDFLIBS)
40         $(CC) -o ldrdf ldrdf.o $(LDRDFLIBS)
41 rdx: rdx.o $(RDXLIBS)
42         $(CC) -o rdx rdx.o $(RDXLIBS)
43 rdflib: rdflib.o
44         $(CC) -o rdflib rdflib.o
45 rdf2bin: rdf2bin.o $(RDXLIBS) nasmlib.o
46         $(CC) -o rdf2bin rdf2bin.o $(RDXLIBS) nasmlib.o
47 rdf2com:
48         $(LN_S) rdf2bin rdf2com
50 rdf2bin.o: rdf2bin.c
51 rdfdump.o: rdfdump.c
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
59 rdflib.o: rdflib.c
60 hash.o: hash.c hash.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
66 clean:
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