# FreeS/WAN subdir makefile
# Copyright (C) 1998-2001  Henry Spencer.
# 
# This program 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.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program 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.
#
# RCSID $Id: Makefile,v 1.1.1.1 2004/04/07 09:05:59 louistsai Exp $

TOPDIR=../../..
OBJS = uml_netjig.o
OPTIONS=-DNETDISSECT -DARP_PROCESS
CFLAGS = -g -Wall -I/home/mcr/src/tcpdump -I/home/mcr/src/libpcap ${OPTIONS}
LIBS = -L/home/mcr/src/linux/i386/tcpdump -lnetdissect -L/home/mcr/src/linux/i386/libpcap -lpcap
LIBS += -L/usr/local/ssl/lib -lcrypto

include $(TOPDIR)/Makefile.inc

def:
	@echo "Please read doc/intro.html or INSTALL before running make"
	@false

# programs

checkprograms: uml_netjig

uml_netjig : $(OBJS)
	$(CC) $(CFLAGS) -o uml_netjig $(OBJS) $(LIBS)

clean : 
	rm -f uml_netjig $(OBJS) *~

install :
	install -d $(DESTDIR)/usr/bin
	install -s uml_netjig $(DESTDIR)/usr/bin
