summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: ea1861eb290361255a0e55dcf41fc6116d8f211d (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
121
122
123
124
125
##---------------------------------------------------------------------------
##       $Id$
##
##       Top-level Makefile for the ACE toolkit libraries, tests, and
##       applications
##
##---------------------------------------------------------------------------

##
##  Process this file with automake to create Makefile.in
##

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

bin_SCRIPTS = ace-config

man_MANS = ace-config.1

## Build the library directories first.
## The docs directory is currently handled by the "dist-hook" makefile target.
SUBDIRS = ace \
          netsvcs \
          tests \
          apps \
          man

##SUBDIRS = \
##          docs \
##          apps \
##          examples \
##          performance-tests \
##          bin \
##          ASNMP \
##          os-patches \
##          psosim \
##          rpc++ \
##          WindozeCE \
##          etc \
##          includes

## For some reason, automake doesn't include acconfig.h in the distribution
EXTRA_DIST = \
        ACE-INSTALL.html \
        ACE-categories.html \
        ACE-inheritance.pdf.gz \
        ACE-inheritance.ps.gz \
        ACE-install.sh \
        ACE-lessons.html \
        ACE.DSW \
        BIBLIOGRAPHY \
        BUG-REPORT-FORM \
        CE-status.txt \
        ChangeLog-93 \
        ChangeLog-94 \
        ChangeLog-95 \
        ChangeLog-96a \
        ChangeLog-96b \
        ChangeLog-97a \
        ChangeLog-97b \
        ChangeLog-98a \
        ChangeLog-98b \
        FAQ \
        NEWS.in \
        README.aceconf \
        VERSION \
        acconfig.h \
        ace-config.in \
        ace-config.1.in \
        aceConf.sh.in \
        ACE.ifnames \
        ace-diff-config.in

DISTCLEANFILES = ace-config aceConf.sh ace-config.1 ace-diff-config \
                 ace-diff-config.results ace-diff-config.results.bak

MAINTAINERCLEANFILES = ACE.ifnames

## release:
##         $(MAKE) dist distdir=$(PACKAGE)$(VERSION)
release:
	$(MAKE) dist

## Put `exec' in the name because this should be installed by
## `install-exec', not `install-data'.
confexecdir=$(libdir)
confexec_DATA = aceConf.sh

## We create aceConf.sh here and not from configure because we want
## to get the paths expanded correctly.  Macros like srcdir are given
## the value NONE in configure if the user doesn't specify them (this
## is an autoconf feature, not a bug).
aceConf.sh: aceConf.sh.in Makefile
## Use sed and then mv to avoid problems if the user interrupts.
	sed -e 's,\@ACE_LIBDIR\@,$(ACE_LIBDIR),g' \
            -e 's,\@ACE_INCLUDEDIR\@,$(ACE_INCLUDEDIR),g' \
            -e 's,\@ACE_LIBS\@,$(ACE_LIBS),g' \
            -e 's,\@CXXFLAGS\@,$(CXXFLAGS),g' \
              < $(srcdir)/aceConf.sh.in > aceConf.tmp \
          && mv aceConf.tmp aceConf.sh

ace-config.1: ace-config.1.in Makefile
## Use sed and then mv to avoid problems if the user interrupts.
	sed -e 's,\@libdir\@,$(libdir),g' \
              < $(srcdir)/ace-config.1.in > ace-config.1.tmp \
          && mv ace-config.1.tmp ace-config.1

## The file containing the list of preprocessor conditional macros used by ACE
noinst_DATA = ACE.ifnames

ACE.ifnames: ChangeLog acconfig.h
	ifnames ace/*.{h,i,cpp} | sed -e 's/ .*//g' > ACE.ifnames

## Make sure config.h doesn't get into the distribution
## since it may later intefere with the newly generated
## config.h when doing VPATH builds.
## We don't want it in the distribution, anyway, since
## config.h is platform specific.
dist-hook:
	-rm -f $(distdir)/ace/config.h
	tar cf - ./docs | (cd $(distdir); tar xfBp -)
	list=`find $(distdir) -type d -name CVS -print`; for p in $$list; do \
          rm -rf $$p; \
        done