annotate mk/objective.mk @ 1591:fccf78344cab

Undefine DEBUG, it is probably not needed at the moment; Made mutex debugging compatible with GThreads.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 05 Sep 2007 02:06:45 +0300
parents acd3b3d8d2cb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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; \
541
db5f05be1752 [svn] - portability fixes for solaris
nenolod
parents: 480
diff changeset
18 cd $$i; OVERLAYS="" $(MAKE) install || exit; cd ..; \
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
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; \
541
db5f05be1752 [svn] - portability fixes for solaris
nenolod
parents: 480
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; \
541
db5f05be1752 [svn] - portability fixes for solaris
nenolod
parents: 480
diff changeset
76 cd $$i; OVERLAYS="" $(MAKE) clean || exit; cd ..; \
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
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; \
541
db5f05be1752 [svn] - portability fixes for solaris
nenolod
parents: 480
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
479
d3258c16f849 [svn] - remove .depend on make clean
nenolod
parents: 417
diff changeset
88 rm -f *.o *.lo *.so *.a *.sl .depend-done .depend
480
ed8782827a59 [svn] - touch .depend after blanking it out
nenolod
parents: 479
diff changeset
89 touch .depend
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
90 @if [ "x$(OBJECTIVE_BINS)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
91 for i in $(OBJECTIVE_BINS); do \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
92 rm -f $$i; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
93 done; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
94 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
95 @if [ "x$(OBJECTIVE_LIBS)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
96 for i in $(OBJECTIVE_LIBS); do \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
97 rm -f $$i; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
98 done; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
99 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
100 @if [ "x$(OBJECTIVE_LIBS_NOINST)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
101 for i in $(OBJECTIVE_LIBS_NOINST); do \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
102 rm -f $$i; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
103 done; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
104 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
105 @if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
106 echo "[all objectives cleaned]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
107 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
108
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
109 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
110 @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
111 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
112 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
113 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
114 fi; \
541
db5f05be1752 [svn] - portability fixes for solaris
nenolod
parents: 480
diff changeset
115 cd $$i; OVERLAYS="" $(MAKE) distclean || exit; cd ..; \
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
116 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
117 fi
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
118 @if [ "x$(SUBDIRS)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
119 for i in $(SUBDIRS); do \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
120 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
121 echo "[distcleaning subobjective: $$i]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
122 fi; \
541
db5f05be1752 [svn] - portability fixes for solaris
nenolod
parents: 480
diff changeset
123 cd $$i; OVERLAYS="" $(MAKE) distclean || exit; cd ..; \
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
124 done; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
125 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
126 @if [ -f Makefile.in ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
127 rm -f Makefile; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
128 fi
1505
acd3b3d8d2cb Sync with audacious Mk.
William Pitcock <nenolod@atheme-project.org>
parents: 1158
diff changeset
129 @if [ -f mk/rules.mk.in ]; then \
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
130 rm -f mk/rules.mk; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
131 fi
1505
acd3b3d8d2cb Sync with audacious Mk.
William Pitcock <nenolod@atheme-project.org>
parents: 1158
diff changeset
132 rm -f config.log config.status
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
133
407
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
134 build: depend
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
135 $(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
136 @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
137 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
138 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
139 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
140 fi; \
541
db5f05be1752 [svn] - portability fixes for solaris
nenolod
parents: 480
diff changeset
141 cd $$i; OVERLAYS="" $(MAKE) || exit; cd ..; \
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
142 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
143 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
144 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
145 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
146 fi
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
147 @if [ "x$(SUBDIRS)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
148 for i in $(SUBDIRS); do \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
149 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
150 echo "[building subobjective: $$i]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
151 fi; \
541
db5f05be1752 [svn] - portability fixes for solaris
nenolod
parents: 480
diff changeset
152 cd $$i; OVERLAYS="" $(MAKE) || exit; cd ..; \
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
153 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
154 echo "[finished subobjective: $$i]"; \
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 done; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
157 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
158 @if [ "x$(OBJECTIVE_LIBS)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
159 for i in $(OBJECTIVE_LIBS); do \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
160 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
161 echo "[building library objective: $$i]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
162 fi; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
163 $(MAKE) $$i || exit; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
164 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
165 echo "[finished library objective: $$i]"; \
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 done; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
168 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
169 @if [ "x$(OBJECTIVE_LIBS_NOINST)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
170 for i in $(OBJECTIVE_LIBS_NOINST); do \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
171 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
172 echo "[building library dependency: $$i]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
173 fi; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
174 $(MAKE) $$i || exit; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
175 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
176 echo "[finished library dependency: $$i]"; \
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 done; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
179 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
180 @if test "x$(OBJECTIVE_BINS)" != "x"; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
181 for i in $(OBJECTIVE_BINS); do \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
182 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
183 echo "[building binary objective: $$i]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
184 fi; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
185 $(MAKE) $$i || exit; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
186 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
187 echo "[finished binary objective: $$i]"; \
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 done; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
190 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
191 $(MAKE) build-posthook
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
192 @if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
193 echo "[all objectives built]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
194 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
195
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
196 .c.o:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
197 @if [ $(SHOW_CFLAGS) -eq 1 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
198 printf "%10s %-20s (%s)\n" CC $< "${CFLAGS}"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
199 else \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
200 printf "%10s %-20s\n" CC $<; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
201 fi;
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
202 $(CC) $(CFLAGS) -c $< -o $@
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
203
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
204 .cc.o .cxx.o:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
205 @if [ $(SHOW_CFLAGS) -eq 1 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
206 printf "%10s %-20s (%s)\n" CXX $< "${CXXFLAGS}"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
207 else \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
208 printf "%10s %-20s\n" CXX $<; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
209 fi;
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
210 $(CXX) $(CXXFLAGS) -c $< -o $@
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
211
1505
acd3b3d8d2cb Sync with audacious Mk.
William Pitcock <nenolod@atheme-project.org>
parents: 1158
diff changeset
212 $(OBJECTIVE_LIBS): $(OBJECTS)
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
213 if [ "x$(OBJECTS)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
214 $(MAKE) $(OBJECTS) || exit; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
215 printf "%10s %-20s\n" LINK $@; \
407
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
216 (if [ "x$(SHARED_SUFFIX)" = "x.so" ]; then \
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
217 (if [ "x$(OBJECTIVE_SONAME_SUFFIX)" != "x" ]; then \
407
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
218 $(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
219 else \
407
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
220 $(CC) $(PICLDFLAGS) -o $@ -Wl,-h$@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
221 fi;) \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
222 else \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
223 $(CC) $(PICLDFLAGS) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
224 fi;) \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
225 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
226
894
f19e6748d8eb [svn] maintenance of build system:
yaz
parents: 541
diff changeset
227 $(OBJECTIVE_LIBS_NOINST): $(OBJECTS)
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
228 if [ "x$(OBJECTS)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
229 $(MAKE) $(OBJECTS) || exit; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
230 printf "%10s %-20s\n" LINK $@; \
376
0c8f475e0032 [svn] - ar should pick changes
yaz
parents: 287
diff changeset
231 $(AR) cr $@ $(OBJECTS); \
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
232 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
233
1505
acd3b3d8d2cb Sync with audacious Mk.
William Pitcock <nenolod@atheme-project.org>
parents: 1158
diff changeset
234 $(OBJECTIVE_BINS): $(OBJECTS)
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
235 if [ "x$(OBJECTS)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
236 $(MAKE) $(OBJECTS) || exit; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
237 printf "%10s %-20s\n" LINK $@; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
238 $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
239 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
240
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
241 clean-prehook:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
242 clean-posthook:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
243 build-prehook:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
244 build-posthook:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
245 install-prehook:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
246 install-posthook:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
247
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
248 mk/rules.mk:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
249 @if [ -f "configure" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
250 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
251 sh configure $(CONFIG_OPTS); \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
252 echo "[complete]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
253 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
254
1505
acd3b3d8d2cb Sync with audacious Mk.
William Pitcock <nenolod@atheme-project.org>
parents: 1158
diff changeset
255 .PHONY: .depend depend depend-prehook clean distclean
407
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
256 .depend:
1505
acd3b3d8d2cb Sync with audacious Mk.
William Pitcock <nenolod@atheme-project.org>
parents: 1158
diff changeset
257 depend-prehook:
407
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
258
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
259 # default depend rule. if something else is needed -- override depend target
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
260 depend:
1505
acd3b3d8d2cb Sync with audacious Mk.
William Pitcock <nenolod@atheme-project.org>
parents: 1158
diff changeset
261 $(MAKE) depend-prehook
407
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
262 @if [ "x$(SUBDIRS)" != "x" ]; then \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
263 for i in $(SUBDIRS); do \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
264 if [ $(VERBOSITY) -gt 0 ]; then \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
265 echo "[building depend file for subobjective: $$i]"; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
266 fi; \
417
22ad7fc47d14 [svn] - objective-make autodepend fixes
nenolod
parents: 407
diff changeset
267 cd $$i; touch .depend; $(MAKE) depend || exit; cd ..; \
407
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
268 if [ $(VERBOSITY) -gt 0 ]; then \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
269 echo "[finished subobjective: $$i]"; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
270 fi; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
271 done; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
272 fi
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
273 if [ ! -f .depend-done ]; then \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
274 for i in ${SOURCES}; do \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
275 echo "[generating dependencies for objective: $$i]"; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
276 ${CC} -MM ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $$i >> .depend; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
277 done; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
278 touch .depend-done; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
279 fi;
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
280
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
281 # compatibility with automake follows
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
282 am--refresh:
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
283
1158
382545522a14 [svn] Revert r2480, thanks to FreeBSD.
js
parents: 1157
diff changeset
284 include .depend