############################################################################### # # BORLAND C++ # # makefile for lowlevel UltraSound utility libraries # ############################################################################### # # This makefile will build the objects in sub-directories. # The libraries are built in the current directory from those objs. # Make sure these subdirs exist before making the particular model. # # largem - Microsoft large model # mediumm - Microsoft medium model # smallm - Microsoft small model # tinym - Microsoft tiny model # ############################################################################### INCS=c:\c600\include -I..\incs #DEBUG = /CO COMPILER = m PROG = exam_ # DEFINE TINYONLY TO 0 TO ONLY GET LIB OBJS PUT IN TINY LIBRARIES ... TINYONLY=0 !if $(SIZE) == 0 TYPE=large$(COMPILER) MODEL=L LIBMODEL=l !elif $(SIZE) == 1 TYPE=medium$(COMPILER) MODEL=M LIBMODEL=m !elif $(SIZE) == 2 TYPE=small$(COMPILER) MODEL=S LIBMODEL=s !elif $(SIZE) == 3 TYPE=tiny$(COMPILER) MODEL=T LIBMODEL=s !endif ############################################################################### # Transformation rules # Compile all .c files with the Microsoft C compiler # SOME MODEL ............. ############################################################################### .path.obj = .\$(TYPE) .c.obj: !if $(SIZE) == 3 cl -Ox -Oi -Fa -Gs -FPi -A$(MODEL) -I$(INCS) /c /Fo$(TYPE)/$&.obj $&.c @del $&.asm !else cl -Ox -Oi -Fa -Gs -FPi -A$(MODEL) -I$(INCS) /Fo$(TYPE)\$&.obj /c $&.c @del $&.asm !endif .asm.obj: masm /Z /MX /DMSIZE$(SIZE) $*.asm,$(TYPE)\$*.obj; .autodepend all: util$(MODEL)$(COMPILER).lib ############################################################################### # # Files # ############################################################################### FILE01= config.obj config16.obj utalloc.obj ualloc.obj fastkb.obj comstuff.obj ############################################################################### # ANY MODEL ............. ############################################################################### util$(MODEL)$(COMPILER).lib: $(FILE01) cd $(TYPE) c:\c600\binb\lib ..\util$(MODEL)$(COMPILER).lib @..\util.dat cd .. lint: del lint.tmp C:\LINT\LINT +fxc -e537 -e785 +v -iC:\LINT STD.LNT lint.lnt -od(proto.xxx) >lint.tmp clean: del util$(MODEL)$(COMPILER).lib cd $(TYPE) del *.obj cd ..