Makefile
上传用户:seven77cht
上传日期:2007-01-04
资源大小:486k
文件大小:2k
- # $Header: /home/amb/wwwoffle/RCS/Makefile 2.30 1998/05/30 14:27:44 amb Exp amb $
- #
- # WWWOFFLE - World Wide Web Offline Explorer - Version 2.4b.
- #
- # Test Programs Makefile.
- #
- # Written by Andrew M. Bishop
- #
- # This file Copyright 1998,99 Andrew M. Bishop
- # It may be distributed under the GNU Public License, version 2, or
- # any higher version. See section COPYING of the GNU Public license
- # for conditions under which this file may be redistributed.
- #
- ########
- CC=gcc
- CFLAGS=-O2 -Wall -g
- LD=gcc
- LDFLAGS=-g
- ########
- INCLUDE=
- LIBRARY=
- COMPILE=$(CC) -c $(CFLAGS)
- LINK=$(LD) $(LDFLAGS)
- ########
- all : wwwoffle-programs test-doc test-msg test-modify
- ########
- wwwoffle-programs :
- cd .. && $(MAKE) programs
- ####
- TEST_DOC_OBJ=test-doc.o
- ../http.o ../ftp.o ../finger.o ../ssl.o
- ../document.o ../html.o ../xml.o ../vrml.o ../javaclass.o
- ../messages.o ../parse.o ../spool.o
- ../config.o ../errors.o ../io.o ../misc.o ../proto.o ../sockets.o ../md5.o
- test-doc : $(TEST_DOC_OBJ)
- $(LINK) $(TEST_DOC_OBJ) -o $@ $(LIBRARY)
- ####
- TEST_MSG_OBJ=test-msg.o
- ../messages.o ../parse.o ../spool.o
- ../config.o ../errors.o ../io.o ../misc.o ../proto-none.o ../sockets.o ../md5.o
- test-msg : $(TEST_MSG_OBJ)
- $(LINK) $(TEST_MSG_OBJ) -o $@ $(LIBRARY)
- ####
- TEST_MODIFY_OBJ=test-modify.o
- ../htmlmodify.o
- ../messages.o ../parse.o ../spool.o
- ../config.o ../errors.o ../io.o ../misc.o ../proto-none.o ../sockets.o ../md5.o
- test-modify : $(TEST_MODIFY_OBJ)
- $(LINK) $(TEST_MODIFY_OBJ) -o $@ $(LIBRARY)
- ####
- %.o:%.c
- $(COMPILE) $< -o $@ $(INCLUDE) -I..
- test-doc.o : test-doc.c ../wwwoffle.h ../misc.h ../document.h
- test-msg.o : test-msg.c ../wwwoffle.h ../misc.h
- test-modify.o : test-modify.c ../wwwoffle.h ../misc.h
- ########
- clean :
- -rm -f test-doc test-msg test-modify
- -rm -f core *.o *~