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
12 CCFLAGS
= -c
-g
-Wall
-ansi
-pedantic
-I..
18 LDRDFLIBS
= rdoff.o ..
/nasmlib.o symtab.o collectn.o rdlib.o
19 RDXLIBS
= rdoff.o rdfload.o symtab.o collectn.o
24 all : rdfdump ldrdf rdx rdflib rdf2bin rdf2com
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
)
33 $(LINK
) $(LINKFLAGS
) rdflib rdflib.o
34 rdf2bin
: rdf2bin.o
$(RDXLIBS
) ..
/nasmlib.o
35 $(LINK
) $(LINKFLAGS
) rdf2bin rdf2bin.o
$(RDXLIBS
) ..
/nasmlib.o
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
51 rm -f
*.o
*~ rdfdump ldrdf rdx rdflib rdf2bin