# MODEX library makefile (for Borland MAKE)\r
# Copyright (c) 1993,1994 by Alessandro Scotti\r
#\r
-LIBINCS = MODEX.DEF\r
+!ifdef __LINUX__\r
+REMOVECOMMAND=rm -f\r
+COPYCOMMAND=cp -f\r
+DIRSEP=/\r
+OBJ=o\r
+!else\r
+REMOVECOMMAND=del\r
+COPYCOMMAND=copy /y\r
+DIRSEP=\\r
+OBJ=obj\r
+!endif\r
+LIBINCS = modex.def\r
\r
-LIBOBJS = MXBB.OBJ \\r
- MXCC.OBJ \\r
- MXCG.OBJ \\r
- MXCL.OBJ \\r
- MXCR.OBJ \\r
- MXFB.OBJ \\r
- MXFP.OBJ \\r
- MXGC.OBJ \\r
- MXGI.OBJ \\r
- MXGM.OBJ \\r
- MXGP.OBJ \\r
- MXGV.OBJ \\r
- MXHL.OBJ \\r
- MXIT.OBJ \\r
- MXLL.OBJ \\r
- MXLN.OBJ \\r
- MXOT.OBJ \\r
- MXPB.OBJ \\r
- MXPF.OBJ \\r
- MXPG.OBJ \\r
- MXPI.OBJ \\r
- MXPN.OBJ \\r
- MXPP.OBJ \\r
- MXRA.OBJ \\r
- MXRP.OBJ \\r
- MXSA.OBJ \\r
- MXSC.OBJ \\r
- MXSI.OBJ \\r
- MXSL.OBJ \\r
- MXSM.OBJ \\r
- MXSP.OBJ \\r
- MXSS.OBJ \\r
- MXTL.OBJ \\r
- MXVS.OBJ \\r
- MXWD.OBJ \\r
- MXWM.OBJ \\r
- MXWP.OBJ \\r
- MXWR.OBJ\r
+LIBOBJS = mxbb.$(OBJ) mxcc.$(OBJ) mxcg.$(OBJ) mxcl.$(OBJ) mxcr.$(OBJ) mxel.$(OBJ) mxfb.$(OBJ) mxfp.$(OBJ) mxgc.$(OBJ) mxgi.$(OBJ) mxgm.$(OBJ) mxgp.$(OBJ) mxgv.$(OBJ) mxhl.$(OBJ) mxit.$(OBJ) mxll.$(OBJ) mxln.$(OBJ) mxot.$(OBJ) mxpb.$(OBJ) mxpf.$(OBJ) mxpg.$(OBJ) mxpi.$(OBJ) mxpn.$(OBJ) mxpp.$(OBJ) mxra.$(OBJ) mxrp.$(OBJ) mxsa.$(OBJ) mxsc.$(OBJ) mxsi.$(OBJ) mxsl.$(OBJ) mxsm.$(OBJ) mxsp.$(OBJ) mxss.$(OBJ) mxtl.$(OBJ) mxvs.$(OBJ) mxwd.$(OBJ) mxwm.$(OBJ) mxwp.$(OBJ) mxwr.$(OBJ)\r
\r
#\r
# ASM compiler\r
#\r
-ASMC = tasm\r
-ASMO = /m5 /p\r
+ASMC =wasm\r
+ASMO =-mh -0\r
\r
#\r
# PAS compiler\r
#\r
-PASC = tpc\r
-PASO = /m -$D- -$L- -$S-\r
+#PASC = tpc\r
+#PASO = /m -$D- -$L- -$S-\r
\r
#\r
# LIB maker, uses response file\r
#\r
-LIBC = tlib\r
+LIBC = wlib\r
\r
-.asm.obj:\r
- $(ASMC) $(ASMO) $<\r
+# .asm.obj:\r
+# $(ASMC) $(ASMO) $<\r
\r
-target: modex.lib
+mxbb.$(OBJ): mxbb.asm\r
+ $(ASMC) $(ASMO) mxbb.asm\r
+mxcc.$(OBJ): mxcc.asm\r
+ $(ASMC) $(ASMO) mxcc.asm\r
+mxcg.$(OBJ): mxcg.asm\r
+ $(ASMC) $(ASMO) mxcg.asm\r
+mxcl.$(OBJ): mxcl.asm\r
+ $(ASMC) $(ASMO) mxcl.asm\r
+mxcr.$(OBJ): mxcr.asm\r
+ $(ASMC) $(ASMO) mxcr.asm\r
+mxel.$(OBJ): mxel.asm\r
+ $(ASMC) $(ASMO) mxel.asm\r
+mxfb.$(OBJ): mxfb.asm\r
+ $(ASMC) $(ASMO) mxfb.asm\r
+mxfp.$(OBJ): mxfp.asm\r
+ $(ASMC) $(ASMO) mxfp.asm\r
+mxgc.$(OBJ): mxgc.asm\r
+ $(ASMC) $(ASMO) mxgc.asm\r
+mxgi.$(OBJ): mxgi.asm\r
+ $(ASMC) $(ASMO) mxgi.asm\r
+mxgm.$(OBJ): mxgm.asm\r
+ $(ASMC) $(ASMO) mxgm.asm\r
+mxgp.$(OBJ): mxgp.asm\r
+ $(ASMC) $(ASMO) mxgp.asm\r
+mxgv.$(OBJ): mxgv.asm\r
+ $(ASMC) $(ASMO) mxgv.asm\r
+mxhl.$(OBJ): mxhl.asm\r
+ $(ASMC) $(ASMO) mxhl.asm\r
+mxit.$(OBJ): mxit.asm\r
+ $(ASMC) $(ASMO) mxit.asm\r
+mxll.$(OBJ): mxll.asm\r
+ $(ASMC) $(ASMO) mxll.asm\r
+mxln.$(OBJ): mxln.asm\r
+ $(ASMC) $(ASMO) mxln.asm\r
+mxot.$(OBJ): mxot.asm\r
+ $(ASMC) $(ASMO) mxot.asm\r
+mxpb.$(OBJ): mxpb.asm\r
+ $(ASMC) $(ASMO) mxpb.asm\r
+mxpf.$(OBJ): mxpf.asm\r
+ $(ASMC) $(ASMO) mxpf.asm\r
+mxpg.$(OBJ): mxpg.asm\r
+ $(ASMC) $(ASMO) mxpg.asm\r
+mxpi.$(OBJ): mxpi.asm\r
+ $(ASMC) $(ASMO) mxpi.asm\r
+mxpn.$(OBJ): mxpn.asm\r
+ $(ASMC) $(ASMO) mxpn.asm\r
+mxpp.$(OBJ): mxpp.asm\r
+ $(ASMC) $(ASMO) mxpp.asm\r
+mxra.$(OBJ): mxra.asm\r
+ $(ASMC) $(ASMO) mxra.asm\r
+mxrp.$(OBJ): mxrp.asm\r
+ $(ASMC) $(ASMO) mxrp.asm\r
+mxsa.$(OBJ): mxsa.asm\r
+ $(ASMC) $(ASMO) mxsa.asm\r
+mxsc.$(OBJ): mxsc.asm\r
+ $(ASMC) $(ASMO) mxsc.asm\r
+mxsi.$(OBJ): mxsi.asm\r
+ $(ASMC) $(ASMO) mxsi.asm\r
+mxsl.$(OBJ): mxsl.asm\r
+ $(ASMC) $(ASMO) mxsl.asm\r
+mxsm.$(OBJ): mxsm.asm\r
+ $(ASMC) $(ASMO) mxsm.asm\r
+mxsp.$(OBJ): mxsp.asm\r
+ $(ASMC) $(ASMO) mxsp.asm\r
+mxss.$(OBJ): mxss.asm\r
+ $(ASMC) $(ASMO) mxss.asm\r
+mxtl.$(OBJ): mxtl.asm\r
+ $(ASMC) $(ASMO) mxtl.asm\r
+mxvs.$(OBJ): mxvs.asm\r
+ $(ASMC) $(ASMO) mxvs.asm\r
+mxwd.$(OBJ): mxwd.asm\r
+ $(ASMC) $(ASMO) mxwd.asm\r
+mxwm.$(OBJ): mxwm.asm\r
+ $(ASMC) $(ASMO) mxwm.asm\r
+mxwp.$(OBJ): mxwp.asm\r
+ $(ASMC) $(ASMO) mxwp.asm\r
+mxwr.$(OBJ): mxwr.asm\r
+ $(ASMC) $(ASMO) mxwr.asm\r
+\r
+all: $(LIBOBJS) modex.lib\r
# modex.tpu modex.tpp\r
\r
#modex.tpu: $(LIBOBJS) modex.pas\r
# copy modex.tpp ..\r
\r
modex.lib: modex.lbr $(LIBOBJS)\r
- $(LIBC) modex.lib @modex.lbr\r
+ $(LIBC) modex.lib @modex.lbr\r
\r
$(LIBOBJS): modex.def\r
--- /dev/null
+#\r
+# MODEX library makefile (for Borland MAKE)\r
+# Copyright (c) 1993,1994 by Alessandro Scotti\r
+#\r
+LIBINCS = MODEX.DEF\r
+\r
+LIBOBJS = MXBB.OBJ \\r
+ MXCC.OBJ \\r
+ MXCG.OBJ \\r
+ MXCL.OBJ \\r
+ MXCR.OBJ \\r
+ MXFB.OBJ \\r
+ MXFP.OBJ \\r
+ MXGC.OBJ \\r
+ MXGI.OBJ \\r
+ MXGM.OBJ \\r
+ MXGP.OBJ \\r
+ MXGV.OBJ \\r
+ MXHL.OBJ \\r
+ MXIT.OBJ \\r
+ MXLL.OBJ \\r
+ MXLN.OBJ \\r
+ MXOT.OBJ \\r
+ MXPB.OBJ \\r
+ MXPF.OBJ \\r
+ MXPG.OBJ \\r
+ MXPI.OBJ \\r
+ MXPN.OBJ \\r
+ MXPP.OBJ \\r
+ MXRA.OBJ \\r
+ MXRP.OBJ \\r
+ MXSA.OBJ \\r
+ MXSC.OBJ \\r
+ MXSI.OBJ \\r
+ MXSL.OBJ \\r
+ MXSM.OBJ \\r
+ MXSP.OBJ \\r
+ MXSS.OBJ \\r
+ MXTL.OBJ \\r
+ MXVS.OBJ \\r
+ MXWD.OBJ \\r
+ MXWM.OBJ \\r
+ MXWP.OBJ \\r
+ MXWR.OBJ\r
+\r
+#\r
+# ASM compiler\r
+#\r
+ASMC = tasm\r
+ASMO = /m5 /p\r
+\r
+#\r
+# PAS compiler\r
+#\r
+PASC = tpc\r
+PASO = /m -$D- -$L- -$S-\r
+\r
+#\r
+# LIB maker, uses response file\r
+#\r
+LIBC = tlib\r
+\r
+.asm.obj:\r
+ $(ASMC) $(ASMO) $<\r
+\r
+target: modex.lib
+# modex.tpu modex.tpp\r
+\r
+#modex.tpu: $(LIBOBJS) modex.pas\r
+# $(PASC) $(PASO) modex\r
+# copy modex.tpu ..\r
+# copy modex.pas ..\r
+\r
+#modex.tpp: $(LIBOBJS) modex.pas\r
+# $(PASC) /cp $(PASO) modex\r
+# copy modex.tpp ..\r
+\r
+modex.lib: modex.lbr $(LIBOBJS)\r
+ $(LIBC) modex.lib @modex.lbr\r
+\r
+$(LIBOBJS): modex.def\r
; MODEX.DEF - Include file\r
; Copyright (c) 1993-1994 by Alessandro Scotti\r
;\r
-JUMPS\r
-LOCALS\r
+;JUMPS\r
+;LOCALS\r
\r
TRUE EQU 1 ; Boolean constants\r
FALSE EQU 0\r
\r
;------------------------------------------------------------\r
;\r
-.leave MACRO argsize\r
- IF USE286 EQ TRUE\r
- leave\r
- ELSE\r
- mov sp, bp\r
- pop bp\r
- ENDIF\r
- IFNB <argspace>\r
- ret argsize\r
- ELSE\r
- ret\r
- ENDIF\r
-ENDM\r
+;.leave MACRO argsize\r
+; IF USE286 EQ TRUE\r
+; leave\r
+; ELSE\r
+; mov sp, bp\r
+; pop bp\r
+; ENDIF\r
+; IFNB <argspace>\r
+; ret argsize\r
+; ELSE\r
+; ret\r
+; ENDIF\r
+;ENDM\r
\r
;------------------------------------------------------------\r
;\r
-.shr MACRO arg, count\r
- IF USE286 EQ TRUE\r
- shr arg, count\r
- ELSE\r
- $temp = count\r
- WHILE $temp GT 0\r
- shr arg, 1\r
- $temp = $temp-1\r
- ENDM\r
- ENDIF\r
-ENDM\r
+;.shr MACRO arg, count\r
+; IF USE286 EQ TRUE\r
+; shr arg, count\r
+; ELSE\r
+; $temp = count\r
+; WHILE $temp GT 0\r
+; shr arg, 1\r
+; $temp = $temp-1\r
+; ENDM\r
+; ENDIF\r
+;ENDM\r
\r
;------------------------------------------------------------\r
;\r
-.shl MACRO arg, count\r
- IF USE286 EQ TRUE\r
- shl arg, count\r
- ELSE\r
- $temp = count\r
- WHILE $temp GT 0\r
- shl arg, 1\r
- $temp = $temp-1\r
- ENDM\r
- ENDIF\r
-ENDM\r
+;.shl MACRO arg, count\r
+; IF USE286 EQ TRUE\r
+; shl arg, count\r
+; ELSE\r
+; $temp = count\r
+; WHILE $temp GT 0\r
+; shl arg, 1\r
+; $temp = $temp-1\r
+; ENDM\r
+; ENDIF\r
+;ENDM\r
\r
;------------------------------------------------------------\r
;\r
-.chk386 MACRO name, jump\r
- IF USE386 EQ FALSE\r
- .OUT "Warning: ", <name>, " needs a 386 or better to run!"\r
- jmp @@jump\r
- ENDIF\r
-ENDM\r
+;.chk386 MACRO name, jump\r
+; IF USE386 EQ FALSE\r
+; .OUT "Warning: ", <name>, " needs a 386 or better to run!"\r
+; jmp @@jump\r
+; ENDIF\r
+;ENDM\r