# this is usually overridden TARGET_TO_MAKE = $(shell basename `pwd`) ifndef SRCDIR SRCDIR = . endif # this vpath works with listlibs to find the libraries vpath %.a $(TOPDIR)/lib vpath %.so $(TOPDIR)/lib vpath %.la $(TOPDIR)/lib # SRCTOPDIR is the top of the source directory SRCTOPDIR = $(shell $(PERL) $(SRCDIR)/$(TOPDIR)/bin/rmdotdot $(SRCDIR)/$(TOPDIR)) # LIBDIR is the full path to where the libraries are LIBDIR = $(shell $(PERL) $(SRCTOPDIR)/bin/rmdotdot `pwd`/$(TOPDIR)/lib) # SRCLIBDIR is the full path to the lib subdirectory of the source dir SRCLIBDIR = $(SRCTOPDIR)/lib/ # THISDIR is the name of the current directory relative to TOPDIR/src/lib/ THISDIR = $(subst $(shell cd $(TOPDIR); pwd)/src/lib/,,$(shell pwd)) CLASS2TEXFLAGS = CLASS2TEX = $(PERL) $(SRCTOPDIR)/bin/class2tex # installroot can be given on the command line to force # the install targets install to a different directory. # This is useful for building RPM's for example. This can # only be given on the command line--not in the environment ifneq ($(origin installroot),'command line') installroot= endif -include $(TOPDIR)/lib/LocalMakefile ifneq ($(LOCALMAKEFILE_OPTIONAL),yes) ifneq ($(LOCALMAKEFILE_FOUND),yes) $(error LocalMakefile not found. First run configure in the top-level directory you want object code to be placed and then run make there) endif endif