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 = -I..\ -c -a1 -mn -Nc -w2 -w7 -o+time -5
14 LINKFLAGS = /noi /exet:NT /su:console
19 NASMLIB = ..\nasmlib.$(OBJ)
20 NASMLIB_H = ..\nasmlib.h
21 LDRDFLIBS = rdoff.$(OBJ) $(NASMLIB) symtab.$(OBJ) collectn.$(OBJ) rdlib.$(OBJ)
22 RDXLIBS = rdoff.$(OBJ) rdfload.$(OBJ) symtab.$(OBJ) collectn.$(OBJ)
27 all : rdfdump$(EXE) ldrdf$(EXE) rdx$(EXE) rdflib$(EXE) rdf2bin$(EXE) rdf2com$(EXE)
29 rdfdump$(EXE) : rdfdump.$(OBJ)
30 $(LINK) $(LINKFLAGS) rdfdump.$(OBJ), rdfdump$(EXE);
31 ldrdf$(EXE) : ldrdf.$(OBJ) $(LDRDFLIBS)
32 $(LINK) $(LINKFLAGS) ldrdf.$(OBJ) $(LDRDFLIBS), ldrdf$(EXE);
33 rdx$(EXE) : rdx.$(OBJ) $(RDXLIBS)
34 $(LINK) $(LINKFLAGS) rdx.$(OBJ) $(RDXLIBS), rdx$(EXE);
35 rdflib$(EXE) : rdflib.$(OBJ)
36 $(LINK) $(LINKFLAGS) rdflib.$(OBJ), rdflib$(EXE);
37 rdf2bin$(EXE) : rdf2bin.$(OBJ) $(RDXLIBS) $(NASMLIB)
38 $(LINK) $(LINKFLAGS) rdf2bin.$(OBJ) $(RDXLIBS) $(NASMLIB), rdf2bin$(EXE);
39 rdf2com$(EXE) : rdf2bin$(EXE)
40 copy rdf2bin$(EXE) rdf2com$(EXE)
42 rdf2bin.$(OBJ) : rdf2bin.c
43 rdfdump.$(OBJ) : rdfdump.c
44 rdoff.$(OBJ) : rdoff.c rdoff.h
45 ldrdf.$(OBJ) : ldrdf.c rdoff.h $(NASMLIB_H) symtab.h collectn.h rdlib.h
46 symtab.$(OBJ) : symtab.c symtab.h
47 collectn.$(OBJ) : collectn.c collectn.h
48 rdx.$(OBJ) : rdx.c rdoff.h rdfload.h symtab.h
49 rdfload.$(OBJ) : rdfload.c rdfload.h rdoff.h collectn.h symtab.h
50 rdlib.$(OBJ) : rdlib.c rdlib.h
51 rdflib.$(OBJ) : rdflib.c
54 del *.$(OBJ) rdfdump$(EXE) ldrdf$(EXE) rdx$(EXE) rdflib$(EXE) rdf2bin$(EXE)