2062
|
1 # Makefile for octave's dlfcn directory |
|
2 # |
7016
|
3 # This file is part of Octave. |
|
4 # |
|
5 # Octave is free software; you can redistribute it and/or modify it |
|
6 # under the terms of the GNU General Public License as published by the |
|
7 # Free Software Foundation; either version 3 of the License, or (at |
|
8 # your option) any later version. |
|
9 # |
|
10 # Octave is distributed in the hope that it will be useful, but WITHOUT |
|
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 # for more details. |
|
14 # |
|
15 # You should have received a copy of the GNU General Public License |
|
16 # along with Octave; see the file COPYING. If not, see |
|
17 # <http://www.gnu.org/licenses/>. |
2062
|
18 |
|
19 TOPDIR = .. |
|
20 |
|
21 srcdir = @srcdir@ |
|
22 top_srcdir = @top_srcdir@ |
|
23 VPATH = @srcdir@ |
|
24 |
|
25 include $(TOPDIR)/Makeconf |
|
26 |
|
27 INSTALL = @INSTALL@ |
|
28 INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|
29 INSTALL_DATA = @INSTALL_DATA@ |
|
30 |
|
31 INCLUDES := dlfcn.h |
|
32 |
|
33 SOURCES := dlfcn.c |
|
34 |
|
35 OBJECTS := $(SOURCES:.c=.o) |
|
36 |
|
37 MAKEDEPS := $(SOURCES:.c=.d) |
|
38 |
6798
|
39 DISTFILES := $(addprefix $(srcdir)/, $(SOURCES) $(INCLUDES) README dl.exp Makefile.in ftp-site) |
2062
|
40 |
2662
|
41 all: libdlfcn.a |
2062
|
42 .PHONY: all |
|
43 |
2662
|
44 libdlfcn.a: $(OBJECTS) |
|
45 $(AR) $(ARFLAGS) $@ $(OBJECTS) |
|
46 $(RANLIB) $@ |
2062
|
47 |
|
48 check: all |
|
49 .PHONY: check |
|
50 |
2811
|
51 install install-strip: all |
|
52 .PHONY: install install-strip |
2062
|
53 |
|
54 uninstall: |
|
55 .PHONY: uninstall |
|
56 |
|
57 tags: $(SOURCES) |
|
58 ctags $(SOURCES) |
|
59 |
|
60 TAGS: $(SOURCES) |
|
61 etags $(SOURCES) |
|
62 |
|
63 clean: |
|
64 rm -f *.a *.o *.d |
|
65 .PHONY: clean |
|
66 |
|
67 mostlyclean: |
|
68 rm -f *.o |
|
69 .PHONY: mostlyclean |
|
70 |
|
71 distclean: clean |
|
72 rm -f Makefile |
|
73 .PHONY: distclean |
|
74 |
|
75 maintainer-clean: distclean |
|
76 rm -f tags TAGS |
|
77 .PHONY: maintainer-clean |
|
78 |
|
79 dist: |
6467
|
80 ln $(DISTFILES) ../`cat ../.fname`/dlfcn |
2062
|
81 .PHONY: dist |
|
82 |
|
83 conf-dist: |
6797
|
84 ln $(addprefix $(srcdir)/, octave.cc Makefile.in) ../`cat ../.fname`/dlfcn |
2062
|
85 .PHONY: conf-dist |
|
86 |
|
87 ifndef omit_deps |
|
88 -include $(MAKEDEPS) |
|
89 endif |