Makefile
上传用户:psq1974
上传日期:2007-01-06
资源大小:1195k
文件大小:2k
- #-------------------------------------------------------------------------
- #
- # Makefile
- # Makefile for Video Server project
- #
- # IDENTIFICATION
- # $Header: /home/andrew/CVSROOT/VideoServer/Makefile,v 1.14 1999/03/09 05:02:55 andrew Exp $
- #
- #-------------------------------------------------------------------------
- FIND = find
- JAR = jar
- JAVA = java
- JAVAC = javac
- JAVADOC = javadoc
- RM = rm -f
- LN = ln -sf
- CLASSP = $(HOME)/classpath
- CLASSPF = $(HOME)/classpath/edu/sunysb/cs/ecsl/videoserver
- SRCP = ./edu/sunysb/cs/ecsl/videoserver
- # This defines how to compile a java class
- $(CLASSPF)/%.class: $(SRCP)/%.java
- $(JAVAC) -d $(CLASSP) $<
- .SUFFIXES: .class .java
- .PHONY: all clean doc
- OBJS = $(CLASSPF)/VideoServer.class
- $(CLASSPF)/VSProperties.class
- $(CLASSPF)/ChannelRegistry.class
- $(CLASSPF)/VideoServerThread.class
- $(CLASSPF)/TextProtocol.class
- $(CLASSPF)/TextProtocolItem.class
- $(CLASSPF)/DatabaseConnection.class
- $(CLASSPF)/SyntaxException.class
- $(CLASSPF)/KillRequestedException.class
- all: postgresql.jar $(OBJS)
- test: $(OBJS)
- $(JAVA) edu.sunysb.cs.ecsl.videoserver.VideoServer
- doc:
- cd client/src/; doc++ -A -p -H -d ../../doc/videoclient `find . -name '*h'`
- cd pusher/src/; doc++ -A -p -H -d ../../doc/pusher `find . -name '*h'`
- cd acquisition/src/; doc++ -A -p -H -d ../../doc/acquisition `find . -name '*h'`
- $(JAVADOC) -package -private -noindex edu.sunysb.cs.ecsl.videoserver -d ./doc/videoserver
- postgresql.jar:
- $(MAKE) -C jdbc
- $(LN) ./jdbc/postgresql.jar ./
- VideoServer.jar: $(OBJS)
- $(JAR) -c0vf $@ $^
- # This rule removes any temporary and compiled files from the source tree.
- clean:
- $(FIND) . -name "*~" -exec $(RM) {} ;
- $(FIND) . -name "*.class" -exec $(RM) {} ;
- $(RM) postgresql.jar
- #######################################################################
- # This helps make workout what classes are from what source files
- #
- # Java is unlike C in that one source file can generate several
- # _Different_ file names
- #
- #$(CLASSPF)/VideoServer.class: VideoServer.java
- #$(CLASSPF)/Properties.class: Properties.java