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
|
#host system
host := $(shell gcc -dumpmachine)
# Where Asis library should be installed
# Default is into current GNAT directory
INSTALL_DIR = $(dir $(shell which gnatls))..
prefix=$(INSTALL_DIR)
# System commands
exe_ext =
GPRBUILD = gprbuild
GPRINSTALL = gprinstall
GPRCLEAN = gprclean
GPRBUILD_FLAGS = -vl
# External Variable to pass to project file
OPSYS=default_Unix
ifeq "$(findstring mingw32, $(host))" "mingw32"
exe_ext= .exe
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
# GPRBUILD specific flags
GMFLAGS=
|