
#this is for linux 1.2.8 ?
# C++ compiler. If errror is "Can not load ..."
# (try CC or gcc instead of g++)
C++ = g++ -I$(INCDIR) -L$(LIBDIR) -O2

# pathname to X11/*.h files
# if compilation errors are "Can not find include file ..." then
# try /usr/local/include or /usr/include/X11R5 
INCDIR     = /usr/include

# pathname to libX11.a
# If errror is "Can not find library ..."
# try /usr/local/lib or /usr/lib/X11R5
LIBDIR	   = /usr/X11R6/lib
CPP        = /lib/cpp
F77        = f77
LIBS       = -lX11 -lm
OBJS       = test.o WINDOW.o MENU_ITEM.o SMENU_ITEM.o work.o MENU.o \
	     DBOX.o CONTROL.o STATIC.o EDIT.o BUTTON.o LBOX_ITEM.o LBOX.o \
	     SCROLL_BAR.o SBBUTTON.o OUTPUT.o mig1.o MIG1.o exkor.o \
	     task.o bayes1.o SUBMENU.o BAYES1.o SHIT.o CLIENT.o lbayes.o \
	     PAR_DBOX.o ERROR.o PROJ.o VAR_DBOX.o unt.o UNT.o EXKOR.o \
	     RES_DBOX.o VEDIT.o CONV.o fi.o NUM.o shit.o IO_DBOX.o LBAYES.o \
             lpmin.o LPMIN.o glopt.o GLOPT.o flexi.o FLEXI.o HELP.o
RES        = menu.res bayes1p.res nlpp.res var.res lbayesp.res \
	     res.res num.res mig1p.res untp.res exkorp.res lpminp.res \
             gloptp.res flexip.res help.res
TARGET     = test
.SUFFIXES: .C .o .rc .res .f
.f.o:   $(F77) -c $*.f
.C.o:
	$(C++) -c $*.C
.rc.res:
	$(CPP) -P $*.rc > $*.res

all: $(TARGET) $(RES)

$(TARGET): $(OBJS) Makefile
	$(PURIFY) $(C++) -o $(TARGET) $(OBJS) $(LIBS)
# DO NOT DELETE THIS LINE -- make depend depends on it.
