## This file is part of Moonlight Creator
##   Copyright (C) 1996-1998  Stephane Rehel
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU Library 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
## Library General Public License for more details.
##
## You should have received a copy of the GNU Library General Public
## License along with this library; if not, write to the Free
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

############################################################################
# ML
# Stephane Rehel
# Created: June 28, 1996
#
############################################################################

MAKECONFIG=$(TOPDIR)/Makeconfig

ifneq ($(MAKECONFIG),$(wildcard $(MAKECONFIG)))
unconfig_target:
	@echo
	@echo \ \ Please run \"configure\" first. \(see INSTALL\)
	@echo
else
include $(MAKECONFIG)
endif

ifeq ($(MOONLIGHT_DEV),)
  OPREFIX=$(OSARCH)/opt
  DEPEND=.depend-opt
else
  OPREFIX=$(OSARCH)/dev
  DEPEND=.depend
endif

MAKERULES= $(TOPDIR)/Makerules


## AI="Architecture Independent"
AI_BIN_DIR= $(TOPDIR)/../bin
   BIN_DIR= $(AI_BIN_DIR)/$(OPREFIX)
AI_LIB_DIR= $(TOPDIR)/../lib
   LIB_DIR= $(AI_LIB_DIR)/$(OPREFIX)
AI_PLUGIN_DIR= $(TOPDIR)/../lib
   PLUGIN_DIR= $(AI_PLUGIN_DIR)/$(OPREFIX)

SBIN_DIR=$(HOME)/ml_archive/sbin

BUILD_FILENAME=$(TOPDIR)/build

ifeq ($(SBIN_DIR)/incbuild,$(wildcard $(SBIN_DIR)/incbuild))
INCBUILD=$(SBIN_DIR)/incbuild $(BUILD_FILENAME)
else
INCBUILD=true
endif

## Libraries names

BASE_LIBS=

#############################################################################

LIB_MOON_PREFIX=moon_

VERSION_FILE=$(TOPDIR)/version.h
CONFIG_FILE=$(TOPDIR)/config.h

ML_BASENAME=moonlight
#PROGRAM=$(BIN_DIR)/$(ML_BASENAME)-$(VERSION)

PROGRAM_NAME=$(ML_BASENAME)-$(VERSION)

ml_libdir=$(libdir)/moonlight

############################################################################
#
# Makenames end
#
############################################################################
