# Generated automatically from Makedefs.in by configure.
##############################################################################
# Common definitions for Makefiles
#
# Some of these variables are set by configure.
# The rest are for convenience.

config_srcdir = /export/home/thor/thor/linux/../config

##############################################################################
# Configuration to build a particular version of the system

VERSION = default

##############################################################################
# Various utilities

RANLIB = ranlib
CPP = /lib/cpp
MAKEDEPEND = xdepend
MKDEPFILT = 2>&1 | egrep makedepend |\
                   egrep -v 'unknown directive' |\
                   egrep -v 'includes .*\.t more than once' \
                || test ok

FIXDEP = $(TOPSRC)/bin/fix_dep

AR = ar

##############################################################################
# C compilation

CC = gcc
CCDEBUG = -g
CCDEFS =
CCINCS =
CCOPTS = $(CCDEBUG) -Wall
CFLAGS = $(CCOPTS) $(CCDEFS) $(CCINCS) $(LCFLAGS)

CCDEFINCS =
CCMKDEP = gcc -MM $(CFLAGS) $(CCDEFINCS)

MALLOC_LIB = 

##############################################################################
# C++ compilation

CCC = g++
CCCLINKER = g++
CCCPROFLINK = g++ -p
CCCPIXLINK = g++
CCCDEBUG = $(CCDEBUG)
CCCDEFS =
CCCINCS =
CCCOPTS = $(CCCDEBUG) -Wall -fno-implicit-templates
CCCFLAGS = $(CCCOPTS) $(CCCDEFS) $(CCCINCS) $(LCCCFLAGS)

CCCDEFINCS = -I/usr/include/g++-3
CCCMKDEP = g++ -MM $(CCCFLAGS) $(CCCDEFINCS)

##############################################################################
# Libraries/Header files

XINC =  -I/usr/X11R6/include
XLIB =  -L/usr/X11R6/lib -lX11 

TCLINC = 
TCLLIB = -L/usr/lib

TKINC = 
TKLIB = -L/usr/lib

SCHED_LIBS = 

EXTRALIBS = 

##############################################################################
# Source files

CCSRCS =
CCCSRCS =
OBJECTS = $(CCSRCS:.c=.o) $(CCCSRCS:.cc=.o)

SUBDIRS =

##############################################################################
# Rules
#
# The default rule ensures that the current system configuration is up to
# date, including the local Makefile. Note that this rule must be the first
# rule in this file.

default: reconfig

##############################################################################
# Build rules
#
# Note that the rules for building C and C++ object files automatically do
# dependency analysis. The rules for .i and .s files make development easier;
# .i files are the output that the compiler really sees, and .s files are
# the assembly versions.

.SUFFIXES: .cc .i

$(DEPENDING):

.c.o:
	@-($(CCMKDEP) $<; echo "$@: "'$$(DEPENDING)') > `$(FIXDEP) $<`
	@if test -z "$(DEPENDING)"; then				      \
	    $(ECHO) $(CC) $(CFLAGS) -c $<;				      \
	            $(CC) $(CFLAGS) -c $<;				      \
	else $(ECHO) '  $<'; fi

.cc.o:
	@-($(CCCMKDEP) $<; echo "$@: "'$$(DEPENDING)') > `$(FIXDEP) $<`
	@if test -z "$(DEPENDING)"; then				      \
	    $(ECHO) $(CCC) $(CCCFLAGS) -c $<;				      \
	            $(CCC) $(CCCFLAGS) -c $<;				      \
	else $(ECHO) '  $<'; fi

.cc.i:
	$(CCC) $(CCCFLAGS) -E $< > $@

.c.i:
	$(CC) $(CFLAGS) -E $< > $@

.c.s:
	$(CC) $(CFLAGS) -S $<

.cc.s:
	$(CCC) $(CFLAGS) -S $<

##############################################################################
# Include configuration-independent definitions and rules

include $(config_srcdir)/commondefs
