top_builddir=..
# Generated automatically from Makefile.clean by configure.
# Copyright (c)1994-1999 Begemot Computer Associates. All rights reserved.
# See the file COPYRIGHT for details of redistribution and use.



prefix	= /usr/local
exec_prefix = ${prefix}
includedir = ${prefix}/include
libdir = ${exec_prefix}/lib
mandir = ${prefix}/man
srcdir	= .
bindir  = ${exec_prefix}/bin
top_srcdir = ..

INSTALL	= /usr/bin/install -c
INSTALL_PROG = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_DIR = $(top_srcdir)/Config/mkinstalldirs

CFLAGS = -g -O2
LDFLAGS =  -g
LIBS = 

DBGFLAGS = -g
WFLAGS = -Wall -Wimplicit -Wformat
COPT = -O2 -fomit-frame-pointer
DEFS =  -DFPP=1 -DUSE_REGISTERS=1 -DHAVE_NET_IF_VAR_H=1 -DHAVE_SIN_LEN=1 -DHAVE_PATHS_H=1 -DHAVE_CFMAKERAW=1 -DHAVE_BZERO=1 -DHAVE_BCOPY=1 -DHAVE_MS_SYNC=1 -DHAVE_O_ASYNC=1 -DHAVE_UINT=1 -D_PATH_XTERM=\"/usr/X11R6/bin/xterm\" -DINS_I386=1 -DFLOAT_I386=1 -DSYSTEMS=\"freebsd4.0\" -DPROCS=\"i386\" 

LIB_SOCKET = 

EPP_TARGETS =  epp_fifo epp_bpf epp_tun
AS11 = 

BEGEMOT_INCLUDE = /usr/local///include
BEGEMOT_LIBDIR = /usr/local///lib

LIBDIR = ${prefix}/share/p11
IODIR = ${exec_prefix}/libexec/p11

DEFS += -DVERSION=\"`cat $(top_srcdir)/VERSION`\"
DEFS += -DLIBDIR=\"$(LIBDIR)\"
DEFS += -DIODIR=\"$(IODIR)\"
CFLAGS += $(DBGFLAGS) $(WFLAGS) $(COPT) $(DEFS) -I$(srcdir) -I$(top_srcdir) -I/usr/local/include -I$(BEGEMOT_INCLUDE)
LDFLAGS += $(DBGFLAGS) -L/usr/local/lib -L$(BEGEMOT_LIBDIR) -R$(BEGEMOT_LIBDIR)

LINK = $(top_builddir)/libtool --mode=link gcc
CC = gcc

AS11 = 
AS_TARGET = @AS_TARGET@
# Copyright (c)1994-1999 Begemot Computer Associates. All rights reserved.
# See the file COPYRIGHT for details of redistribution and use.

SRC = aprof.c geni.c mkrom.c cprof.c mktape.c zcp.c mktext.c
OBJ = $(SRC:.c=.o)
CFLAGS += -I. -I$(top_srcdir) -I$(top_srcdir)/libutil
LDFLAGS += -L../libutil
TARGETS = geni mkrom mktape cprof mprof aprof zcp mktext

GENSRC = minstab.c pinstab.c cproftab.c
GENOBJ = $(GENSRC:.c=.o) mprof.o

CLEAN = $(TARGETS) $(GENOBJ) $(GENSRC)

all: $(TARGETS)

geni: geni.o
	$(LINK) $(LDFLAGS) -o geni geni.o -lutil -lbegemot $(LIBS)

mkrom: mkrom.o
	$(LINK) $(LDFLAGS) -o mkrom mkrom.o -lutil -lbegemot $(LIBS)

mktape: mktape.o
	$(LINK) $(LDFLAGS) -o mktape mktape.o -lutil -lbegemot $(LIBS)

cprof: cprof.o pinstab.o
	$(LINK) $(LDFLAGS) -o cprof cprof.o pinstab.o -lutil -lbegemot $(LIBS)
pinstab.c: $(top_srcdir)/ins.tab geni
	geni -p $(top_srcdir)/ins.tab c >pinstab.c
cproftab.c: $(top_srcdir)/ins.tab geni
	geni -p $(top_srcdir)/ins.tab c >/dev/null
cprof.o: cproftab.c

mprof: mprof.o minstab.o
	$(LINK) $(LDFLAGS) -o mprof mprof.o minstab.o -lutil -lbegemot $(LIBS)
minstab.c: $(top_srcdir)/ins.tab geni
	geni -m $(top_srcdir)/ins.tab c >minstab.c
mprof.o: cprof.c
	$(CC) $(CFLAGS) -DMPROF -c $(srcdir)/cprof.c -o mprof.o
mprof.o: cproftab.c

aprof: aprof.o
	$(LINK) $(LDFLAGS) -o aprof aprof.o -lutil -lbegemot $(LIBS)

zcp: zcp.o
	$(LINK) $(LDFLAGS) -o zcp zcp.o $(LIBS) -lutil -lbegemot

mktext: mktext.o
	$(LINK) $(LDFLAGS) -o mktext mktext.o -lutil -lbegemot $(LIBS)

install:
# Copyright (c)1994-1999 Begemot Computer Associates. All rights reserved.
# See the file COPYRIGHT for details of redistribution and use.

.c.o:
	@test -d .deps || mkdir .deps >/dev/null 2>&1
	$(CC) $(CFLAGS) -c -Wp,-MD,.deps/$*.d $< -o $@

.c.s:
	@test -d .deps || mkdir .deps >/dev/null 2>&1
	$(CC) $(CFLAGS) -S -Wp,-MD,.deps/$*.d $< -o $@

.c.p:
	@test -d .deps || mkdir .deps >/dev/null 2>&1
	$(CC) $(CFLAGS) -E -Wp,-MD,.deps/$*.d $< >$@

ifndef DEPS
DEPS = $(SRC:%.c=.deps/%.d)
endif


LIBTOOL_DEPS = 
libtool: $(LIBTOOL_DEPS)
	$(SHELL) ./config.status --recheck


-include $(DEPS)
# Copyright (c)1994-1999 Begemot Computer Associates. All rights reserved.
# See the file COPYRIGHT for details of redistribution and use.

clean:
	-rm -f $(OBJ) $(CLEAN) core *.core *~ a.out .deps/*

distclean: clean
	-rm -f Makefile
	-rm -rf .deps

veryclean: distclean
