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

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

AUTOMAKE_OPTIONS = 1.7 foreign


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 \
  apps \
  tests
##  netsvcs \
##  man

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

## Additional flags to pass to `aclocal' when invoked by the generated
## Makefile.  In particular, add ACE's `m4' directory to the macro
## search path.
ACLOCAL = @ACLOCAL@
ACLOCAL_AMFLAGS = -I m4

## If any of these files are modified, `configure' will be
## regenerated.
CONFIGURE_DEPENDENCIES = \
  m4/ace.m4 \
  m4/acinclude.m4 \
  m4/compiler.m4 \
  m4/config_h.m4 \
  m4/features.m4 \
  m4/platform.m4 \
  m4/subsets.m4 \
  m4/threads.m4

## For some reason, automake doesn't include acconfig.h in the distribution
EXTRA_DIST = \
  ACE-INSTALL.html \
  ACE-install.sh \
  FAQ \
  PROBLEM-REPORT-FORM \
  VERSION \
  ace-config.in \
  ace-config.1.in \
  aceConf.sh.in

DISTCLEANFILES = ace-config aceConf.sh ace-config.1 

## 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

## Directories to include in the distribution but which I am too lazy to
## create Makefile.am files for.  A Makefile.am for these directories isn't
## needed anyway.
ACE_EXTRA_DIST = ChangeLogs bin docs m4

## Automake recognized target.  Appends these rules to the "all"
## target.
all-local:
	test -d bin || ($(LN_S) $(top_srcdir)/bin bin && touch ace-bin-stamp)

## Clean up some additional files/directories possibly created during
## the configure script tests.
clean-local:
	-rm -f *.bak *.rpo *.sym lib*.*_pure_* Makefile.old core
	-rm -rf ptrepository Templates.DB gcctemp.c gcctemp so_locations

## 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
	(cd $(top_srcdir); tar cf - $(ACE_EXTRA_DIST)) | (cd $(distdir); \
          tar xfBp -)
	list=`find $(distdir) -type d -name CVS -print`; for p in $$list; do \
          rm -rf $$p; \
        done

## Clean up files and directories created by this Makefile.
distclean-local:
	-test -f ace-bin-stamp && rm bin ace-bin-stamp