#****************************************************************************** #FILE: $(COMMON)/Makefile #LANGUAGE: make #SYSTEM: UNIX #USER-INTERFACE: None #DESCRIPTION # This Makefile tells how to compile the common libraries. # # Input variables are: # # $(MAKEDIR) where the makefiles are located. # # $(PREFIX) where the libraries are installed. # It will be created a subdirectory in this # $(PREFIX) for each library compiled by # this makefile. # # Output: # # $(PREFIX)/bin/$(PROGRAM) the executables. # $(PREFIX)/lib/$(MODULE)/interfaces/ the interface of the module, # $(PREFIX)/lib/$(MODULE)/documentation/ the documentation of the module, # $(PREFIX)/lib/$(MODULE)/libraries/ the libraries of the module. # #AUTHORS # Pascal J. Bourguignon #MODIFICATIONS # 2001-06-19 Reorganized and simplified. #LEGAL # Copyright Pascal J. Bourguignon 1992 - 2003 # # This script is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This script 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 # General Public License for more details. # # You should have received a copy of the GNU General Public # License along with this library; see the file COPYING.LIB. # If not, write to the Free Software Foundation, # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #****************************************************************************** TARGET := $(shell uname) PREFIX := /usr/local MAKEDIR := $(HOME)/src/public/common/makedir MODULES= \ bclib bjlib benlib \ bolib \ bplib bpcombi bprib include $(MAKEDIR)/project help:: @echo "" @echo "Input variables are:" @echo " TARGET ($(TARGET))" @echo " MAKEDIR ($(MAKEDIR))" @echo " PREFIX ($(PREFIX))" @echo "" @echo "They can be changed passing them as make argument:" @echo " make TARGET=new-target MAKEDIR=/make/dir PREFIX=/usr/local install" @echo "" m1: make PREFIX=$(HOME)/install \ COMMON=`pwd` \ MAKEDIR=`pwd`/makedir \ cvsclean depend install m1i: make PREFIX=$(HOME)/install \ COMMON=`pwd` \ MAKEDIR=`pwd`/makedir \ install m2: make PREFIX=/local \ COMMON=`pwd` \ MAKEDIR=`pwd`/makedir \ cvsclean depend install etags tags: find $$(pwd) \( -name \*.lisp \ -o -name \*.[hc] \ -o -name \*.hh -o -name \*.cc \ \) -print | etags - #### Makefile -- -- ####