# 
# 
# rcsid('$Author: pleuk $',
# 	'$Date: 1993/04/26 16:14:16 $',
# 	'$Revision: 1.0 $',
# 	'$Source: /usr/export/home/projects/ltg2/Pleuk/Distribution/Pleuk/Code/C/RCS/Makefile,v $',
# 	'$State: Exp $').
# 
# $Log: Makefile,v $
# Revision 1.0  1993/04/26  16:14:16  pleuk
# Version 1.00beta from Jo
#
# Revision 0.11  1992/04/16  13:25:19  pleuk
# revisions from SLE - April 1992
#
# Revision 1.2  1992/01/24  12:50:11  pleuk
# revisions from Jo - January 1992
#
# Revision 1.1  1991/10/07  13:57:17  kwh
# Initial revision
#
# Revision 0.1  1991/03/06  14:03:08  pleuk
# *** empty log message ***
#
#
# Makefile for Foreign functions for pleuk

include ../../Makefile.defs

CPPFLAGS = -D${PROLOGTYPE} -DPROLOGVERS=${PROLOGVERS} -I${PROLOGINCDIR}

OBJS = environment.o filestatus.o datestamp.o hack_control_c.o \
	maketemp.o xinterface.o ${EXTRAOBJS}


all: 	${OBJS} X${PROLOGTYPE}.pl
#	xinterface.so   # create executable for Quintus (SLE)

fb_code: all

LIBS = -lXaw -lXmu -lXt -lXext -lX11
LIBDIR = /usr/local/include
INCLUDEDIR=
SOFLAGS = -Bstatic
xinterface.so:
	ld -o xinterface.so $(SOFLAGS) xinterface.o -L$(LIBDIR) $(LIBS)


xinterface.o:
	cc -c -L${LIBDIR} -I/usr/local/OpenWin/include xinterface.c

Xsicstus.pl:
	rm -f $@
	ln -s $@.${INPUTMENUS} $@ 

Xquintus.pl:
	rm -f $@
	ln -s $@.${INPUTMENUS} $@ 

clean:

realclean:
	rm -f ${OBJS} xinterface.so foreign X${PROLOGTYPE}.pl

new: realclean all




