NASM 0.94
[nasm/avx512.git] / rdoff / Makefile
blob78eca4eadc7a0b5444e044a60f92cd2c84afb6f9
1 # Makefile for RDOFF object file utils; part of the Netwide Assembler
3 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
4 # Julian Hall. All rights reserved. The software is
5 # redistributable under the licence given in the file "Licence"
6 # distributed in the NASM archive.
8 # This Makefile is designed for use under Unix (probably fairly
9 # portably).
11 CC = gcc
12 CCFLAGS = -c -g -Wall -ansi -pedantic -I..
13 LINK = gcc
14 LINKFLAGS = -g -o
15 DLINKFLAGS = -o
16 LIBRARIES =
17 STRIP = strip
18 LDRDFLIBS = rdoff.o ../nasmlib.o symtab.o collectn.o rdlib.o
19 RDXLIBS = rdoff.o rdfload.o symtab.o collectn.o
21 .c.o:
22 $(CC) $(CCFLAGS) $*.c
24 all : rdfdump ldrdf rdx rdflib rdf2bin rdf2com
26 rdfdump : rdfdump.o
27 $(LINK) $(LINKFLAGS) rdfdump rdfdump.o
28 ldrdf : ldrdf.o $(LDRDFLIBS)
29 $(LINK) $(LINKFLAGS) ldrdf ldrdf.o $(LDRDFLIBS)
30 rdx : rdx.o $(RDXLIBS)
31 $(LINK) $(LINKFLAGS) rdx rdx.o $(RDXLIBS)
32 rdflib : rdflib.o
33 $(LINK) $(LINKFLAGS) rdflib rdflib.o
34 rdf2bin : rdf2bin.o $(RDXLIBS) ../nasmlib.o
35 $(LINK) $(LINKFLAGS) rdf2bin rdf2bin.o $(RDXLIBS) ../nasmlib.o
36 rdf2com :
37 ln -s rdf2bin rdf2com
39 rdf2bin.o : rdf2bin.c
40 rdfdump.o : rdfdump.c
41 rdoff.o : rdoff.c rdoff.h
42 ldrdf.o : ldrdf.c rdoff.h ../nasmlib.h symtab.h collectn.h rdlib.h
43 symtab.o : symtab.c symtab.h
44 collectn.o : collectn.c collectn.h
45 rdx.o : rdx.c rdoff.h rdfload.h symtab.h
46 rdfload.o : rdfload.c rdfload.h rdoff.h collectn.h symtab.h
47 rdlib.o : rdlib.c rdlib.h
48 rdflib.o : rdflib.c
50 clean :
51 rm -f *.o *~ rdfdump ldrdf rdx rdflib rdf2bin