############################################################################### # # makefile for lowlevel UltraSound libraries & example code # ############################################################################### # # This makefile will build the objects in a subdir called metaware. # The library is built in the current directory from those objs. # Make sure that subdir exists before making the library. # ############################################################################### INCS=C:\highc\inc -I..\incs #DEBUG = -g ############################################################################### # Transformation rules # Compile all .c files with the Metaware High C++ Compiler # Flat model ............. ############################################################################### .path.obj = .\metaware .c.obj: hc386 $(DEBUG) -fsoft -c -I$(INCS) -O5 $&.c @mv $&.obj metaware .asm.obj: 386asm $& -twocase -nolist -include C:\tnt\include\\ @mv $&.obj metaware .autodepend # Use this line if you have the 3D sources ... all: ultra0mw.lib \ ultra1mw.lib \ ult3d_mw.lib #all: ultra0mw.lib\ # ultra1mw.lib ############################################################################### # # LEVEL 0 Stuff # ############################################################################### FILE01= irq.obj vars.obj open.obj FILE02= handle.obj joy.obj rock.obj FILE03= reset.obj dmadram.obj dma.obj FILE04= vocread.obj vocstop.obj vocfreq.obj FILE05= vocset.obj vocstart.obj vocend.obj FILE06= vocloop.obj vocstopd.obj balance.obj FILE07= sample.obj timer.obj midi.obj FILE08= volset.obj volstop.obj vol0ramp.obj FILE09= volrate.obj volstopd.obj volread.obj FILE10= init.obj size.obj util0.obj FILE11= memalloc.obj memfree.obj meminit.obj ############################################################################### # # LEVEL 1 Stuff # ############################################################################### FILE1a= voice1.obj vol1.obj vocaloc.obj ############################################################################### # # 3D stuff # ############################################################################### FILE3D1= posabs.obj posang.obj posangf.obj freq3d.obj FILE3D2= start3d.obj stop3d.obj load3ds.obj setup3d.obj dup3d.obj #metaregs.obj: metaregs.asm # 386asm metaregs -twocase -nolist -include C:\tnt\include\\ # @mv metaregs.obj metaware ultra0mw.lib: $(FILE01) $(FILE02) $(FILE03) $(FILE04) $(FILE05) $(FILE06) $(FILE07) $(FILE08) $(FILE09) $(FILE10) $(FILE11) peekpoke.obj metaregs.obj cd metaware 386lib ..\ultra0mw.lib @..\ultra0.lbc 386lib ..\ultra0mw.lib -REPLACE peekpoke.obj metaregs.obj cd .. ultra1mw.lib: $(FILE1a) cd metaware 386lib ..\ultra1mw.lib @..\ultra1.lbc cd .. ult3d_mw.lib: $(FILE3D1) $(FILE3D2) cd metaware 386lib ..\ult3d_mw.lib @..\threed.lbc cd ..