# -*- Makefile -*-
#
#  MICO --- an Open Source CORBA implementation
#  Copyright (c) 1997-2001 by The Mico Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#  For more information, visit the MICO Home Page at
#  http://www.mico.org/
#

# aix gmake 3.75 seems to delete the value of LIBPATH
export LIBPATH=$(LD_LIBRARY_PATH)

JAVAC    = javac
CXX      = mico-c++
SHCXX    = mico-shc++
LD       = mico-ld
LDSO     = mico-shld
IDL      = idl
IDLGEN   =
CCMGEN   = mico-ccm
SOEXT    = so.0.0
MOC      = 
X_CFLAGS =  -I/usr/X11R6/include
X_LIBS   =  -L/usr/X11R6/lib
VERSION  = 2.3.13
EHOPTFLAGS = 

CXXFLAGS = -I. -I$(INSTDIR)/include
CFLAGS   = -I.
LDLIBS   = -lmico$(VERSION)
LDFLAGS  = -L$(INSTDIR)/lib
DEPS     =
prefix          = /usr/local
exec_prefix     = ${prefix}
INSTDIR         = $(exec_prefix)
IDLFLAGS = -B$(INSTDIR) -I.
INSTALLED = yes

AUX_CXXFLAGS =
AUX_LDLIBS   = -lmicoaux$(VERSION)
AUX_LDFLAGS  =
AUX_DEPS     =

COS_CXXFLAGS =
COS_LDLIBS   = -lmicocoss$(VERSION)
COS_LDFLAGS  =
COS_DEPS     =

X11_CXXFLAGS = $(X_CFLAGS)
X11_LDLIBS   = -lmicox$(VERSION) -lXaw -lXmu -lXt -lX11 -lXext $(X_LIBS)
X11_LDFLAGS  =
X11_DEPS     =

QT_CXXFLAGS = $(X_CFLAGS)
QT_LDLIBS   = -lmicoqt$(VERSION) -lqt -lX11 -lXext $(X_LIBS)
QT_LDFLAGS  =
QT_DEPS     =

GTK_CXXFLAGS = $(X_CFLAGS)
GTK_LDLIBS   = -lmicogtk$(VERSION) -lgtk -lgdk -lglib -lX11 -lXext $(X_LIBS)
GTK_LDFLAGS  =
GTK_DEPS     =

.depend:


.SUFFIXES: .moc .pic.o .class .java

%.class: %.java
	$(JAVAC) $<

%.pic.o: %.cc
	$(SHCXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@

%.moc: %.cc
	$(MOC) $< -o $@

%.moc: %.h
	$(MOC) $< -o $@
