############################################################################### ## ## libLB - The LBPP support library ## Copyright (C) 2001 Anthony Liguori ## ## libLB is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## libLB 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 ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ## ############################################################################### all: gui/libGUI.a stdio/libIO.a libLB.a new: clean all CFLAGS = -Wall -g `gnome-config --cflags gnome` SRCS = statements.c functions.c devices.c strings.c debug.c lb.c ifdef PROFILE_MEMORY SRCS += mem_prof.c CFLAGS += --include mem_prof.h endif OBJS = $(SRCS:.c=.o) HDRS = strings.h statements.h functions.h devices.h CC = gcc %.o : %.c lb.h Makefile $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $< lb.h: Makefile $(HDRS) gui/libGUI.a: $(MAKE) -C gui stdio/libIO.a: $(MAKE) -C stdio libLB.a: Makefile $(OBJS) rm -f .lib/* cp -f $(OBJS) .lib cd .lib; \ ar x ../gui/libGUI.a; \ ar x ../stdio/libIO.a; \ rm -f libLB.a; \ ar cq libLB.a *.o; \ ranlib libLB.a; \ mv -f libLB.a ../; \ rm -f * clean: rm -f libLB.a $(OBJS) $(MAKE) -C gui clean $(MAKE) -C stdio clean realclean: rm -f libLB.a $(OBJS) rm -f *~ \#* .#* $(MAKE) -C gui realclean $(MAKE) -C stdio realclean