Update dependencies
[nasm.git] / Mkfiles / Makefile.os2
blob12a1af4637e1decdae3b7e10db155a6f1147bb11
1 # Makefile for the Netwide Assembler under OS/2 (aimed at Borland C++ for OS/2)
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 made to compile NASMOS2 and NDISASM2
9 # using Borland C++ for OS/2.
11 #-------------------------------------------------------------------
12 #  Make Directives
13 #-------------------------------------------------------------------
14 .AUTODEPEND :
15 .SUFFIXES : .rc .res .obj .c .cpp .asm .hlp .itl .ipf
17 #-------------------------------------------------------------------
18 #  Make Macros
19 #-------------------------------------------------------------------
21 LIBS       = c2 + os2
23 # --------------------------------------------------------------------------
25 #       c  compile only
26 #       v  include full sybolic debugging information
27 #       b  force enums to be of type int
29 # --------------------------------------------------------------------------
31 CCFLAGS = /d /c /O /v /b
33 CC = bcc                #compiler
34 LINK = tlink            #linker
36 LINKFLAGS = /c /x       #linker flags
37   #/c=case sIgnificance on symbols
38   #/x=No map file at all
40 LIBRARIES =             #any libaries to add, out side of the standard libary
41 EXE = .exe              #executable file extention (keep the . as the start)
42 OBJ = obj               #OBJ file extention
44 # How to build an object file from a C file
45 .c.$(OBJ):
46         $(CC) $(CCFLAGS) /o$*.$(OBJ) $*.c
49 ################################################################
50 #The OBJ files that NASM is dependent on
52 NASMOBJS = nasm.$(OBJ)   nasmlib.$(OBJ)  float.$(OBJ)  \
53            insnsa.$(OBJ) assemble.$(OBJ) labels.$(OBJ) \
54            parser.$(OBJ) outform.$(OBJ)  preproc.$(OBJ) \
55            listing.$(OBJ) eval.$(OBJ)
57 ################################################################
58 #The OBJ files that NDISASM is dependent on
60 NDISASMOBJS = ndisasm.$(OBJ)  disasm.$(OBJ) sync.$(OBJ) \
61               nasmlib.$(OBJ) insnsd.$(OBJ)
63 ################################################################
64 #The OBJ file for the output formats.
66 OUTOBJ= output\\outbin.$(OBJ) output\\outaout.$(OBJ) output\\outcoff.$(OBJ) \
67         output\\outelf.$(OBJ) output\\outobj.$(OBJ)  output\\outas86.$(OBJ) \
68         output\\outrdf.$(OBJ) output\\outdbg.$(OBJ) output\\outrdf2.$(OBJ) \
69         output\\outieee.$(OBJ) 
72 ################################################################
73 # Build everything
75 all : nasmos2$(EXE) ndisasm2$(EXE)
77 ################################################################
78 #NASM, NDISASM compile, I hope it's self explanitory
80 nasmos2$(EXE): $(NASMOBJS) $(OUTOBJ)
81           $(LINK) $(LINKFLAGS) @&&!                     #command for the linker
82           C02 $(NASMOBJS) $(OUTOBJ) #OBJ file list
83           $(EXED)nasmos2$(EXE)                             #EXE file name
84           NASMOS2.MAP 
85           $(LIBS)           #Libaries needed
86           NASMOS2.DEF                                   #Link Definition file
89 ndisasm2$(EXE): $(NDISASMOBJS)
90         $(LINK) $(LINKFLAGS) @&&!              #command for the linker
91         c02.obj $(NDISASMOBJS)           #OBJ file list
92         $(EXED)ndisasm2$(EXE)                   #EXE file name
93         NDISAMS2.MAP 
94         $(LIBS) $(LIBRARIES)              #Libaries needed
97 clean :
98         del *.obj
99         del nasmos2$(EXE)
100         del ndisasm2$(EXE)
102 # Makefile created by Chuck Crayne <ccrayne@pacific.net> --05/4/99
103 # Based on Makefile.bc2 by Fox Cutter <lmb@comtch.iea.com> --01/27/97
105 #-- Magic hints to mkdep.pl --#
106 # @object-ending: ".$(OBJ)"
107 # @path-separator: "\\"
108 #-- Everything below is generated by mkdep.pl - do not edit --#
109 assemble.$(OBJ): assemble.c preproc.h insns.h regs.h version.h nasmlib.h \
110  nasm.h regvals.c insnsi.h assemble.h
111 disasm.$(OBJ): disasm.c insns.h sync.h regdis.c regs.h regs.c version.h \
112  nasm.h insnsn.c names.c insnsi.h disasm.h
113 eval.$(OBJ): eval.c labels.h eval.h regs.h version.h nasmlib.h nasm.h
114 float.$(OBJ): float.c regs.h version.h nasm.h
115 insnsa.$(OBJ): insnsa.c insns.h regs.h version.h nasm.h insnsi.h
116 insnsd.$(OBJ): insnsd.c insns.h regs.h version.h nasm.h insnsi.h
117 insnsn.$(OBJ): insnsn.c
118 labels.$(OBJ): labels.c regs.h version.h nasmlib.h nasm.h
119 listing.$(OBJ): listing.c regs.h version.h nasmlib.h nasm.h listing.h
120 macros.$(OBJ): macros.c
121 names.$(OBJ): names.c regs.c insnsn.c
122 nasm.$(OBJ): nasm.c labels.h preproc.h insns.h parser.h eval.h regs.h \
123  outform.h version.h nasmlib.h nasm.h assemble.h insnsi.h listing.h
124 nasmlib.$(OBJ): nasmlib.c insns.h regs.h regs.c version.h nasmlib.h nasm.h \
125  insnsn.c names.c insnsi.h
126 ndisasm.$(OBJ): ndisasm.c insns.h sync.h regs.h version.h nasmlib.h nasm.h \
127  insnsi.h disasm.h
128 outform.$(OBJ): outform.c regs.h outform.h version.h nasm.h
129 output\\outaout.$(OBJ): output\\outaout.c regs.h outform.h version.h \
130  nasmlib.h nasm.h
131 output\\outas86.$(OBJ): output\\outas86.c regs.h outform.h version.h \
132  nasmlib.h nasm.h
133 output\\outbin.$(OBJ): output\\outbin.c labels.h eval.h regs.h outform.h \
134  version.h nasmlib.h nasm.h
135 output\\outcoff.$(OBJ): output\\outcoff.c regs.h outform.h version.h \
136  nasmlib.h nasm.h
137 output\\outdbg.$(OBJ): output\\outdbg.c regs.h outform.h version.h nasmlib.h \
138  nasm.h
139 output\\outelf.$(OBJ): output\\outelf.c regs.h outform.h version.h nasmlib.h \
140  nasm.h
141 output\\outieee.$(OBJ): output\\outieee.c regs.h outform.h version.h \
142  nasmlib.h nasm.h
143 output\\outobj.$(OBJ): output\\outobj.c regs.h outform.h version.h nasmlib.h \
144  nasm.h
145 output\\outrdf.$(OBJ): output\\outrdf.c regs.h outform.h version.h nasmlib.h \
146  nasm.h
147 output\\outrdf2.$(OBJ): output\\outrdf2.c rdoff\\rdoff.h regs.h outform.h \
148  version.h nasmlib.h nasm.h
149 parser.$(OBJ): parser.c insns.h parser.h float.h regs.h regflags.c version.h \
150  nasmlib.h nasm.h insnsi.h
151 preproc.$(OBJ): preproc.c macros.c regs.h version.h nasmlib.h nasm.h
152 regdis.$(OBJ): regdis.c
153 regflags.$(OBJ): regflags.c
154 regs.$(OBJ): regs.c
155 regvals.$(OBJ): regvals.c
156 sync.$(OBJ): sync.c sync.h