Makefile
上传用户:mei_mei897
上传日期:2007-01-05
资源大小:82k
文件大小:3k
- # --------------------------------------------------------------------
- # SMS Client, send messages to mobile phones and pagers
- #
- # Makefile
- #
- # Copyright (C) 1997,1998 Angelo Masci
- #
- # This library is free software; you can redistribute it and/or
- # modify it under the terms of the GNU Library General Public
- # License as published by the Free Software Foundation; either
- # version 2 of the License, or (at your option) any later version.
- #
- # This library is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- # Library General Public License for more details.
- #
- # You should have received a copy of the GNU Library General Public
- # License along with this library; if not, write to the Free
- # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- #
- # You can contact the author at this e-mail address:
- #
- # angelo@styx.demon.co.uk
- #
- # --------------------------------------------------------------------
- # $Id$
- # --------------------------------------------------------------------
- include ../../Makefile.config
- # --------------------------------------------------------------------
- all: npipe.o
- test: test_queue test_write
- clean:
- $(RM) *.o *.bak test_queue test_write
- # --------------------------------------------------------------------
- INCLUDE = -I.. -I../parser
- # --------------------------------------------------------------------
- gs_parser:
- cd ../parser ; make gs_parser.a
- npipe.o: npipe.c ../common.h ../logfile.h npipe.h
- $(CC) $(CFLAGS) -c npipe.c $(INCLUDE)
- process.o: process.c ../common.h ../logfile.h process.h
- $(CC) $(CFLAGS) -c process.c $(INCLUDE)
- test_queue.o: test_queue.c ../common.h ../logfile.h npipe.h
- $(CC) $(CFLAGS) -c test_queue.c $(INCLUDE)
- test_write.o: test_write.c ../common.h ../logfile.h
- $(CC) $(CFLAGS) -c test_write.c $(INCLUDE)
- test_queue: test_queue.o npipe.o process.o ../common.h ../logfile.h npipe.h process.h
- $(CC) $(CFLAGS) test_queue.o npipe.o process.o -o test_queue
-
- test_write: test_write.o ../common.h ../logfile.h npipe.h
- $(CC) $(CFLAGS) test_write.o -o test_write
-
- # --------------------------------------------------------------------
- ../logfile.o: ../logfile.c ../logfile.h
- cd .. ; $(MAKE) logfile.o
- ../common.o: ../common.c ../common.h
- cd .. ; $(MAKE) common.o
- # --------------------------------------------------------------------