######################################################################## # This file is part of pl-fcgi. # # Copyright (C) 2015 Keri Harris # # pl-fcgi 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. # # pl-fcgi 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 pl-fcgi. If not, see . # ######################################################################## QUIET_CC= @echo " [CC] $@" 1>&2; QUIET_LD= @echo " [LD] $@" 1>&2; PROLOGDIR=../prolog SWI_SOLIBDIR=../$(PACKSODIR) SWI_PLLIBDIR=../prolog CFLAGS+= -Wall -I. @SWI_CFLAGS@ LDFLAGS= -Wall -shared @SWI_LIBS@ @LIBS@ CC=@CC@ INSTALL=@INSTALL@ INSTALL_PROGRAM=@INSTALL_PROGRAM@ INSTALL_DATA=@INSTALL_DATA@ OBJECTS= fcgi.o all: fcgi.so fcgi.so: $(OBJECTS) $(QUIET_LD)$(CC) -o $@ $^ $(LDFLAGS) .c.o: $(QUIET_CC)$(CC) $(CFLAGS) -o $@ -c $^ install: fcgi.so mkdir -p $(DESTDIR)$(SWI_SOLIBDIR) $(INSTALL_PROGRAM) fcgi.so $(DESTDIR)$(SWI_SOLIBDIR) distclean: clean rm -f configure Makefile config.h