xref: /trunk/main/odk/examples/cpp/makefile.mk (revision 7871dc3e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..$/..
25PRJNAME=odk
26TARGET=copying
27
28#----------------------------------------------------------------
29.INCLUDE: settings.mk
30.INCLUDE: $(PRJ)$/util$/makefile.pmk
31#----------------------------------------------------------------
32
33#----------------------------------------------------
34# this makefile is only used for copying the example
35# files into the SDK
36#----------------------------------------------------
37
38COUNTER_FILES=\
39	$(DESTDIRCPPEXAMPLES)$/counter$/counter.cxx \
40	$(DESTDIRCPPEXAMPLES)$/counter$/counter.uno.xml \
41	$(DESTDIRCPPEXAMPLES)$/counter$/countermain.cxx \
42	$(DESTDIRCPPEXAMPLES)$/counter$/Makefile \
43	$(DESTDIRCPPEXAMPLES)$/counter$/XCountable.idl
44
45DOUCMENTLOADER_FILES=\
46	$(DESTDIRCPPEXAMPLES)$/DocumentLoader$/DocumentLoader.cxx \
47	$(DESTDIRCPPEXAMPLES)$/DocumentLoader$/Makefile \
48	$(DESTDIRCPPEXAMPLES)$/DocumentLoader$/test.odt
49
50REMOTECLIENT_FILES=\
51	$(DESTDIRCPPEXAMPLES)$/remoteclient$/Makefile \
52	$(DESTDIRCPPEXAMPLES)$/remoteclient$/remoteclient.cxx \
53	$(DESTDIRCPPEXAMPLES)$/remoteclient$/remoteclientsample.uno.xml
54
55DIR_FILE_LIST= \
56	$(COUNTER_FILES) \
57	$(DOUCMENTLOADER_FILES) \
58	$(REMOTECLIENT_FILES)
59
60DIR_DIRECTORY_LIST=$(uniq $(DIR_FILE_LIST:d))
61DIR_CREATE_FLAG=$(MISC)$/ex_cpp_dirs_created.txt
62DIR_FILE_FLAG=$(MISC)$/ex_cpp_files.txt
63
64#--------------------------------------------------
65# TARGETS
66#--------------------------------------------------
67all : \
68	$(DIR_FILE_LIST) \
69	$(DIR_FILE_FLAG)
70
71#--------------------------------------------------
72# use global rules
73#--------------------------------------------------
74.INCLUDE: $(PRJ)$/util$/odk_rules.pmk
75
76
77