# $Id: Makefile.in,v 1.14 2001/09/27 02:50:04 vkurland Exp $

SHELL = @SHELL@
DESTDIR = 

@SET_MAKE@

srcdir = @srcdir@
top_srcdir = @top_srcdir@


CC= @CC@

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@

INSTALL = @INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs

XML_CFLAGS = @XML_CFLAGS@
XML_LIBS = @XML_LIBS@

GLIB_CFLAGS = @GLIB_CFLAGS@

GLIB_LIBS = @GLIB_LIBS@

CFLAGS = -Wall  -g -I. -I$(top_srcdir) -I../compiler-framework $(XML_CFLAGS) $(GLIB_CFLAGS)
LIBS = -L ../compiler-framework -lfwcompiler $(XML_LIBS) $(GLIB_LIBS)


SRC=ipfilter.c policy.c

COMPILER=fwb_ipfilter

all: $(COMPILER)

$(COMPILER): ipfilter.o policy.o ipfilter.h ../compiler-framework/libfwcompiler.a
	gcc -g  -o $@  ipfilter.o policy.o $(LIBS) 

.o: .c
	gcc  $(CFLAGS) -c $< -o $@

clean:
	rm -f core $(COMPILER) *.o

distclean:
	rm -f Makefile

install: $(COMPILER)
	$(mkinstalldirs) $(DESTDIR)$(bindir)
	$(INSTALL_PROGRAM) -s $(COMPILER) $(DESTDIR)$(bindir)

uninstall:
	rm -f $(DESTDIR)$(bindir)/$(COMPILER)


depend:
	makedepend -o o $(CFLAGS) $(SRC)

