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.

CLEAN += text.s11 help.s11 helpa.s11 helpb.s11 *.def *.o *.11 *.l11
CLEAN += boot.rom boot.map

TSRC = text.s11 help.s11 helpa.s11 helpb.s11
TDEF = $(TSRC:.s11=.def)

ROMSRC = base.s11 input.s11 output.s11 main.s11 mem.s11 parse.s11 boot.s11
ROMSRC += $(TSRC)

ROMOBJ = $(ROMSRC:.s11=.11)
ROMLST = $(ROMSRC:.s11=.l11)

all: links boot.rom

ifneq "$(AS11)" ""
boot.rom: $(ROMOBJ)
	../Utils/mkrom -s 020000 -m boot.map -o boot.rom \
		-r 0173000 \
		-b 000000 base.11 \
		-b 013000 help.11 \
		-b 014000 helpa.11 \
		-b 015000 helpb.11 \
		-b 016000 text.11 \
		-r 0165000 \
		-b 01000 input.11 \
		-b 02000 parse.11 \
		-b 03000 output.11 \
		-b 04000 main.11 \
		-b 05000 boot.11 \
		-b 017000 mem.11
else
boot.rom: boot.romx
	ln -s $< $@
endif

links: ./call.s11 ./defs.s11

./call.s11: FRC
	@test -r ./call.s11 || ln -s $(srcdir)/call.s11 .

./defs.s11: FRC
	@test -r ./defs.s11 || ln -s $(srcdir)/defs.s11 .

FRC:

list: $(ROMLST)


.SUFFIXES: .in .def .s11 .11 .l11

.in.s11:
	../Utils/mktext -o $@ $< `echo T.$* | tr "[a-z]" "[A-Z]"`

.in.def:
	../Utils/mktext -d $@ $< `echo T.$* | tr "[a-z]" "[A-Z]"`

.s11.11:
	$(AS11) -o $@ $<

.s11.l11:
	$(AS11) -l $@ $<

$(ROMOBJ): defs.s11 $(TDEF)
$(ROMLST): defs.s11 $(TDEF)
$(TSRC): ../Utils/mktext

install:
	$(INSTALL_DIR) $(LIBDIR)
	$(INSTALL_DATA) boot.rom $(LIBDIR)
# 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
