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
-O
-g
-Wall
-ansi
-pedantic
-I..
18 LDRDFLIBS
= rdoff.o ..
/nasmlib.o symtab.o collectn.o
19 RDXLIBS
= rdoff.o rdfload.o symtab.o collectn.o
24 all : rdfdump ldrdf rdx
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
)
34 rdoff.o
: rdoff.c rdoff.h
35 ldrdf.o
: ldrdf.c rdoff.h ..
/nasmlib.h symtab.h collectn.h
36 symtab.o
: symtab.c symtab.h
37 collectn.o
: collectn.c collectn.h
38 rdx.o
: rdx.c rdoff.h rdfload.h symtab.h
39 rdfload.o
: rdfload.c rdfload.h rdoff.h collectn.h symtab.h
42 rm -f
*.o
*~ rdfdump ldrdf rdx