# Makefile template for mod_vs. # Copyright (c) 1999, 2000 Idaya Ltd. # Contributed by Nick Burrett # This file is part of the Virtual Server Administrator (FreeVSD) # FreeVSD 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, or (at your option) # any later version. # FreeVSD 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 FreeVSD; see the file COPYING. If not, write to # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. prefix=@prefix@ exec_prefix=@exec_prefix@ bindir=@bindir@ mandir=@mandir@ sbindir=@sbindir@ LIBS=@LIBS@ CC=@CC@ CFLAGS=@CFLAGS@ BISON=@BISON@ AR=@AR@ INSTALLCMD=@INSTALL@ srcdir=@srcdir@ top_srcdir=@top_srcdir@ VPATH=$(srcdir) SHELL=/bin/sh TFLAGS=-DVSBOOT=\"@sbindir@/vsboot\" .SUFFIXES: .SUFFIXES: .c .o OBJS=mod_vs.o vs.o # note that the -I. is needed to handle config.h when using VPATH .c.o: $(CC) -I. -I.. -I../.. -I$(srcdir) -I../../../libvsd $(CFLAGS) $(TFLAGS) -c $< all: mod_vs.a mod_vs_lib.o mod_vs.a: $(OBJS) $(AR) rc $@ $(OBJS) mod_vs_lib.o: mod_vs.c $(CC) -I. -I.. -I../.. -I$(srcdir) $(CFLAGS) -DVSD_LIB -c $< -o $@ proto: cat *.c | awk -f mkproto.awk > proto.h clean: -rm -f *~ *.o mod_vs.a distclean: clean -rm -f configure config.cache config.h config.h.in config.log -rm -f Makefile mod_vs.o mod_vs_lib.o: mod_vs.c mod_vs.h vs.h config.h ../../vsd.h vs.o: vs.c vs.h config.h ../../vsd.h