File: Makefile.stub

package info (click to toggle)
asis 2007-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,832 kB
  • ctags: 34
  • sloc: ada: 93,665; makefile: 225
file content (76 lines) | stat: -rw-r--r-- 1,441 bytes parent folder | download
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#host system
host := $(shell gcc -dumpmachine)

# Where Asis library should be installed
INSTALL_DIR=$(HOME)/local

# Asis specific directories
GNAT_DIR=../gnat
ASIS_DIR=../asis

# GCC backend specific flags
CFLAGS= -O2 -g
CC=gcc

# System commands
CHMOD = chmod
LN = ln -s

CP = cp -p
INSTALL_FILES = cp -p
MKDIR = mkdir -p
exe_ext =
arext = .a
soext = .so
# object extension
objext = .o
RM = rm -f
RMDIR = rm -rf
AR = ar
AR_FLAGS = rc
RANLIB = ranlib
RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
GNATMAKE_FLAGS =

# External Variable to pass to project file
OPSYS=default_Unix

ifeq "$(findstring mingw32, $(host))" "mingw32"
   CP = cp -lf
   INSTALL_FILES = cp -lf
   MKDIR = mkdir -p
   exe_ext= .exe
endif

ifeq "$(findstring openvms, $(host))" "openvms"
   INSTALL_DIR=/gnu
   exe_ext = .exe
   objext = .obj
   arext = .olb
   soext = .exe
   objext = .obj
   AR = lib
   AR_FLAGS = /create
   GNATMAKE_FLAGS = -nognatlib
endif

ifeq "$(findstring powerpc-ibm-aix, $(host))" "powerpc-ibm-aix"
   CFLAGS = -O2 -g -mminimal-toc
   OPSYS=powerpc_aix
endif

ifeq "$(findstring hppa1.1-hp-hpux, $(host))" "hppa1.1-hp-hpux"
   CFLAGS = -O2 -g -mdisable-indexing
   OPSYS=pa_hpux
endif

ifeq "$(findstring i386-elf-lynxos, $(host))" "i386-elf-lynxos"
   MKDIR = mkdir -p -f
endif

#  GNAT specific flags
ADA_FLAGS_FOR_TOOLS= -gnaty -gnatwu -gnatwe
ADA_FLAGS_FOR_ASISLIB= -gnatg -gnatwu -gnatwe

# GNATMAKE specific flags
GMFLAGS=