summaryrefslogtreecommitdiff
path: root/bin/MakeProjectCreator/templates/automake.mpd
blob: c020bed7d826a9f6108678c88ca2b838dddc88d5 (plain)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
##
## Automake Template
##

## The number in AUTOMAKE_OPTIONS is the minimum required version automake
## needed to process this file.
AUTOMAKE_OPTIONS = 1.4

<%if(idl_files)%> 
<%if(idlflags)%>
TAO_IDLFLAGS = <%idlflags%>
<%endif%>
<%endif%>
<%if(includes)%>
INCLUDES =<%foreach(includes)%> -I<%include%><%endfor%>
<%endif%>

<%if(exename)%>
bin_PROGRAMS = <%exename%>

<%exename%>_SOURCES = \
<%foreach(source_files)%>
  <%source_file%><%fornotlast(" \\")%>
<%endfor%>
<%if(header_files)%>

noinst_HEADERS = \
<%foreach(header_files)%>
  <%header_file%><%fornotlast(" \\")%>
<%endfor%>
<%endif%>
<%else%>
<%if(grouped_source_files)%>
<%foreach(grouped_source_files)%>
lib<%sharedname%>_<%uc(grouped_source_file)%>_la_SOURCES = \
<%foreach(grouped_source_file->files)%>
  <%grouped_source_file->file%><%fornotlast(" \\")%>
<%endfor%>

<%endfor%>
<%foreach(grouped_source_files)%>
if BUILD_<%uc(grouped_source_file)%>_FILES
LIB<%sharedname%>_<%uc(grouped_source_file)%> = lib<%sharedname%>_<%grouped_source_file%>.la
else
LIB<%sharedname%>_<%uc(grouped_source_file)%> =
endif

<%endfor%>

lib_LTLIBRARIES = \
  $(LIB<%sharedname%>) \
<%foreach(grouped_source_files)%>
  $(LIB<%sharedname%>_<%uc(grouped_source_file)%>)<%fornotlast(" \\")%>
<%endfor%>

lib<%sharedname%>_la_SOURCES = \
<%foreach(grouped_source_files)%>
  $(lib<%sharedname%>_<%uc(grouped_source_file)%>_la_SOURCES)<%fornotlast(" \\")%>
<%endfor%>

<%foreach(grouped_source_files)%>
lib<%sharedname%>_<%uc(grouped_source_file)%>_la_SOURCES = \
<%foreach(grouped_source_file->files)%>
  <%grouped_source_file->file%><%fornotlast(" \\")%>
<%endfor%>

<%endfor%>
lib<%sharedname%>_la_LDFLAGS = $(X_LIBS) \
  -version-info <%if(tao)%>@TAO_CURRENT@:@TAO_REVISION@:@TAO_AGE@<%else%>@ACE_CURRENT@:@ACE_REVISION@:@ACE_AGE@<%endif%>

lib<%sharedname%>_la_LIBADD = $(X_PRE_LIBS) $(<%sharedname%>_XLIBS) $(X_EXTRA_LIBS)
<%else%>
lib_LTLIBRARIES = lib<%sharedname%>.la

lib<%sharedname%>_la_SOURCES = \
<%foreach(source_files)%>
  <%source_file%><%fornotlast(" \\")%>
<%endfor%>
<%endif%>

<%if(template_files)%>
TEMPLATE_FILES = \
<%foreach(template_files)%>
  <%template_file%><%fornotlast(" \\")%>
<%endfor%>

<%endif%>
<%if(header_files)%>
HEADER_FILES = \
<%foreach(header_files)%>
  <%header_file%><%fornotlast(" \\")%>
<%endfor%>

<%endif%>
<%if(inline_files)%>
INLINE_FILES = \
<%foreach(inline_files)%>
  <%inline_file%><%fornotlast(" \\")%>
<%endfor%>

<%endif%>

pkginclude_HEADERS = \
<%if(template_files)%>
  $(INLINE_FILES) \
<%endif%>
<%if(inline_files)%>
  $(INLINE_FILES) \
<%endif%>
<%if(header_files)%>
  $(HEADER_FILES)
<%endif%>
<%endif%>
<%vpath%>

## Clean up template repositories, etc.
clean-local:
	-rm -f *.bak *.rpo *.sym lib*.*_pure_* Makefile.old core
	-rm -f gcctemp.c gcctemp so_locations
	-rm -rf ptrepository SunWS_cache Templates.DB