summaryrefslogtreecommitdiff
path: root/rdoff/Makefile.sc
blob: 816cc98e5c1d34fb4b5f3f5045500cd3323b36c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Makefile for RDOFF object file utils; part of the Netwide Assembler

#

# The Netwide Assembler is copyright (C) 1996 Simon Tatham and

# Julian Hall. All rights reserved. The software is

# redistributable under the licence given in the file "Licence"

# distributed in the NASM archive.

#

# This Makefile is designed for use under Unix (probably fairly

# portably).



CC = sc

CCFLAGS = -I..\ -c -a1 -mn -Nc -w2 -w7 -o+time -5

LINK = link

LINKFLAGS = /noi /exet:NT /su:console



OBJ=obj

EXE=.exe



NASMLIB = ..\nasmlib.$(OBJ)

NASMLIB_H = ..\nasmlib.h

LDRDFLIBS = rdoff.$(OBJ) $(NASMLIB) symtab.$(OBJ) collectn.$(OBJ) rdlib.$(OBJ)

RDXLIBS = rdoff.$(OBJ) rdfload.$(OBJ) symtab.$(OBJ) collectn.$(OBJ)



.c.$(OBJ):

	$(CC) $(CCFLAGS) $*.c



all : rdfdump$(EXE) ldrdf$(EXE) rdx$(EXE) rdflib$(EXE) rdf2bin$(EXE) rdf2com$(EXE)



rdfdump$(EXE)   : rdfdump.$(OBJ)

        $(LINK) $(LINKFLAGS) rdfdump.$(OBJ), rdfdump$(EXE);

ldrdf$(EXE)     : ldrdf.$(OBJ) $(LDRDFLIBS)

        $(LINK) $(LINKFLAGS) ldrdf.$(OBJ) $(LDRDFLIBS), ldrdf$(EXE);

rdx$(EXE)       : rdx.$(OBJ) $(RDXLIBS)

        $(LINK) $(LINKFLAGS) rdx.$(OBJ) $(RDXLIBS), rdx$(EXE);

rdflib$(EXE)    : rdflib.$(OBJ)

        $(LINK) $(LINKFLAGS) rdflib.$(OBJ), rdflib$(EXE);

rdf2bin$(EXE)   : rdf2bin.$(OBJ) $(RDXLIBS) $(NASMLIB)

        $(LINK) $(LINKFLAGS) rdf2bin.$(OBJ) $(RDXLIBS) $(NASMLIB), rdf2bin$(EXE);

rdf2com$(EXE)   : rdf2bin$(EXE)

        copy rdf2bin$(EXE) rdf2com$(EXE)



rdf2bin.$(OBJ)  : rdf2bin.c

rdfdump.$(OBJ)  : rdfdump.c

rdoff.$(OBJ)    : rdoff.c rdoff.h

ldrdf.$(OBJ)    : ldrdf.c rdoff.h $(NASMLIB_H) symtab.h collectn.h rdlib.h

symtab.$(OBJ)   : symtab.c symtab.h

collectn.$(OBJ) : collectn.c collectn.h

rdx.$(OBJ)      : rdx.c rdoff.h rdfload.h symtab.h

rdfload.$(OBJ)  : rdfload.c rdfload.h rdoff.h collectn.h symtab.h

rdlib.$(OBJ)    : rdlib.c rdlib.h

rdflib.$(OBJ)   : rdflib.c



clean :

        del *.$(OBJ) rdfdump$(EXE) ldrdf$(EXE) rdx$(EXE) rdflib$(EXE) rdf2bin$(EXE)