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