1 # Makefile for RDOFF object file utils; part of the Netwide Assembler
\r
3 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
\r
4 # Julian Hall. All rights reserved. The software is
\r
5 # redistributable under the licence given in the file "Licence"
\r
6 # distributed in the NASM archive.
\r
8 # This Makefile is designed for use under Unix (probably fairly
\r
12 CCFLAGS = -I..\ -c -a1 -mn -Nc -w2 -w7 -o+time -5
\r
14 LINKFLAGS = /noi /exet:NT /su:console
\r
19 NASMLIB = ..\nasmlib.$(OBJ)
\r
20 NASMLIB_H = ..\nasmlib.h
\r
21 LDRDFLIBS = rdoff.$(OBJ) $(NASMLIB) symtab.$(OBJ) collectn.$(OBJ) rdlib.$(OBJ)
\r
22 RDXLIBS = rdoff.$(OBJ) rdfload.$(OBJ) symtab.$(OBJ) collectn.$(OBJ)
\r
25 $(CC) $(CCFLAGS) $*.c
\r
27 all : rdfdump$(EXE) ldrdf$(EXE) rdx$(EXE) rdflib$(EXE) rdf2bin$(EXE) rdf2com$(EXE)
\r
29 rdfdump$(EXE) : rdfdump.$(OBJ)
\r
30 $(LINK) $(LINKFLAGS) rdfdump.$(OBJ), rdfdump$(EXE);
\r
31 ldrdf$(EXE) : ldrdf.$(OBJ) $(LDRDFLIBS)
\r
32 $(LINK) $(LINKFLAGS) ldrdf.$(OBJ) $(LDRDFLIBS), ldrdf$(EXE);
\r
33 rdx$(EXE) : rdx.$(OBJ) $(RDXLIBS)
\r
34 $(LINK) $(LINKFLAGS) rdx.$(OBJ) $(RDXLIBS), rdx$(EXE);
\r
35 rdflib$(EXE) : rdflib.$(OBJ)
\r
36 $(LINK) $(LINKFLAGS) rdflib.$(OBJ), rdflib$(EXE);
\r
37 rdf2bin$(EXE) : rdf2bin.$(OBJ) $(RDXLIBS) $(NASMLIB)
\r
38 $(LINK) $(LINKFLAGS) rdf2bin.$(OBJ) $(RDXLIBS) $(NASMLIB), rdf2bin$(EXE);
\r
39 rdf2com$(EXE) : rdf2bin$(EXE)
\r
40 copy rdf2bin$(EXE) rdf2com$(EXE)
\r
42 rdf2bin.$(OBJ) : rdf2bin.c
\r
43 rdfdump.$(OBJ) : rdfdump.c
\r
44 rdoff.$(OBJ) : rdoff.c rdoff.h
\r
45 ldrdf.$(OBJ) : ldrdf.c rdoff.h $(NASMLIB_H) symtab.h collectn.h rdlib.h
\r
46 symtab.$(OBJ) : symtab.c symtab.h
\r
47 collectn.$(OBJ) : collectn.c collectn.h
\r
48 rdx.$(OBJ) : rdx.c rdoff.h rdfload.h symtab.h
\r
49 rdfload.$(OBJ) : rdfload.c rdfload.h rdoff.h collectn.h symtab.h
\r
50 rdlib.$(OBJ) : rdlib.c rdlib.h
\r
51 rdflib.$(OBJ) : rdflib.c
\r
54 del *.$(OBJ) rdfdump$(EXE) ldrdf$(EXE) rdx$(EXE) rdflib$(EXE) rdf2bin$(EXE)
\r