1
# Makefile for callback
3
#### Start of system configuration section. ####
8
# Directories used by "make":
11
# Directories used by "make install":
13
local_prefix = /usr/local
14
exec_prefix = @exec_prefix@
16
includedir = @includedir@
19
datarootdir = @datarootdir@
20
htmldir = $(datadir)/html
22
# Programs used by "make":
26
INCLUDES = -I. -I$(srcdir)
28
LIBTOOL_LINK = $(LIBTOOL) --mode=link
29
LIBTOOL_INSTALL = $(LIBTOOL) --mode=install
30
LIBTOOL_UNINSTALL = $(LIBTOOL) --mode=uninstall
38
# Programs used by "make install":
40
INSTALL_PROGRAM = @INSTALL_PROGRAM@
41
INSTALL_DATA = @INSTALL_DATA@
43
#### End of system configuration section. ####
47
# Needed by $(LIBTOOL).
50
all : all-subdirs callback.h vacall_r.h trampoline_r.h libcallback.la $(srcdir)/callback.3 $(srcdir)/callback.html
53
cd @subdir@ && $(MAKE) all
56
$(LN_S) $(srcdir)/callback.h.in callback.h
59
$(LN_S) vacall_r/vacall_r.h vacall_r.h
62
$(LN_S) trampoline_r/trampoline_r.h trampoline_r.h
64
libcallback.la : vacall_r/libvacall.la trampoline_r/libtrampoline.la
65
$(LIBTOOL_LINK) $(CC) -o libcallback.la -rpath $(libdir) vacall_r/vacall.lo vacall_r/misc.lo vacall_r/structcpy.lo trampoline_r/*.lo
67
# Installs the library and include files only. Typically called with only
68
# $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
69
install-lib : all force
70
cd @subdir@ && $(MAKE) install-lib libdir='$(libdir)' includedir='$(includedir)'
72
$(LIBTOOL_INSTALL) $(INSTALL_DATA) libcallback.la $(libdir)/libcallback.la
73
mkdir -p $(includedir)
74
$(INSTALL_DATA) callback.h $(includedir)/callback.h
77
cd @subdir@ && $(MAKE) install
78
mkdir -p $(DESTDIR)$(prefix)
79
mkdir -p $(DESTDIR)$(exec_prefix)
80
mkdir -p $(DESTDIR)$(libdir)
81
$(LIBTOOL_INSTALL) $(INSTALL_DATA) libcallback.la $(DESTDIR)$(libdir)/libcallback.la
82
mkdir -p $(DESTDIR)$(includedir)
83
$(INSTALL_DATA) callback.h $(DESTDIR)$(includedir)/callback.h
84
mkdir -p $(DESTDIR)$(mandir)
85
mkdir -p $(DESTDIR)$(mandir)/man3
86
$(INSTALL_DATA) $(srcdir)/callback.3 $(DESTDIR)$(mandir)/man3/callback.3
87
mkdir -p $(DESTDIR)$(datadir)
88
mkdir -p $(DESTDIR)$(htmldir)
89
$(INSTALL_DATA) $(srcdir)/callback.html $(DESTDIR)$(htmldir)/callback.html
92
cd @subdir@ && $(MAKE) installdirs
93
mkdir -p $(DESTDIR)$(prefix)
94
mkdir -p $(DESTDIR)$(exec_prefix)
95
mkdir -p $(DESTDIR)$(libdir)
96
mkdir -p $(DESTDIR)$(includedir)
97
mkdir -p $(DESTDIR)$(mandir)
98
mkdir -p $(DESTDIR)$(mandir)/man3
99
mkdir -p $(DESTDIR)$(datadir)
100
mkdir -p $(DESTDIR)$(htmldir)
103
cd @subdir@ && $(MAKE) uninstall
104
$(LIBTOOL_UNINSTALL) $(RM) $(DESTDIR)$(libdir)/libcallback.la
105
$(RM) $(DESTDIR)$(includedir)/callback.h
106
$(RM) $(DESTDIR)$(mandir)/man3/callback.3
107
$(RM) $(DESTDIR)$(htmldir)/callback.html
109
minitests.o : $(srcdir)/minitests.c $(srcdir)/tests.c callback.h vacall_r.h trampoline_r.h
110
$(CC) $(CFLAGS) $(INCLUDES) -c $(srcdir)/minitests.c
112
minitests.s : $(srcdir)/minitests.c $(srcdir)/tests.c callback.h vacall_r.h trampoline_r.h
113
$(CC) $(CFLAGS) $(INCLUDES) -S $(srcdir)/minitests.c
115
minitests : minitests.o libcallback.la
116
$(LIBTOOL_LINK) $(CC) $(CFLAGS) @GCC_X_NONE@ minitests.o libcallback.la -o minitests
118
check-subdirs : force
119
cd @subdir@ && $(MAKE) check
121
check : all check-subdirs minitests
122
./minitests > minitests.out
123
LC_ALL=C uniq -u < minitests.out > minitests.output.$(HOST)
124
test '!' -s minitests.output.$(HOST)
126
tests.o : $(srcdir)/tests.c callback.h vacall_r.h trampoline_r.h
127
$(CC) $(CFLAGS) $(INCLUDES) -c $(srcdir)/tests.c
129
tests.s : $(srcdir)/tests.c callback.h vacall_r.h trampoline_r.h
130
$(CC) $(CFLAGS) $(INCLUDES) -S $(srcdir)/tests.c
132
tests : tests.o libcallback.la
133
$(LIBTOOL_LINK) $(CC) $(CFLAGS) @GCC_X_NONE@ tests.o libcallback.la -o tests
135
extracheck-subdirs : force
136
cd @subdir@ && $(MAKE) extracheck
138
extracheck : all extracheck-subdirs tests
140
LC_ALL=C uniq -u < tests.out > tests.output.$(HOST)
141
test '!' -s tests.output.$(HOST)
144
cd @subdir@ && $(MAKE) mostlyclean
146
clean-subdirs : force
147
cd @subdir@ && $(MAKE) clean
149
clean : clean-subdirs
151
$(RM) callback.h vacall_r.h trampoline_r.h libcallback.*
153
$(RM) minitests.o minitests.s minitests minitests.out
154
$(RM) tests.o tests.s tests tests.out
156
distclean-subdirs : force
157
cd @subdir@ && if test -f Makefile; then $(MAKE) distclean; fi
159
distclean : clean distclean-subdirs
160
$(RM) config.status config.log config.cache Makefile libtool minitests.output.* tests.output.*
162
maintainer-clean-subdirs : force
163
cd @subdir@ && if test -f Makefile; then $(MAKE) maintainer-clean; fi
165
maintainer-clean : distclean maintainer-clean-subdirs
166
$(RM) config.status config.log config.cache Makefile