Makefile revision 493
#
# Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
#
# This code 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
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
#
# Single gnu makefile for solaris, linux and windows (windows requires mks or
# cygwin).
# Pop all the way out of the workspace to look for binutils.
# ...You probably want to override this setting.
# Default arch; it is changed below as needed.
## OS = SunOS ##
DLDFLAGS += -G
OUTFLAGS += -o $@
else
## OS = Linux ##
else
endif # x86_64
endif # ia64
CCFLAGS += -O
OUTFLAGS += -o $@
## OS = Windows ##
else # !SunOS, !Linux => Windows
#CPPFLAGS += /D"WIN32" /D"_WINDOWS" /D"DEBUG" /D"NDEBUG"
/export:decode_instruction
endif # Linux
endif # SunOS
endif # LIBARCH64/$(ARCH)
endif # LP64
%64:
$(LIBRARIES):
@echo "*** Please build binutils first; see ./README: ***"
@echo "..."; exit 1
$(TARGET_DIR):
[ -d $@ ] || mkdir -p $@