1# 2# boxes - Command line filter to draw/remove ASCII boxes around text 3# Copyright (C) 1999 Thomas Jensen and the boxes contributors 4# 5# This program is free software; you can redistribute it and/or modify it 6# under the terms of the GNU General Public License, version 2, as published 7# by the Free Software Foundation. 8# 9# This program is distributed in the hope that it will be useful, but 10# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 11# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12# for more details. 13# 14# You should have received a copy of the GNU General Public License along 15# with this program; if not, write to the Free Software Foundation, Inc., 16# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17#____________________________________________________________________________ 18#============================================================================ 19 20 21CFLAGS = -O -I. $(CFLAGS_ADDTL) 22 23ALL_CL = regexp/regexp.c regexp/regsub.c 24C_SRC = $(notdir $(ALL_CL)) 25ALLFILES = Makefile $(C_SRC) regexp.h regmagic.h 26ALLOBJ = $(C_SRC:.c=.o) 27 28 29.PHONY: clean build debug 30 31 32build: libregexp.a 33debug: libregexp.a 34 35libregexp.a: $(ALLOBJ) 36 ar cr libregexp.a $(ALLOBJ) 37 38regexp.o: regexp.c regmagic.h regexp.h ../config.h 39regsub.o: regsub.c regmagic.h regexp.h ../config.h 40 41.c.o: 42 $(CC) $(CFLAGS) -c $< 43 44 45clean: 46 rm -f $(ALLOBJ) libregexp.a core 47 48 49#EOF 50