File: makefile

package info (click to toggle)
libaws 2.5~124785-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,488 kB
  • ctags: 419
  • sloc: ada: 61,158; makefile: 1,262; ansic: 219; xml: 196; java: 112; python: 66; sed: 43; sh: 34
file content (76 lines) | stat: -rw-r--r-- 3,003 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
############################################################################
#                              Ada Web Server                              #
#                                                                          #
#                         Copyright (C) 2003-2007                          #
#                                 AdaCore                                  #
#                                                                          #
#  This library is free software; you can redistribute it and/or modify    #
#  it under the terms of the GNU General Public License as published by    #
#  the Free Software Foundation; either version 2 of the License, or (at   #
#  your option) any later version.                                         #
#                                                                          #
#  This library is distributed in the hope that it will be useful, but     #
#  WITHOUT ANY WARRANTY; without even the implied warranty of              #
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU       #
#  General Public License for more details.                                #
#                                                                          #
#  You should have received a copy of the GNU General Public License       #
#  along with this library; if not, write to the Free Software Foundation, #
#  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.          #
#                                                                          #
############################################################################

.SILENT:

ifeq (${OS}, Windows_NT)
EXEEXT = .exe
else
EXEEXT =
endif

SDIR = ../.build/setup

DUMMY_OPTS = -XPRJ_BUILD=Debug -XLIBRARY_TYPE=static

setup_dummy_dir:
# Next line is needed because a current limitation on Project Files
# where the Object_Dir and Library_Dir must exists even if not
# actually used.
	-$(MKDIR) -p ../.build/debug/static/obj ../.build/debug/static/lib

setup_dir: setup_dummy_dir
	-$(MKDIR) -p $(SDIR)/obj

setup: setup_dir ../src/aws-translator-conversion.adb ../src/aws-os_lib.ads

../src/aws-translator-conversion.adb: makefile
	echo Setup conversion support
	$(GNAT_FOR_HOST) make -Psetup $(DUMMY_OPTS)
	$(SDIR)/test_uconv
	$(MV) aws-translator-conversion.adb ../src

../src/aws-os_lib.ads: makefile src/check_config.c
	echo Setup OS specific definitions
	$(GCC_FOR_HOST) -o $(SDIR)/check_config src/check_config.c
	$(SDIR)/check_config ../src/aws-os_lib.ads

build:

install:
	$(CP) aws-net-std__* $(I_INC)
	$(CP) aws-net-ssl__* $(I_INC)
	$(CP) aws-net-ssl-certificate__* $(I_INC)
	$(CP) ssl-thin__* $(I_INC)
	$(CP) templates_parser-* $(I_INC)
	$(CP) projects/aws_components.gpr $(I_AGP)
	$(CP) projects/aws.gpr $(I_GPR)
	$(CP) projects/aws_ssl.gpr $(I_GPR)
	$(CP) projects/*_lib.gpr $(I_AGP)
	$(CP) projects/aws_shared.gpr $(I_AGP)
	$(CP) projects/aws_libz.gpr $(I_AGP)
	$(CP) projects/aws_ssl_support.gpr $(I_AGP)

check:

clean:
	-$(RM) -f *.~*.*~