# Generated automatically from Makefile.in by configure.
#
#
#

AR = ar cq
C2MAN = c2man
CC = cc -std1
LEX = @LEX@
LN = ln
DOPROTO = do-proto.sh
MAKEDEPEND = /usr/bin/X11/makedepend
MV = mv
RM = rm -f
RANLIB = ranlib
TOUCH = touch
YACC = yacc

CFLAGS = -g
LOCAL_INCLUDES =  -I/u/staff_g/rancur_v/include/arch/alpha -I/u/staff_g/rancur_v/work/mg/libpcap-0.2.1 -Iinclude -I../liba/include -I../liblayer/include -I../libXmg/include -I..
#COND_CFLAGS = -DMOTIF
LOCAL_CFLAGS = $(CFLAGS) $(LOCAL_INCLUDES) $(COND_CFLAGS)

LDFLAGS =  -L/u/staff_g/rancur_v/lib/arch/alpha -L/u/staff_g/rancur_v/work/mg/libpcap-0.2.1
# ATHENA
LOCAL_LDFLAGS = $(LDFLAGS) -L../libXmg -lXmg -lXaw -lXt -lXext -lXmu -lX11 -L../liblayer -llayer -L../liba -la -lpcap

LIBNAMES = ../liba/liba.a ../liblayer/liblayer.a ../libXmg/libXmg.a

#
# objs
#

OBJS = main.o xippkt.o xippktvec.o xippktcut.o \
xipcf.o xipimg.o xipcap.o xiprepl.o xipshcut.o

SRCS = main.c xippkt.c xippktvec.c xippktcut.c \
xipcf.c xipimg.c xipcap.c xiprepl.c xipshcut.c

PROGS = xip

MANDIR = man

#
# all
#

all: $(PROGS)

xip: $(OBJS) $(LIBNAMES)
	$(CC) -o xip $(OBJS) $(LOCAL_LDFLAGS) 
#-L../libefence -lefence

isrcs: $(ISRCS)

proto:	isrcs
	$(DOPROTO) $(LOCAL_INCLUDES) $(COND_CFLAGS) include/*.h

fproto:
	$(TOUCH) *.c
	$(MAKE) proto

depend:
	$(MAKEDEPEND) $(LOCAL_INCLUDES) $(SRCS)

clean:
	$(RM) $(OBJS)

fclean:
	$(RM) $(PROGS)

mans:
	for src in $(SRCS); do \
		echo making $@ for $$src;\
		$(C2MAN) $(LOCAL_INCLUDES) -o$(MANDIR) $$src;\
	done   

#
# implicit rules
#

.SUFFIXES: .E .x

.c.o: $(SRCS)
	$(CC) $(LOCAL_CFLAGS) -c $<
	@$(TOUCH) $@

.c.E:
	$(CC) $(LOCAL_CFLAGS) -E $<
