#   IC-Prolog ][
#
#   Makefile for building IC-Prolog ][ executable
#
#   Created by Yannis Cosmadopoulos
#   20 November, 1992









# ---------------------- start of global definitions -------------------------

####################################################################
# Do not edit this section.  To make changes, go to TOPDIR/install #
# and edit the Makefile.sed in that directory.  Then do            #
#        make makefiles                                            #
####################################################################


CC      	= gcc
CFLAGS  	= -O2
LDFLAGS 	= -static

PARLOG_CPP1	= 

HEAPSIZE	= 0xc000L
STACKSIZE	= 0x4000L

RM		= /usr/bin/rm -f
RM_CMD		= /usr/bin/rm -f core .make* .nse_depinfo
M4		= /usr/bin/m4
SED		= /usr/bin/sed
CUT		= /usr/bin/cut
CHMOD		= /usr/bin/chmod
INSTALL		= /usr/bin/install
INSTBINFLAGS	= -m 0775
INSTLIBFLAGS	= -m 0664
LN		= /usr/bin/ln
TAR		= /usr/bin/tar
AR_CMD		= /usr/bin/ar ruv
RANLIB		= /usr/bin/ranlib
MAKEDEPEND	= /usr/bin/X11/makedepend

TEX		= tex
LATEX		= latex
TEXINDEX	= texindex
MAKEINFO	= makeinfo

# The following definitions are used for building the system.
# You may ignore these if you are installing only.
CURRENT_DIR	= .
TOPDIR		= /home/laotzu/visitor/imagine/ic-prolog/ICP-0.97
RUNTIME		= /home/laotzu/visitor/imagine/ic-prolog/ICP-0.97/runtime

COMPDIR		= /home/laotzu/visitor/imagine/ic-prolog/ICP-0.97

PROLOG		= /home/laotzu/visitor/imagine/ic-prolog/ICP-0.97/sun4/icp
MKDIRH		= /home/laotzu/visitor/imagine/ic-prolog/ICP-0.97/install/mkdirhier

# ----------------------- end of global definitions --------------------------


OBJECTS	= mbx_kernel.o mbx_prolog.o mbx_parlog.o
CPPFLAGS= -I../prolog -I../parlog -I../fd_events -DFULL_REPORT_ERROR -DHERMES
SERVER	= mbx_server.c
DIFFS	= *.[ch]

TARGET	= mbx_server

all:: $(OBJECTS) $(TARGET)
	@$(MKDIRH) $(RUNTIME)/bin/sun4 ; for i in $(TARGET) ; do (set -x; $(RM) $(RUNTIME)/bin/sun4/$$i ; $(LN) $$i $(RUNTIME)/bin/sun4/$$i;) done
	@$(MKDIRH) $(RUNTIME)/prolog/sun4 ; for i in $(OBJECTS) ; do (set -x; $(RM) $(RUNTIME)/prolog/sun4/$$i ; $(LN) $$i $(RUNTIME)/prolog/sun4/$$i;) done

makefiles::

clean::
	$(RM_CMD) $(TARGET) $(OBJECTS)

diffs::
	-@echo "---------------------------src/mailbox"; for i in Makefile.m4 $(DIFFS); do echo $$i; diff $$i $(COMPDIR)/src/mailbox; done

depend::
	$(MAKEDEPEND) -- $(CFLAGS) $(CPPFLAGS) -- *.c


$(TARGET): $(SERVER)
	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(SERVER) -o $(TARGET)
	$(CHMOD) `echo $(INSTBINFLAGS) | $(CUT) -d" " -f2` $(TARGET)
# DO NOT DELETE THIS LINE -- make depend depends on it.

mbx_kernel.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
mbx_kernel.o: /usr/include/sys/sysmacros.h /usr/include/sys/times.h
mbx_kernel.o: /usr/include/sys/time.h /usr/include/sys/time.h
mbx_kernel.o: /usr/include/sys/socket.h /usr/include/sys/ioctl.h
mbx_kernel.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
mbx_kernel.o: /usr/include/sys/ttold.h /usr/include/sys/ioccom.h
mbx_kernel.o: /usr/include/sys/ttycom.h /usr/include/sys/filio.h
mbx_kernel.o: /usr/include/sys/sockio.h /usr/include/netinet/in.h
mbx_kernel.o: /usr/include/net/if.h /usr/include/unistd.h
mbx_kernel.o: /usr/include/stdio.h /usr/include/fcntl.h
mbx_kernel.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
mbx_kernel.o: /usr/include/errno.h /usr/include/sys/errno.h
mbx_kernel.o: /usr/include/netdb.h /usr/include/string.h mbx.h
mbx_kernel.o: /usr/include/limits.h /usr/include/malloc.h mbx_interface.h
mbx_kernel.o: ../fd_events/fd_events.h
mbx_parlog.o: ../parlog/ret.h ../parlog/objs.h ../parlog/macros.h
mbx_parlog.o: ../parlog/instr.h ../parlog/proc.h mbx_interface.h
mbx_parlog.o: /usr/include/limits.h /usr/include/stdio.h
mbx_prolog.o: ../prolog/primitives.h ../prolog/icp.h /usr/include/stdio.h
mbx_prolog.o: /usr/include/signal.h /usr/include/sys/signal.h
mbx_prolog.o: /usr/include/vm/faultcode.h /usr/include/setjmp.h
mbx_prolog.o: /usr/include/string.h /usr/include/sys/stdtypes.h
mbx_prolog.o: /usr/include/math.h /usr/include/floatingpoint.h
mbx_prolog.o: /usr/include/sys/ieeefp.h ../prolog/io.h mbx_interface.h
mbx_prolog.o: /usr/include/limits.h
mbx_server.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
mbx_server.o: /usr/include/sys/sysmacros.h /usr/include/sys/times.h
mbx_server.o: /usr/include/sys/time.h /usr/include/sys/time.h
mbx_server.o: /usr/include/sys/socket.h /usr/include/sys/ioctl.h
mbx_server.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
mbx_server.o: /usr/include/sys/ttold.h /usr/include/sys/ioccom.h
mbx_server.o: /usr/include/sys/ttycom.h /usr/include/sys/filio.h
mbx_server.o: /usr/include/sys/sockio.h /usr/include/netinet/in.h
mbx_server.o: /usr/include/net/if.h /usr/include/unistd.h
mbx_server.o: /usr/include/stdio.h /usr/include/fcntl.h
mbx_server.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
mbx_server.o: /usr/include/errno.h /usr/include/sys/errno.h
mbx_server.o: /usr/include/netdb.h /usr/include/string.h mbx.h
mbx_server.o: /usr/include/limits.h /usr/include/malloc.h mbx_interface.h
