# # Copyright (c) 1994, 1995, 1996, 1997, 1998, 1999 The University of Utah and # the Computer Systems Laboratory at the University of Utah (CSL). # # This file is part of Flick, the Flexible IDL Compiler Kit. # # Flick 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. # # Flick 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 Flick; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place #330, Boston, MA 02111, USA. # # All the programs and other cruddy little definitions are made in just one # place, here. The directory names still need to be defined in their own # Makefiles, since they have to vary depending on what directory level they're # at. # XXX TARGET_OS = gnu TARGET_ARCH = i386 export HOST_CC = cc export HOST_CXX = c++ export HOST_LD = ld export HOST_AR = ar export HOST_RANLIB = ranlib LEX = flex LEXLIB = -lfl YACC = bison -y INSTALL = /usr/bin/install -c -o root -g wheel INSTALL_PROGRAM = install -s -o root -g wheel -m 555 INSTALL_DATA = install -o root -g wheel -m 444 DEFINES = LIBS = LATEX = latex DVIPS = dvips FIG2DEV = fig2dev TEX4HT = ht # It is not necessary to wrap these in `ifndef's in order for us to allow the # user to override these on the command line: command line settings cause GNU # make to ignore ordinary assignments like these. See Section 9.5 of the GNU # Make Manual. # CFLAGS = -fno-common -Wall HOST_CFLAGS = TARGET_CFLAGS = CXXFLAGS = -fno-common -Wall HOST_CXXFLAGS = TARGET_CXXFLAGS = LDFLAGS = DVIPS_FLAGS = # We use gcc/g++'s feature of automatically generating dependency files from # the source (-MD), as well as the separator used to distinguish directories # searched for include files via "" and <> (-I-). Since other compilers are # unlikely to have these flags, we only specify them when we have gcc/g++. # # XXX - You must use BOTH gcc AND g++ to get these flags set. If either is # not a GNU compiler, the flags will not be used. (The reason for this is # that they are placed into ALL_CPPFLAGS in GNUmakerules, and are thus used # for both C and C++ compilation.) ifeq (yesyes,yesyes) CFLAGS_GEN_DEP = -MD CFLAGS_INCLUDE_SEP = -I- else CFLAGS_GEN_DEP = CFLAGS_INCLUDE_SEP = endif HOST_INCDIR = $(exec_prefix)$(shell test -d $(exec_prefix)/include || \ (test -d $(exec_prefix)/i386-gnu \ && echo /i386-gnu))/include HOST_BINDIR = $(exec_prefix)$(shell test -d $(exec_prefix)/bin || \ (test -d $(exec_prefix)/i386-gnu \ && echo /i386-gnu))/bin HOST_LIBDIR = $(exec_prefix)$(shell test -d $(exec_prefix)/lib || \ (test -d $(exec_prefix)/i386-gnu \ && echo /i386-gnu))/lib ifeq (i386-unknown-gnu, i386-unknown-gnu) # We are building Flick to compile for the native host. # Make sure we always use the `HOST_*' variables in all cases. override COMPILE_FOR = HOST else # We are building Flick to compile for a different target. # We must set up different `TARGET_*' variables. TARGET_CC = i386-unknown-gnu-gcc TARGET_CXX = i386-unknown-gnu-g++ TARGET_LD = i386-unknown-gnu-ld TARGET_AR = i386-unknown-gnu-ar TARGET_RANLIB = i386-unknown-gnu-ranlib TARGET_INCDIR = $(exec_prefix)/i386-unknown-gnu/include TARGET_BINDIR = $(exec_prefix)/i386-unknown-gnu/bin TARGET_LIBDIR = $(exec_prefix)/i386-unknown-gnu/lib endif # The program name transformations determined by `configure'. PROGRAM_PREFIX = PROGRAM_SUFFIX = PROGRAM_EXTENSION = ## End of file.