1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
# 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
|