# -*- Makefile -*-
#
# MICO --- a CORBA 2.0 implementation
# Copyright (C) 1997 Kay Roemer & Arno Puder
#
# 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.
#
# Send comments and/or bug reports to:
#                mico@informatik.uni-frankfurt.de
#

# 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   =
SOEXT    = @SOEXT@
MOC      = @MOC@
X_CFLAGS = @X_CFLAGS@
X_LIBS   = @X_LIBS@
VERSION  = @MICO_VERSION@

CXXFLAGS = -I.
CFLAGS   = -I.
LDLIBS   = -lmico$(VERSION)
LDFLAGS  =
DEPS     =
IDLFLAGS := -I.

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 $@
