From: cuz Date: Fri, 28 Jul 2000 16:15:51 +0000 (+0000) Subject: Added a watcom makefile X-Git-Tag: V2.12.0~3298 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9fa11093eb336fe7161bd48399d3c33d49431401;p=cc65 Added a watcom makefile git-svn-id: svn://svn.cc65.org/cc65/trunk@220 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/grc/make/watcom.mak b/src/grc/make/watcom.mak new file mode 100644 index 000000000..3b280495f --- /dev/null +++ b/src/grc/make/watcom.mak @@ -0,0 +1,99 @@ +# +# GRC Makefile for the Watcom compiler +# + +# ------------------------------------------------------------------------------ +# Generic stuff + +.AUTODEPEND +.SUFFIXES .ASM .C .CC .CPP +.SWAP + +AR = WLIB +LD = WLINK + +!if !$d(TARGET) +!if $d(__OS2__) +TARGET = OS2 +!else +TARGET = NT +!endif +!endif + +# target specific macros. +!if $(TARGET)==OS2 + +# --------------------- OS2 --------------------- +SYSTEM = os2v2 +CC = WCC386 +CCCFG = -bt=$(TARGET) -d1 -onatx -zp4 -5 -zq -w2 + +!elif $(TARGET)==DOS32 + +# -------------------- DOS4G -------------------- +SYSTEM = dos4g +CC = WCC386 +CCCFG = -bt=$(TARGET) -d1 -onatx -zp4 -5 -zq -w2 + +!elif $(TARGET)==DOS + +# --------------------- DOS --------------------- +SYSTEM = dos +CC = WCC +CCCFG = -bt=$(TARGET) -d1 -onatx -zp2 -2 -ml -zq -w2 + +!elif $(TARGET)==NT + +# --------------------- NT ---------------------- +SYSTEM = nt +CC = WCC386 +CCCFG = -bt=$(TARGET) -d1 -onatx -zp4 -5 -zq -w2 + +!else +!error +!endif + +# ------------------------------------------------------------------------------ +# Implicit rules + +.c.obj: + $(CC) $(CCCFG) $< + + +# ------------------------------------------------------------------------------ +# All OBJ files + +OBJS = grc.obj + +.PRECIOUS $(OBJS:.obj=.c) + +# ------------------------------------------------------------------------------ +# Main targets + +all: grc + +grc: grc.exe + + +# ------------------------------------------------------------------------------ +# Other targets + + +grc.exe: $(OBJS) + $(LD) system $(SYSTEM) @&&| +DEBUG ALL +OPTION QUIET +NAME $< +FILE grc.obj +LIBRARY ..\common\common.lib +| + + +clean: + @if exist *.obj del *.obj + @if exist grc.exe del grc.exe + +strip: + @-wstrip grc.exe + +