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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 # $Id$
2
3 # Set default values for the local variables.
4
5 # John Gerschwitz 28-11-2003
6 #
7 # Although unlikely to be a problem at this point check ESYS_ROOT has been set.
8 ifeq ($(strip $(ESYS_ROOT)),)
9 ERRORTARGETS += ESYS_ROOT_ERROR
10 ERRORBUILDTARGET := error
11 endif
12
13 NULL :=
14 SPACE := ${NULL} ${NULL}
15 SHELL := /bin/sh
16
17 # Make settings
18 MAKE_DIR := $(ESYS_ROOT)/make
19 HOSTNAME := ${shell hostname | sed -e 's/\..*//'}
20
21
22 # Set defaults for local variables if not already set
23 ifeq ($(strip $(L_DIR)),)
24 L_DIR := ${shell pwd}
25 endif
26
27 ifeq ($(strip $(L_SRC_DIR)),)
28 L_SRC_DIR := ./src
29 endif
30
31 ifeq ($(strip $(L_MOD_DIR)),)
32 L_MOD_DIR := ./mod
33 endif
34
35 ifeq ($(strip $(L_LIB_DIR)),)
36 L_LIB_DIR := ./lib
37 endif
38
39 ifeq ($(strip $(L_INC_DIR)),)
40 L_INC_DIR := ./inc
41 endif
42
43 ifeq ($(strip $(L_OBJ_DIR)),)
44 L_OBJ_DIR := ./obj
45 endif
46
47 ifeq ($(strip $(L_DEP_DIR)),)
48 L_DEP_DIR := ./dep
49 endif
50
51 ifeq ($(strip $(L_EXT_LIB_DIRS)),)
52 L_EXT_LIB_DIRS := ${NULL}
53 endif
54
55 ifeq ($(strip $(L_EXT_LIBS)),)
56 L_EXT_LIBS := ${NULL}
57 endif
58
59 ifeq ($(strip $(L_EXT_INC_DIRS)),)
60 L_EXT_INC_DIRS := ${NULL}
61 endif
62
63 ifeq ($(strip $(L_EXT_INC_DIRS)),)
64 L_EXT_OBJS := ${NULL}
65 endif
66
67 ifeq ($(strip $(PACKAGES)),)
68 PACKAGES := ${NULL}
69 endif
70
71 ifeq ($(strip $(DODEBUG)),)
72 DODEBUG := NO
73 endif
74
75
76 include ${MAKE_DIR}/Makefile.source
77 include ${MAKE_DIR}/hosts/${HOSTNAME}/Makefile.host
78 include ${MAKE_DIR}/Makefile.package
79 include ${MAKE_DIR}/Makefile.implicit
80 include ${MAKE_DIR}/Makefile.phony
81 include ${MAKE_DIR}/Makefile.depend
82
83 .SUFFIXES:
84 .DELETE_ON_ERROR:
85
86 error: $(ERRORTARGETS)
87 @echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
88 echo "Fatal errors detected.";\
89 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";\
90 exit 1
91
92 ESYS_ROOT_ERROR:
93 @echo " - ESYS_ROOT variable hasn't been set."
94
95 NO_SOURCE_FILES_ERROR:
96 @echo "No source files could be found for L_SRC_DIR: $(L_SRC_DIR)
97
98
99
100

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26