Mercurial > audlegacy-plugins
annotate mk/objective.mk @ 472:69b8baad0b24 trunk
[svn] - stuff from vfs_get_metadata is already strdup'd
author | nenolod |
---|---|
date | Sun, 21 Jan 2007 02:16:17 -0800 |
parents | 22ad7fc47d14 |
children | d3258c16f849 |
rev | line source |
---|---|
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
1 default: all |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
2 all: build |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
3 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
4 .SUFFIXES: .cxx .cc |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
5 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
6 install: build |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
7 $(MAKE) install-prehook |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
8 @for i in $(BINDIR) $(LIBDIR) $(INCLUDEDIR); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
9 if [ ! -d $(DESTDIR)/$$i ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
10 $(INSTALL) -d -m 755 $(DESTDIR)/$$i; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
11 fi; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
12 done; |
287
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
13 @if [ "x$(OVERLAYS)" != "x" ]; then \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
14 for i in `find $(OVERLAYS) -type d -maxdepth 1 -mindepth 1`; do \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
15 if [ $(VERBOSITY) -gt 0 ]; then \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
16 echo "[installing overlay: $$i]"; \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
17 fi; \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
18 (pushd $$i > /dev/null; OVERLAYS="" $(MAKE) install || exit; cd ..); \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
19 done; \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
20 fi |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
21 @if [ "x$(SUBDIRS)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
22 for i in $(SUBDIRS); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
23 if [ $(VERBOSITY) -gt 0 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
24 echo "[installing subobjective: $$i]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
25 fi; \ |
287
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
26 (cd $$i; OVERLAYS="" $(MAKE) install || exit; cd ..); \ |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
27 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
28 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
29 @if [ "x$(OBJECTIVE_DIRECTORIES)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
30 for i in $(OBJECTIVE_DIRECTORIES); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
31 printf "%10s %-20s\n" MKDIR $$i; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
32 $(INSTALL) -d -m 755 $(DESTDIR)/$$i; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
33 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
34 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
35 @if [ "x$(HEADERS)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
36 for i in $(HEADERS); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
37 printf "%10s %-20s\n" INSTALL $$i; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
38 $(INSTALL_DATA) $(INSTALL_OVERRIDE) $$i $(DESTDIR)/$(INCLUDEDIR)/$$i; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
39 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
40 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
41 @if [ "x$(OBJECTIVE_LIBS)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
42 for i in $(OBJECTIVE_LIBS); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
43 printf "%10s %-20s\n" INSTALL $$i; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
44 $(INSTALL) $(INSTALL_OVERRIDE) $$i $(DESTDIR)/$(LIBDIR)/$$i; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
45 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
46 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
47 @if [ "x$(OBJECTIVE_BINS)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
48 for i in $(OBJECTIVE_BINS); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
49 printf "%10s %-20s\n" INSTALL $$i; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
50 $(INSTALL) $(INSTALL_OVERRIDE) $$i $(DESTDIR)/$(BINDIR)/$$i; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
51 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
52 fi; |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
53 @if [ "x$(OBJECTIVE_DATA)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
54 for i in $(OBJECTIVE_DATA); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
55 source=`echo $$i | cut -d ":" -f1`; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
56 destination=`echo $$i | cut -d ":" -f2`; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
57 if [ ! -d $(DESTDIR)/$$destination ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
58 $(INSTALL) -d -m 755 $(DESTDIR)/$$destination; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
59 fi; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
60 printf "%10s %-20s\n" INSTALL $$source; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
61 $(INSTALL_DATA) $(INSTALL_OVERRIDE) $$source $(DESTDIR)/$$destination; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
62 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
63 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
64 $(MAKE) install-posthook |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
65 @if [ $(VERBOSITY) -gt 0 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
66 echo "[all objectives installed]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
67 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
68 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
69 clean: |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
70 $(MAKE) clean-prehook |
287
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
71 @if [ "x$(OVERLAYS)" != "x" ]; then \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
72 for i in `find $(OVERLAYS) -type d -maxdepth 1 -mindepth 1`; do \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
73 if [ $(VERBOSITY) -gt 0 ]; then \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
74 echo "[cleaning overlay: $$i]"; \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
75 fi; \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
76 (pushd $$i > /dev/null; OVERLAYS="" $(MAKE) clean || exit; popd); \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
77 done; \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
78 fi |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
79 @if [ "x$(SUBDIRS)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
80 for i in $(SUBDIRS); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
81 if [ $(VERBOSITY) -gt 0 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
82 echo "[cleaning subobjective: $$i]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
83 fi; \ |
287
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
84 (cd $$i; OVERLAYS="" $(MAKE) clean || exit; cd ..); \ |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
85 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
86 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
87 $(MAKE) clean-posthook |
407 | 88 rm -f *.o *.lo *.so *.a *.sl .depend-done |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
89 @if [ "x$(OBJECTIVE_BINS)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
90 for i in $(OBJECTIVE_BINS); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
91 rm -f $$i; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
92 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
93 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
94 @if [ "x$(OBJECTIVE_LIBS)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
95 for i in $(OBJECTIVE_LIBS); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
96 rm -f $$i; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
97 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
98 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
99 @if [ "x$(OBJECTIVE_LIBS_NOINST)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
100 for i in $(OBJECTIVE_LIBS_NOINST); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
101 rm -f $$i; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
102 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
103 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
104 @if [ $(VERBOSITY) -gt 0 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
105 echo "[all objectives cleaned]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
106 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
107 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
108 distclean: clean |
287
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
109 @if [ "x$(OVERLAYS)" != "x" ]; then \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
110 for i in `find $(OVERLAYS) -type d -maxdepth 1 -mindepth 1`; do \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
111 if [ $(VERBOSITY) -gt 0 ]; then \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
112 echo "[distcleaning overlay: $$i]"; \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
113 fi; \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
114 (pushd $$i > /dev/null; OVERLAYS="" $(MAKE) distclean || exit; popd); \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
115 done; \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
116 fi |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
117 @if [ "x$(SUBDIRS)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
118 for i in $(SUBDIRS); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
119 if [ $(VERBOSITY) -gt 0 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
120 echo "[distcleaning subobjective: $$i]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
121 fi; \ |
287
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
122 (cd $$i; OVERLAYS="" $(MAKE) distclean || exit; cd ..); \ |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
123 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
124 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
125 @if [ -f Makefile.in ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
126 rm -f Makefile; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
127 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
128 @if [ -f mk/rules.mk ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
129 rm -f mk/rules.mk; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
130 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
131 |
407 | 132 build: depend |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
133 $(MAKE) build-prehook |
287
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
134 @if [ "x$(OVERLAYS)" != "x" ]; then \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
135 for i in `find $(OVERLAYS) -type d -maxdepth 1 -mindepth 1`; do \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
136 if [ $(VERBOSITY) -gt 0 ]; then \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
137 echo "[building overlay: $$i]"; \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
138 fi; \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
139 (pushd $$i > /dev/null; OVERLAYS="" $(MAKE) || exit; popd); \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
140 if [ $(VERBOSITY) -gt 0 ]; then \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
141 echo "[finished overlay: $$i]"; \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
142 fi; \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
143 done; \ |
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
144 fi |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
145 @if [ "x$(SUBDIRS)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
146 for i in $(SUBDIRS); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
147 if [ $(VERBOSITY) -gt 0 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
148 echo "[building subobjective: $$i]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
149 fi; \ |
287
eb768b801ab1
[svn] - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands.
nenolod
parents:
0
diff
changeset
|
150 (cd $$i; OVERLAYS="" $(MAKE) || exit; cd ..); \ |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
151 if [ $(VERBOSITY) -gt 0 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
152 echo "[finished subobjective: $$i]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
153 fi; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
154 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
155 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
156 @if [ "x$(OBJECTIVE_LIBS)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
157 for i in $(OBJECTIVE_LIBS); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
158 if [ $(VERBOSITY) -gt 0 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
159 echo "[building library objective: $$i]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
160 fi; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
161 $(MAKE) $$i || exit; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
162 if [ $(VERBOSITY) -gt 0 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
163 echo "[finished library objective: $$i]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
164 fi; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
165 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
166 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
167 @if [ "x$(OBJECTIVE_LIBS_NOINST)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
168 for i in $(OBJECTIVE_LIBS_NOINST); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
169 if [ $(VERBOSITY) -gt 0 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
170 echo "[building library dependency: $$i]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
171 fi; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
172 $(MAKE) $$i || exit; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
173 if [ $(VERBOSITY) -gt 0 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
174 echo "[finished library dependency: $$i]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
175 fi; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
176 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
177 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
178 @if test "x$(OBJECTIVE_BINS)" != "x"; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
179 for i in $(OBJECTIVE_BINS); do \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
180 if [ $(VERBOSITY) -gt 0 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
181 echo "[building binary objective: $$i]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
182 fi; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
183 $(MAKE) $$i || exit; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
184 if [ $(VERBOSITY) -gt 0 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
185 echo "[finished binary objective: $$i]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
186 fi; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
187 done; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
188 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
189 $(MAKE) build-posthook |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
190 @if [ $(VERBOSITY) -gt 0 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
191 echo "[all objectives built]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
192 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
193 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
194 .c.o: |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
195 @if [ $(SHOW_CFLAGS) -eq 1 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
196 printf "%10s %-20s (%s)\n" CC $< "${CFLAGS}"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
197 else \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
198 printf "%10s %-20s\n" CC $<; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
199 fi; |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
200 $(CC) $(CFLAGS) -c $< -o $@ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
201 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
202 .cc.o .cxx.o: |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
203 @if [ $(SHOW_CFLAGS) -eq 1 ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
204 printf "%10s %-20s (%s)\n" CXX $< "${CXXFLAGS}"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
205 else \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
206 printf "%10s %-20s\n" CXX $<; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
207 fi; |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
208 $(CXX) $(CXXFLAGS) -c $< -o $@ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
209 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
210 $(OBJECTIVE_LIBS): $(OBJECTS) |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
211 if [ "x$(OBJECTS)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
212 $(MAKE) $(OBJECTS) || exit; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
213 printf "%10s %-20s\n" LINK $@; \ |
407 | 214 (if [ "x$(SHARED_SUFFIX)" = "x.so" ]; then \ |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
215 (if [ "x$(OBJECTIVE_SONAME_SUFFIX)" != "x" ]; then \ |
407 | 216 $(CC) $(PICLDFLAGS) -o $@ -Wl,-h$@.$(OBJECTIVE_SONAME_SUFFIX) $(OBJECTS) $(LDFLAGS) $(LIBADD); \ |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
217 else \ |
407 | 218 $(CC) $(PICLDFLAGS) -o $@ -Wl,-h$@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \ |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
219 fi;) \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
220 else \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
221 $(CC) $(PICLDFLAGS) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
222 fi;) \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
223 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
224 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
225 %.a: $(OBJECTS) |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
226 if [ "x$(OBJECTS)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
227 $(MAKE) $(OBJECTS) || exit; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
228 printf "%10s %-20s\n" LINK $@; \ |
376 | 229 $(AR) cr $@ $(OBJECTS); \ |
0
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
230 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
231 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
232 $(OBJECTIVE_BINS): $(OBJECTS) |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
233 if [ "x$(OBJECTS)" != "x" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
234 $(MAKE) $(OBJECTS) || exit; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
235 printf "%10s %-20s\n" LINK $@; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
236 $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
237 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
238 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
239 clean-prehook: |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
240 clean-posthook: |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
241 build-prehook: |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
242 build-posthook: |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
243 install-prehook: |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
244 install-posthook: |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
245 |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
246 mk/rules.mk: |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
247 @if [ -f "configure" ]; then \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
248 echo "[building rules.mk for posix target, run configure manually if you do not want this]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
249 sh configure $(CONFIG_OPTS); \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
250 echo "[complete]"; \ |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
251 fi |
13389e613d67
[svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff
changeset
|
252 |
407 | 253 .PHONY: .depend depend clean distclean |
254 .depend: | |
255 | |
256 # default depend rule. if something else is needed -- override depend target | |
257 depend: | |
258 @if [ "x$(SUBDIRS)" != "x" ]; then \ | |
259 for i in $(SUBDIRS); do \ | |
260 if [ $(VERBOSITY) -gt 0 ]; then \ | |
261 echo "[building depend file for subobjective: $$i]"; \ | |
262 fi; \ | |
417 | 263 cd $$i; touch .depend; $(MAKE) depend || exit; cd ..; \ |
407 | 264 if [ $(VERBOSITY) -gt 0 ]; then \ |
265 echo "[finished subobjective: $$i]"; \ | |
266 fi; \ | |
267 done; \ | |
268 fi | |
269 if [ ! -f .depend-done ]; then \ | |
270 for i in ${SOURCES}; do \ | |
271 echo "[generating dependencies for objective: $$i]"; \ | |
272 ${CC} -MM ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $$i >> .depend; \ | |
273 done; \ | |
274 touch .depend-done; \ | |
275 fi; | |
276 | |
277 # compatibility with automake follows | |
278 am--refresh: | |
279 | |
280 include .depend |