source: lib/GlobalMakefile@ 8860a6

Last change on this file since 8860a6 was 5d30c1, checked in by Frederik Heber <heber@…>, 13 years ago

Initial commit based on 3.0.0alpha (here claimed as 2.4).

  • simply added all files.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1
2# this is usually overridden
3TARGET_TO_MAKE = $(shell basename `pwd`)
4
5ifndef SRCDIR
6 SRCDIR = .
7endif
8
9# this vpath works with listlibs to find the libraries
10vpath %.a $(TOPDIR)/lib
11vpath %.so $(TOPDIR)/lib
12vpath %.la $(TOPDIR)/lib
13
14# SRCTOPDIR is the top of the source directory
15SRCTOPDIR = $(shell $(PERL) $(SRCDIR)/$(TOPDIR)/bin/rmdotdot $(SRCDIR)/$(TOPDIR))
16
17# LIBDIR is the full path to where the libraries are
18LIBDIR = $(shell $(PERL) $(SRCTOPDIR)/bin/rmdotdot `pwd`/$(TOPDIR)/lib)
19
20# SRCLIBDIR is the full path to the lib subdirectory of the source dir
21SRCLIBDIR = $(SRCTOPDIR)/lib/
22
23# THISDIR is the name of the current directory relative to TOPDIR/src/lib/
24THISDIR = $(subst $(shell cd $(TOPDIR); pwd)/src/lib/,,$(shell pwd))
25
26CLASS2TEXFLAGS =
27CLASS2TEX = $(PERL) $(SRCTOPDIR)/bin/class2tex
28
29# installroot can be given on the command line to force
30# the install targets install to a different directory.
31# This is useful for building RPM's for example. This can
32# only be given on the command line--not in the environment
33ifneq ($(origin installroot),'command line')
34 installroot=
35endif
36
37-include $(TOPDIR)/lib/LocalMakefile
38
39ifneq ($(LOCALMAKEFILE_OPTIONAL),yes)
40
41ifneq ($(LOCALMAKEFILE_FOUND),yes)
42$(error LocalMakefile not found. First run configure in the top-level directory you want object code to be placed and then run make there)
43endif
44
45endif
Note: See TracBrowser for help on using the repository browser.