1# Copyright (c) 2003 Bruno T. C. de Oliveira 2# 3# LICENSE INFORMATION: 4# This program is free software; you can redistribute it and/or 5# modify it under the terms of the GNU General Public 6# License as published by the Free Software Foundation; either 7# version 2 of the License, or (at your option) any later version. 8# 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12# General Public License for more details. 13# 14# You should have received a copy of the GNU General Public 15# License along with this program; if not, write to the Free Software 16# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17# Copyright (c) 2002 Bruno T. C. de Oliveira 18# 19# INFORMA��ES DE LICEN�A: 20# Este programa � um software de livre distribui��o; voc� pode 21# redistribu�-lo e/ou modific�-lo sob os termos da GNU General 22# Public License, conforme publicado pela Free Software Foundation, 23# pela vers�o 2 da licen�a ou qualquer vers�o posterior. 24# 25# Este programa � distribu�do na esperan�a de que ele ser� �til 26# aos seus usu�rios, por�m, SEM QUAISQUER GARANTIAS; sem sequer 27# a garantia impl�cita de COMERCIABILIDADE ou DE ADEQUA��O A 28# QUALQUER FINALIDADE ESPEC�FICA. Consulte a GNU General Public 29# License para obter mais detalhes (uma c�pia acompanha este 30# programa, armazenada no arquivo COPYING). 31 32SOURCES=$(wildcard *.c) 33HEADERS=$(filter-out bores.h,$(wildcard *.h)) 34OBJECTS=$(patsubst %.c,%.o,$(SOURCES)) 35 36CFLAGS+=-Wall 37 38all: libbores.a bores.h 39 40bores.h: 41 @echo >bores.h 42 @echo "/* ------ GENERATED FILE. DO NOT EDIT -------- */" >>bores.h 43 @echo "/* THIS FILE IS OVERWRITTEN EVERY TIME YOU */" >>bores.h 44 @echo "/* BUILD THE BORES LIBRARY. */" >>bores.h 45 @echo "/* */" >>bores.h 46 @echo "/* Copyright (c) 2003 Bruno T. C. de Oliveira. */" >>bores.h 47 @echo "/* All rights reserved. */" >>bores.h 48 for i in $(HEADERS); do echo "#include \"$$i\"" >>bores.h; done 49 50libbores.a: $(OBJECTS) 51 rm -f libbores.a 52 ar -r libbores.a $(OBJECTS) 53 54.depends: $(SOURCES) $(HEADERS) 55 $(CC) $(CFLAGS) -MM $(SOURCES) >.depends 56 57-include .depends 58 59clean: 60 rm -f *.o .depends libbores.a bores.h 61 62.PHONY: clean all 63 64 65