!ifndef %WATCOM ! error define WATCOM env var to point to WATCOM installation ! !endif #!ifndef %TOOLKIT #! error define TOOLKIT env var to point to toolkit installation ! #!endif !ifdef __LOADDLL__ ! loaddll $(WC32) $(WATCOM)\BINP\DLL\wccd386.dll ! loaddll $(WLINK) $(WATCOM)\BINP\DLL\wlinkd.dll !endif WATCOM = $(%WATCOM) TOOLKIT = U:\TOOLKIT #$(%TOOLKIT) #.BEFORE: # @set PATH=$(TOOLKIT)\bin;$(WATCOM)\BINP; # @set INCLUDE= # @set LIB= WC32 = wcc386 WLINK = wlink RC = wrc C32FLAGS = -bt=os2 -bm -6s -ze -zq -zlf -fp6 -wx RCFLAGS = !ifdef DEBUG C32FLAGS = $(C32FLAGS) -d2 !else C32FLAGS = $(C32FLAGS) -d0 -ox !endif .SUFFIXES: .SUFFIXES: .obj .c .res .rc .c.obj: .AUTODEPEND $(WC32) $(C32FLAGS) $< .rc.res: $(RC) $(RCFLAGS) -r $< OBJS = eftedde.obj RES = eftedde.res eftedde.exe: $(OBJS) $(RES) @%create $*.lnk @%append $*.lnk name $@ @%append $*.lnk system os2v2_pm @%append $*.lnk option quiet,map=$*.map,offset=0x10000,stack=0x10000,osname='eComStation' @%append $*.lnk sort global !ifdef DEBUG @%append $*.lnk debug watcom !endif @for %f in ($(OBJS)) do @%append $*.lnk file %f @%append $*.lnk @$(WLINK) @$*.lnk @$(RC) $(RCFLAGS) -x2 $(RES) $@