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: ../../bin/smsd ../../bin/snppd
- clean:
- $(RM) *.o *.bak ../../bin/smsd ../../bin/snppd
- # --------------------------------------------------------------------
- INCLUDE = -I.. -I../parser
- gs_parser:
- cd ../parser ; make gs_parser.a
- server.o: server.c ../common.h ../logfile.h server.h
- $(CC) $(CFLAGS) -c server.c $(INCLUDE)
- resource.o: resource.c ../common.h ../logfile.h resource.h
- $(CC) $(CFLAGS) -c resource.c $(INCLUDE)
- snppd.o: snppd.c ../logfile.h server.h ../common.h ../../Makefile.config
- $(CC) $(CFLAGS) -c snppd.c -DMSNPPDLOGLEVEL=3 -DMSNPPDLOGFILE=""$(MSNPPDLOGFILE)"" $(INCLUDE)
- smsd.o: smsd.c ../logfile.h server.h ../common.h ../../Makefile.config resource.h
- $(CC) $(CFLAGS) -c smsd.c -DMSMSDLOGLEVEL=3 -DMSMSDLOGFILE=""$(MSMSDLOGFILE)"" $(INCLUDE)
- ../../bin/smsd: smsd.o server.o ../logfile.o ../common.o resource.o gs_parser
- $(CC) $(CFLAGS) -o ../../bin/smsd smsd.o server.o ../logfile.o ../common.o $(XTRALIBS) resource.o ../parser/gs_parser.a
- ../../bin/snppd: snppd.o server.o ../logfile.o ../common.o
- $(CC) $(CFLAGS) -o ../../bin/snppd snppd.o server.o ../logfile.o ../common.o $(XTRALIBS)
- # --------------------------------------------------------------------
- ../logfile.o: ../logfile.c ../logfile.h
- cd .. ; make logfile.o
- ../common.o: ../common.c ../common.h
- cd .. ; make common.o
- # --------------------------------------------------------------------