Makefile
上传用户:mei_mei897
上传日期:2007-01-05
资源大小:82k
文件大小:4k
- # --------------------------------------------------------------------
- # 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
- # --------------------------------------------------------------------
- INCLUDE =-I.. -I../client -I../parser
- DRV_OBJ = $(foreach driver,$(DRIVERS),$(shell echo $(driver) | $(TR) '[A-Z]' '[a-z]').o)
- DRV_DEF = $(foreach driver,$(DRIVERS),-D$(driver))
- HDRS = ../common.h ../logfile.h driver.h ../client/expect.h ../sms_error.h ../client/sms_resource.h
- # --------------------------------------------------------------------
- all: sms_driver.a
- clean:
- $(RM) *.o *.bak sms_driver.a
- # --------------------------------------------------------------------
- sms_driver.a: $(DRV_OBJ) driver.o
- $(RM) sms_driver.a
- ifeq ($(PLATFORM), -DNEXT)
- $(AR) rc sms_driver.a driver.o $(DRV_OBJ)
- ranlib sms_driver.a
- else
- $(AR) -rc sms_driver.a driver.o $(DRV_OBJ)
- endif
- driver.o: driver.c driver.h ../logfile.h ../../Makefile.config
- $(CC) $(INCLUDE) $(CFLAGS) -c driver.c $(DRV_DEF)
- -DMSERVICEDIR=""$(MSERVICEDIR)""
- -DMODEMLIB=$(MODEMLIB)
- -DLIBMODEM=$(LIBMODEM)
- -DSMSMODEM=$(SMSMODEM)
- # --------------------------------------------------------------------
- tap.o: tap.c ascii.h $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c tap.c
- vodafone.o: vodafone.c $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c vodafone.c
- vodacom.o: vodacom.c $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c vodacom.c
- mtn.o: mtn.c $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c mtn.c
- orange.o: orange.c $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c orange.c
- pageone.o: pageone.c $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c pageone.c
- one2one.o: one2one.c $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c one2one.c
- libertel.o: libertel.c $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c libertel.c
- tim.o: tim.c $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c tim.c
- snpp.o: snpp.c $(HDRS) ../client/sms_tcpip.h
- $(CC) $(INCLUDE) $(CFLAGS) -c snpp.c
- cimd.o: cimd.c $(HDRS) ascii.h
- $(CC) $(INCLUDE) $(CFLAGS) -c cimd.c
- kpn.o: kpn.c $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c kpn.c
- proximus.o: proximus.c $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c proximus.c
- answer.o: answer.c $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c answer.c
- vodapage_block.o: vodapage_block.c $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c vodapage_block.c
- skeleton.o: skeleton.c $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c skeleton.c
- generic.o: generic.c $(HDRS)
- $(CC) $(INCLUDE) $(CFLAGS) -c generic.c -DMSERVICEDIR=""$(MSERVICEDIR)""
- # --------------------------------------------------------------------
- ../logfile.o: ../logfile.c ../logfile.h
- cd .. ; make logfile.o
- ../common.o: ../common.c ../common.h
- cd .. ; make common.o
- # --------------------------------------------------------------------