PROGRAMS=async vector dio justdoit nop default all: $(PROGRAMS) videoport.o unvideoport.o clobber clean: /bin/rm -f $(PROGRAMS) *.o OPTS=-I$(ROOT)/usr/include -DDEBUG -UNDEBUG -g -n32 -mips3 BASELIBS=-L$(ROOT)/usr/lib32 -ldmedia videoport.o: videoport.c videoport.h cc -c -o videoport.o videoport.c $(OPTS) unvideoport.o: unvideoport.c videoport.h cc -c -o unvideoport.o unvideoport.c $(OPTS) util.o: util.c videoport.h cc -c -o util.o util.c $(OPTS) # to use real videoport use this VIDEOPORT=videoport.o LIBS=$(BASELIBS) -lvl # to run the disks as fast as possible use this #VIDEOPORT=unvideoport.o #LIBS=$(BASELIBS) nop: nop.c $(VIDEOPORT) util.o cc -o nop nop.c $(VIDEOPORT) util.o $(OPTS) $(LIBS) justdoit: justdoit.c $(VIDEOPORT) util.o cc -o justdoit justdoit.c $(VIDEOPORT) util.o $(OPTS) $(LIBS) dio: dio.c $(VIDEOPORT) util.o cc -o dio dio.c $(VIDEOPORT) util.o $(OPTS) $(LIBS) vector: vector.c $(VIDEOPORT) util.o cc -o vector vector.c $(VIDEOPORT) util.o $(OPTS) $(LIBS) async: async.c $(VIDEOPORT) util.o cc -o async async.c $(VIDEOPORT) util.o $(OPTS) $(LIBS)