/[escript]/trunk/esys2/make/Makefile.default
ViewVC logotype

Contents of /trunk/esys2/make/Makefile.default

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (show annotations)
Tue Oct 26 06:53:54 2004 UTC (18 years, 5 months ago) by jgs
File size: 2406 byte(s)
Initial revision

1 # $Id$
2 # John Gerschwitz 28-11-2003
3 #
4
5 #
6 # Set default values for local Makefile variables.
7 #
8
9 # Check ESYS_ROOT has been set.
10 ifeq ($(strip $(ESYS_ROOT)),)
11 ERRORTARGETS += ESYS_ROOT_ERROR
12 ERRORBUILDTARGET := error
13 endif
14
15 # Some useful definitions
16 NULL :=
17 SPACE := ${NULL} ${NULL}
18 SHELL := /bin/sh
19
20 # Make settings
21 MAKE_DIR := $(ESYS_ROOT)/make
22 HOSTNAME := ${shell hostname | sed -e 's/\..*//'}
23
24 #
25 # Set defaults for local variables if not already set
26 #
27
28 # Current directory
29 ifeq ($(strip $(L_DIR)),)
30 L_DIR := ${shell pwd}
31 endif
32
33 # Source file directory
34 ifeq ($(strip $(L_SRC_DIR)),)
35 L_SRC_DIR := ./src
36 endif
37
38 # ?
39 ifeq ($(strip $(L_MOD_DIR)),)
40 L_MOD_DIR := ./mod
41 endif
42
43 # Library directory
44 ifeq ($(strip $(L_LIB_DIR)),)
45 L_LIB_DIR := ./lib
46 endif
47
48 # Include file directory
49 ifeq ($(strip $(L_INC_DIR)),)
50 L_INC_DIR := ./inc
51 endif
52
53 # Object file directory
54 ifeq ($(strip $(L_OBJ_DIR)),)
55 L_OBJ_DIR := ./obj
56 endif
57
58 # Dependency file directory
59 ifeq ($(strip $(L_DEP_DIR)),)
60 L_DEP_DIR := ./dep
61 endif
62
63 # External library directory
64 ifeq ($(strip $(L_EXT_LIB_DIRS)),)
65 L_EXT_LIB_DIRS := ${NULL}
66 endif
67
68 # External libraries
69 ifeq ($(strip $(L_EXT_LIBS)),)
70 L_EXT_LIBS := ${NULL}
71 endif
72
73 # External include directories
74 ifeq ($(strip $(L_EXT_INC_DIRS)),)
75 L_EXT_INC_DIRS := ${NULL}
76 endif
77
78 # External object files
79 ifeq ($(strip $(L_EXT_OBJS)),)
80 L_EXT_OBJS := ${NULL}
81 endif
82
83 # Packages to link with
84 ifeq ($(strip $(PACKAGES)),)
85 PACKAGES := ${NULL}
86 endif
87
88 # Do debug compilations or not?
89 ifeq ($(strip $(DODEBUG)),)
90 DODEBUG := NO
91 endif
92
93 # Do test compilations or not?
94 ifeq ($(strip $(DOTEST)),)
95 DOTEST := NO
96 endif
97
98 # Include remainder of Makefiles
99 include ${MAKE_DIR}/Makefile.source
100 include ${MAKE_DIR}/hosts/${HOSTNAME}/Makefile.host
101 include ${MAKE_DIR}/Makefile.phony
102 include ${MAKE_DIR}/Makefile.package
103 include ${MAKE_DIR}/Makefile.depend
104 include ${MAKE_DIR}/Makefile.implicit
105
106 # Eliminate default known suffixes
107 .SUFFIXES:
108
109 # Delete all targets for whom make process fails
110 .DELETE_ON_ERROR:
111
112 # Define messages to print on specific error conditions
113 error: $(ERRORTARGETS)
114 @echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
115 echo "Fatal errors detected.";\
116 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";\
117 exit 1
118
119 ESYS_ROOT_ERROR:
120 @echo " - ESYS_ROOT variable hasn't been set."
121
122 NO_SOURCE_FILES_ERROR:
123 @echo "No source files could be found for L_SRC_DIR: $(L_SRC_DIR)
124

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26