# Copyright (C) 2003, 2007 International Business Machines and others.
# All Rights Reserved.
# This file is distributed under the Common Public License.

## $Id: Makefile.am 1273 2009-04-24 16:39:18Z andreasw $

AUTOMAKE_OPTIONS = foreign

EXTRA_DIST = get.ASL INSTALL.ASL

########################################################################
#                           Extra Targets                              #
########################################################################

compdir = compdir

libampl   = $(AMPLSOLVER_A)

if SKIPMAKE
  alltargets =
else
  alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
endif

all-local: $(alltargets)

if MSVC_COMPILE
$(libampl):
	./compile_MS_ASL
else
$(libampl):
	./compile_Unix_ASL
endif

stdio1.h arith.h funcadd0.$(OBJEXT): $(libampl)

CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)

########################################################################
#                         Maintainer Stuff                             #
########################################################################

# Files that are generated and should be cleaned with make distclean
DISTCLEANFILES = $(MAKEOKFILE)

include ../../BuildTools/Makemain.inc
