1 # Makefile for RDOFF object file utils; part of the Netwide Assembler
5 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
7 # Julian Hall. All rights reserved. The software is
9 # redistributable under the licence given in the file "Licence"
11 # distributed in the NASM archive.
15 # This Makefile is designed for use under Unix (probably fairly
23 CCFLAGS = -I..\ -c -a1 -mn -Nc -w2 -w7 -o+time -5
27 LINKFLAGS = /noi /exet:NT /su:console
37 NASMLIB = ..\nasmlib.$(OBJ)
39 NASMLIB_H = ..\nasmlib.h
41 LDRDFLIBS = rdoff.$(OBJ) $(NASMLIB) symtab.$(OBJ) collectn.$(OBJ) rdlib.$(OBJ)
43 RDXLIBS = rdoff.$(OBJ) rdfload.$(OBJ) symtab.$(OBJ) collectn.$(OBJ)
53 all : rdfdump$(EXE) ldrdf$(EXE) rdx$(EXE) rdflib$(EXE) rdf2bin$(EXE) rdf2com$(EXE)
57 rdfdump$(EXE) : rdfdump.$(OBJ)
59 $(LINK) $(LINKFLAGS) rdfdump.$(OBJ), rdfdump$(EXE);
61 ldrdf$(EXE) : ldrdf.$(OBJ) $(LDRDFLIBS)
63 $(LINK) $(LINKFLAGS) ldrdf.$(OBJ) $(LDRDFLIBS), ldrdf$(EXE);
65 rdx$(EXE) : rdx.$(OBJ) $(RDXLIBS)
67 $(LINK) $(LINKFLAGS) rdx.$(OBJ) $(RDXLIBS), rdx$(EXE);
69 rdflib$(EXE) : rdflib.$(OBJ)
71 $(LINK) $(LINKFLAGS) rdflib.$(OBJ), rdflib$(EXE);
73 rdf2bin$(EXE) : rdf2bin.$(OBJ) $(RDXLIBS) $(NASMLIB)
75 $(LINK) $(LINKFLAGS) rdf2bin.$(OBJ) $(RDXLIBS) $(NASMLIB), rdf2bin$(EXE);
77 rdf2com$(EXE) : rdf2bin$(EXE)
79 copy rdf2bin$(EXE) rdf2com$(EXE)
83 rdf2bin.$(OBJ) : rdf2bin.c
85 rdfdump.$(OBJ) : rdfdump.c
87 rdoff.$(OBJ) : rdoff.c rdoff.h
89 ldrdf.$(OBJ) : ldrdf.c rdoff.h $(NASMLIB_H) symtab.h collectn.h rdlib.h
91 symtab.$(OBJ) : symtab.c symtab.h
93 collectn.$(OBJ) : collectn.c collectn.h
95 rdx.$(OBJ) : rdx.c rdoff.h rdfload.h symtab.h
97 rdfload.$(OBJ) : rdfload.c rdfload.h rdoff.h collectn.h symtab.h
99 rdlib.$(OBJ) : rdlib.c rdlib.h
101 rdflib.$(OBJ) : rdflib.c
107 del *.$(OBJ) rdfdump$(EXE) ldrdf$(EXE) rdx$(EXE) rdflib$(EXE) rdf2bin$(EXE)