# -------------------------------------------------------------------- # SMS Client, send messages to mobile phones and pagers # # Makefile # # Copyright (C) 1997,1998,1999 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: libresource.a test: test/test_resource clean: $(RM) libresource.a $(RM) *.o test/*.o $(RM) *.bak $(RM) test/test_resource # -------------------------------------------------------------------- libparser: cd ../parser ; $(MAKE) libparser.a # -------------------------------------------------------------------- INCLUDE = -I.. -I../parser libresource.a: resource.o $(RM) libresource.a $(AR) libresource.a resource.o $(RANLIB) libresource.a resource.o: resource.c ../common/common.h ../logfile/logfile.h resource.h $(CC) $(CFLAGS) -c resource.c $(INCLUDE) test/test_resource.o: test/test_resource.c $(CC) $(CFLAGS) -c test/test_resource.c -o test/test_resource.o $(INCLUDE) -DMLOGLEVEL=3 -DMLOGFILE="\"test_log\"" test/test_resource: test/test_resource.o libresource.a libparser libcommon ../logfile/logfile.o $(CC) $(CFLAGS) test/test_resource.o -o test/test_resource libresource.a ../parser/libparser.a ../common/libcommon.a ../logfile/logfile.o # -------------------------------------------------------------------- ../logfile/logfile.o: ../logfile/logfile.c ../logfile/logfile.h cd ../logfile ; $(MAKE) logfile.o libcommon: cd ../common ; $(MAKE) libcommon.a # --------------------------------------------------------------------