File: GlobalMakefile

package info (click to toggle)
mpqc 2.3.1-16
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 41,628 kB
  • ctags: 16,917
  • sloc: cpp: 258,686; sh: 8,532; perl: 6,017; ansic: 5,491; makefile: 2,495; fortran: 1,970; lisp: 1,269; yacc: 313; lex: 177; csh: 45
file content (45 lines) | stat: -rw-r--r-- 1,367 bytes parent folder | download | duplicates (9)
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