#/* # * This Software is the original work of Daniel TUNG # * This Software is submitted in partial fulfillment of the # * requirements for the degree of BCSE. # * Dept. Computer Science, Monash University 2000 # * # * Copyright (c) 2000 beetung@cs.monash.edu.au # * beetung@geocities.com # * # */ .SUFFIXES: .cpp .cc .C CPP =g++ CC =gcc BIN =ccc OBJS =main.o xwin.o streamer.o fastbuf.o autonode.o SRCS =main.cpp xwin.cpp streamer.c fastbuf.c LIBS =-L/usr/X11/lib -L/usr/local/lib -lXt -lX11 -lm -lXext -lXaw3d -lpthread EXTRA =-Wall -pedantic $(DEBUG) $(OPTIMIZE) OPTIMIZE = -fno-exceptions -mpentiumpro #-O9 # DEBUG =-DDEBUG # # original # #LIBS =-L/usr/X11/lib -L/usr/local/lib -lXt -lX11 -lm -lXext -lXaw3d -lpthread\ # -ljpeg ./bttv/myccc.a default:$(OBJS) $(CPP) -o $(BIN) $(EXTRA) $(OBJS) $(LIBS) .cpp.o: $(CPP) -c $(EXTRA) $(INCLUDE) $< .cc.o: $(CPP) -c $(EXTRA) $(INCLUDE) $< .c.o: $(CC) -c $(EXTRA) $(INCLUDE) $< .C.o: $(CPP) -c $(EXTRA) $(INCLUDE) $< clean: rm -f core $(BIN) $(OBJS) *.o depend: grep '^#[ ]*include' ${SRCS} |\ grep -v '<' | \ sed 's,:[^"]*"\([^"]*\)".*,: $(INCLUDE)./\1,' | \ sed 's/\.cpp/.o/' | \ sed 's/\.c/.o/' | \ awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ else rec = rec " " $$2 } } \ END { print rec } ' > makedep # My Linux version of ed doesnt work # need to manually remove the "old appended" entries # echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >>eddep echo '$$r makedep' >>eddep echo 'w' >>eddep cp Makefile Makefile.bak ed Makefile < eddep rm eddep makedep # DO NOT DELETE THIS LINE main.o: ./xwin.h ./file.h streamer.h thread.h car.h semaphore.h comport.h xwin.o: ./xwin.h ./timer.h thread.h streamer.h fastbuf.h autonode.h autoline.h streamer.o: ./bttv.h