summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 1537df5c418db7fca6375866cf0857a2b99bb8be (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
##
## Process this file with automake to produce Makefile.in
##

##
## Options for automake
##
AUTOMAKE_OPTIONS = no-dependencies foreign
 
CXXFLAGS = -s -Wall @X_CFLAGS@

X_X11_LIB = @X_X11_LIB@

## INCLUDES = -I. -I../

DEFS = -DCONFIGFILE=\"$(sysconfdir)/ibtk.conf\"

##
## Binary program that will NOT be install
##
EXTRA_PROGRAMS = main

##
## IBTK library
##
lib_LTLIBRARIES = libibtk.la
libibtk_la_SOURCES = \
	ibox.cpp	\
	ibutton.cpp	\
	idialogs.cpp	\
	igbox.cpp	\
	iintbox.cpp	\
	ilistbox.cpp	\
	irealbox.cpp	\
	isbutton.cpp	\
	islider.cpp	\
	istatbar.cpp	\
	itextbox.cpp	\
	iversion.cpp	\
	iwindow.cpp
libibtk_la_LDFLAGS = -version-info $(IBTK_MAJOR_VERSION):$(IBTK_SUB_VERSION):$(IBTK_MINOR_VERSION)

##
## IBTK header files (must be installed)
##
include_HEADERS =\
	ibox.h		\
	ibutton.h	\
	idialogs.h	\
	idodad.h	\
	igbox.h		\
	iintbox.h	\
	ilistbox.h	\
	irealbox.h	\
	isbutton.h	\
	islider.h	\
	istatbar.h	\
	itextbox.h	\
	iwindow.h	\
	pclaim.h	\
	version.h


##
## Test program (not be installed)
##
main_SOURCES = \
	main.cpp
main_LDADD = libibtk.la $(X_LIBS) $(X_X11_LIB)


##
##
##


##
## Compile the test program
##
test: main	


##
## Install header files (default=/usr/local/include/ibtk)
##
install-includeHEADERS: $(include_HEADERS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(includedir)/ibtk
	@list='$(include_HEADERS)'; for p in $$list; do \
	  if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
	  echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/ibtk/$$p"; \
	  $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/ibtk/$$p; \
	done


##
## Remove them
##
uninstall-includeHEADERS:
	@$(NORMAL_UNINSTALL)
	list='$(include_HEADERS)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(includedir)/ibtk/$$p; \
	done


clean-generic:
	-rm -f main


mostlyclean-generic:
	-rm -f *~ \#* .*~ .\#*


maintainer-clean-generic:
	-@echo "This command is intended for maintainers to use;"
	-@echo "it deletes files that may require special tools to rebuild."
	-rm -f Makefile.in

##
## End of Makefile.am
##
###############################################################################