annotate mk/objective.mk @ 877:ecf3cb97dba1 trunk

[svn] - kill bad .depend file
author nenolod
date Sun, 18 Mar 2007 20:24:01 -0700
parents db5f05be1752
children f19e6748d8eb
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
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
129 @if [ -f mk/rules.mk ]; then \
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
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
132
407
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
133 build: depend
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
134 $(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
135 @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
136 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
137 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
138 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
139 fi; \
541
db5f05be1752 [svn] - portability fixes for solaris
nenolod
parents: 480
diff changeset
140 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
141 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
142 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
143 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
144 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
145 fi
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
146 @if [ "x$(SUBDIRS)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
147 for i in $(SUBDIRS); do \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
148 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
149 echo "[building subobjective: $$i]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
150 fi; \
541
db5f05be1752 [svn] - portability fixes for solaris
nenolod
parents: 480
diff changeset
151 cd $$i; OVERLAYS="" $(MAKE) || exit; cd ..; \
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
152 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
153 echo "[finished subobjective: $$i]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
154 fi; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
155 done; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
156 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
157 @if [ "x$(OBJECTIVE_LIBS)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
158 for i in $(OBJECTIVE_LIBS); do \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
159 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
160 echo "[building library objective: $$i]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
161 fi; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
162 $(MAKE) $$i || exit; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
163 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
164 echo "[finished library objective: $$i]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
165 fi; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
166 done; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
167 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
168 @if [ "x$(OBJECTIVE_LIBS_NOINST)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
169 for i in $(OBJECTIVE_LIBS_NOINST); do \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
170 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
171 echo "[building library dependency: $$i]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
172 fi; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
173 $(MAKE) $$i || exit; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
174 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
175 echo "[finished library dependency: $$i]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
176 fi; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
177 done; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
178 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
179 @if test "x$(OBJECTIVE_BINS)" != "x"; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
180 for i in $(OBJECTIVE_BINS); do \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
181 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
182 echo "[building binary objective: $$i]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
183 fi; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
184 $(MAKE) $$i || exit; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
185 if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
186 echo "[finished binary objective: $$i]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
187 fi; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
188 done; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
189 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
190 $(MAKE) build-posthook
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
191 @if [ $(VERBOSITY) -gt 0 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
192 echo "[all objectives built]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
193 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
194
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
195 .c.o:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
196 @if [ $(SHOW_CFLAGS) -eq 1 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
197 printf "%10s %-20s (%s)\n" CC $< "${CFLAGS}"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
198 else \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
199 printf "%10s %-20s\n" CC $<; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
200 fi;
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
201 $(CC) $(CFLAGS) -c $< -o $@
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
202
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
203 .cc.o .cxx.o:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
204 @if [ $(SHOW_CFLAGS) -eq 1 ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
205 printf "%10s %-20s (%s)\n" CXX $< "${CXXFLAGS}"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
206 else \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
207 printf "%10s %-20s\n" CXX $<; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
208 fi;
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
209 $(CXX) $(CXXFLAGS) -c $< -o $@
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
210
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
211 $(OBJECTIVE_LIBS): $(OBJECTS)
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
212 if [ "x$(OBJECTS)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
213 $(MAKE) $(OBJECTS) || exit; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
214 printf "%10s %-20s\n" LINK $@; \
407
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
215 (if [ "x$(SHARED_SUFFIX)" = "x.so" ]; then \
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
216 (if [ "x$(OBJECTIVE_SONAME_SUFFIX)" != "x" ]; then \
407
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
217 $(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
218 else \
407
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
219 $(CC) $(PICLDFLAGS) -o $@ -Wl,-h$@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
220 fi;) \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
221 else \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
222 $(CC) $(PICLDFLAGS) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \
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 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
225
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
226 %.a: $(OBJECTS)
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
227 if [ "x$(OBJECTS)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
228 $(MAKE) $(OBJECTS) || exit; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
229 printf "%10s %-20s\n" LINK $@; \
376
0c8f475e0032 [svn] - ar should pick changes
yaz
parents: 287
diff changeset
230 $(AR) cr $@ $(OBJECTS); \
0
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
231 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
232
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
233 $(OBJECTIVE_BINS): $(OBJECTS)
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
234 if [ "x$(OBJECTS)" != "x" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
235 $(MAKE) $(OBJECTS) || exit; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
236 printf "%10s %-20s\n" LINK $@; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
237 $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
238 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
239
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
240 clean-prehook:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
241 clean-posthook:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
242 build-prehook:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
243 build-posthook:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
244 install-prehook:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
245 install-posthook:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
246
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
247 mk/rules.mk:
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
248 @if [ -f "configure" ]; then \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
249 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
250 sh configure $(CONFIG_OPTS); \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
251 echo "[complete]"; \
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
252 fi
13389e613d67 [svn] - initial import of audacious-plugins tree (lots to do)
nenolod
parents:
diff changeset
253
407
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
254 .PHONY: .depend depend clean distclean
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
255 .depend:
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
256
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
257 # default depend rule. if something else is needed -- override depend target
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
258 depend:
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
259 @if [ "x$(SUBDIRS)" != "x" ]; then \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
260 for i in $(SUBDIRS); do \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
261 if [ $(VERBOSITY) -gt 0 ]; then \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
262 echo "[building depend file for subobjective: $$i]"; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
263 fi; \
417
22ad7fc47d14 [svn] - objective-make autodepend fixes
nenolod
parents: 407
diff changeset
264 cd $$i; touch .depend; $(MAKE) depend || exit; cd ..; \
407
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
265 if [ $(VERBOSITY) -gt 0 ]; then \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
266 echo "[finished subobjective: $$i]"; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
267 fi; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
268 done; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
269 fi
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
270 if [ ! -f .depend-done ]; then \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
271 for i in ${SOURCES}; do \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
272 echo "[generating dependencies for objective: $$i]"; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
273 ${CC} -MM ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $$i >> .depend; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
274 done; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
275 touch .depend-done; \
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
276 fi;
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
277
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
278 # compatibility with automake follows
3c0cb7e84e0d [svn] - update to Objective-Make II
nenolod
parents: 376
diff changeset
279 am--refresh:
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 include .depend