Mercurial > audlegacy
annotate mk/objective.mk @ 1233:47a8833c2b01 trunk
[svn] - get_song_tuple() implementation
author | nenolod |
---|---|
date | Wed, 14 Jun 2006 21:47:23 -0700 |
parents | aa693b651fee |
children | dfa4ef2e8c79 |
rev | line source |
---|---|
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
1 # Shut up GNU make |
819 | 2 .SILENT: |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
3 |
1213 | 4 OBJECTIVE_DIRECTORIES = |
5 OBJECTIVE_LIBS = | |
6 OBJECTIVE_LIBS_NOINST = | |
7 OBJECTIVE_BINS = | |
8 OBJECTIVE_DATA = | |
9 SUBDIRS = | |
10 HEADERS = | |
1217 | 11 V = 0 |
12 VERBOSE ?= $(V) | |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
13 VERBOSITY = 0 |
1217 | 14 SHOW_CFLAGS ?= $(VERBOSE) |
1161
c60ec089cd65
[svn] Add V=1 shorthand for SHOW_CFLAGS, patch by vapier (Gentoo).
chainsaw
parents:
1058
diff
changeset
|
15 |
595 | 16 LIBDIR = $(libdir) |
17 BINDIR = $(bindir) | |
671 | 18 INCLUDEDIR = $(pkgincludedir) |
754 | 19 CFLAGS += -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/pkg/xorg/include |
20 CXXFLAGS += -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/pkg/xorg/include | |
566
ab7027a06ca9
[svn] convert mpg123 over... right now we don't use the "x86-optimized code", although I doubt it makes a lick of
nenolod
parents:
564
diff
changeset
|
21 |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
22 default: all |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
23 all: build |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
24 |
973
8279241db8b9
[svn] - compile objectives before installing them (oops)
nenolod
parents:
912
diff
changeset
|
25 install: build |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
26 $(MAKE) install-prehook |
708 | 27 @for i in $(BINDIR) $(LIBDIR) $(INCLUDEDIR); do \ |
28 if test ! -d $(DESTDIR)/$$i; then \ | |
705
93c09e025180
[svn] - more intelligently handle directory creation
nenolod
parents:
699
diff
changeset
|
29 $(INSTALL) -d -m 755 $(DESTDIR)/$$i; \ |
708 | 30 fi; \ |
31 done; | |
1213 | 32 @if test "x$(SUBDIRS)" != "x"; then \ |
593 | 33 for i in $(SUBDIRS); do \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
34 if test $(VERBOSITY) -gt 0; then \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
35 echo "[installing subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
36 fi; \ |
870 | 37 (cd $$i; $(MAKE) install || exit; cd ..); \ |
593 | 38 done; \ |
39 fi | |
1213 | 40 @if test "x$(OBJECTIVE_DIRECTORIES)" != "x"; then \ |
578 | 41 for i in $(OBJECTIVE_DIRECTORIES); do \ |
42 printf "%10s %-20s\n" MKDIR $$i; \ | |
43 $(INSTALL) -d -m 755 $(DESTDIR)/$$i; \ | |
44 done; \ | |
45 fi | |
1213 | 46 @if test "x$(HEADERS)" != "x"; then \ |
658
a019c0e28b28
[svn] If the makefile has a HEADERS variable, then install them to the
nenolod
parents:
626
diff
changeset
|
47 for i in $(HEADERS); do \ |
a019c0e28b28
[svn] If the makefile has a HEADERS variable, then install them to the
nenolod
parents:
626
diff
changeset
|
48 printf "%10s %-20s\n" INSTALL $$i; \ |
671 | 49 $(INSTALL_DATA) $(INSTALL_OVERRIDE) $$i $(DESTDIR)/$(INCLUDEDIR)/$$i; \ |
658
a019c0e28b28
[svn] If the makefile has a HEADERS variable, then install them to the
nenolod
parents:
626
diff
changeset
|
50 done; \ |
a019c0e28b28
[svn] If the makefile has a HEADERS variable, then install them to the
nenolod
parents:
626
diff
changeset
|
51 fi |
1213 | 52 @if test "x$(OBJECTIVE_LIBS)" != "x"; then \ |
578 | 53 for i in $(OBJECTIVE_LIBS); do \ |
54 printf "%10s %-20s\n" INSTALL $$i; \ | |
55 $(INSTALL) $(INSTALL_OVERRIDE) $$i $(DESTDIR)/$(LIBDIR)/$$i; \ | |
56 done; \ | |
57 fi | |
1213 | 58 @if test "x$(OBJECTIVE_BINS)" != "x"; then \ |
578 | 59 for i in $(OBJECTIVE_BINS); do \ |
60 printf "%10s %-20s\n" INSTALL $$i; \ | |
61 $(INSTALL) $(INSTALL_OVERRIDE) $$i $(DESTDIR)/$(BINDIR)/$$i; \ | |
62 done; \ | |
63 fi; | |
1213 | 64 @if test "x$(OBJECTIVE_DATA)" != "x"; then \ |
713 | 65 for i in $(OBJECTIVE_DATA); do \ |
715 | 66 source=`echo $$i | cut -d ":" -f1`; \ |
67 destination=`echo $$i | cut -d ":" -f2`; \ | |
723
d108cc745b64
[svn] - create directories that aren't there in the install phase
nenolod
parents:
715
diff
changeset
|
68 if test ! -d $(DESTDIR)/$$destination; then \ |
d108cc745b64
[svn] - create directories that aren't there in the install phase
nenolod
parents:
715
diff
changeset
|
69 $(INSTALL) -d -m 755 $(DESTDIR)/$$destination; \ |
d108cc745b64
[svn] - create directories that aren't there in the install phase
nenolod
parents:
715
diff
changeset
|
70 fi; \ |
713 | 71 printf "%10s %-20s\n" INSTALL $$source; \ |
72 $(INSTALL_DATA) $(INSTALL_OVERRIDE) $$source $(DESTDIR)/$$destination; \ | |
73 done; \ | |
74 fi | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
75 $(MAKE) install-posthook |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
76 @if test $(VERBOSITY) -gt 0; then \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
77 echo "[all objectives installed]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
78 fi |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
79 |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
80 clean: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
81 $(MAKE) clean-prehook |
1213 | 82 @if test "x$(SUBDIRS)" != "x"; then \ |
567 | 83 for i in $(SUBDIRS); do \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
84 if test $(VERBOSITY) -gt 0; then \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
85 echo "[cleaning subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
86 fi; \ |
870 | 87 (cd $$i; $(MAKE) clean || exit; cd ..); \ |
567 | 88 done; \ |
89 fi | |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
90 $(MAKE) clean-posthook |
1215 | 91 rm -f *.o *.lo *.so *.a *.sl |
1213 | 92 @if test "x$(OBJECTIVE_BINS)" != "x"; then \ |
912
1dd2afe391ec
[svn] binaries (audacious,audacious-arts-helper) should be deleted on clean requests
giacomo
parents:
876
diff
changeset
|
93 for i in $(OBJECTIVE_BINS); do \ |
1215 | 94 rm -f $$i; \ |
912
1dd2afe391ec
[svn] binaries (audacious,audacious-arts-helper) should be deleted on clean requests
giacomo
parents:
876
diff
changeset
|
95 done; \ |
1dd2afe391ec
[svn] binaries (audacious,audacious-arts-helper) should be deleted on clean requests
giacomo
parents:
876
diff
changeset
|
96 fi |
1213 | 97 @if test "x$(OBJECTIVE_LIBS)" != "x"; then \ |
1057
4dfe83e30bfa
[svn] - link against 'libaudacious.so.2.0.0' instead of 'libaudacious.so'. This brings us in full compliance of debian
nenolod
parents:
973
diff
changeset
|
98 for i in $(OBJECTIVE_LIBS); do \ |
1215 | 99 rm -f $$i; \ |
1057
4dfe83e30bfa
[svn] - link against 'libaudacious.so.2.0.0' instead of 'libaudacious.so'. This brings us in full compliance of debian
nenolod
parents:
973
diff
changeset
|
100 done; \ |
4dfe83e30bfa
[svn] - link against 'libaudacious.so.2.0.0' instead of 'libaudacious.so'. This brings us in full compliance of debian
nenolod
parents:
973
diff
changeset
|
101 fi |
1213 | 102 @if test "x$(OBJECTIVE_LIBS_NOINST)" != "x"; then \ |
1057
4dfe83e30bfa
[svn] - link against 'libaudacious.so.2.0.0' instead of 'libaudacious.so'. This brings us in full compliance of debian
nenolod
parents:
973
diff
changeset
|
103 for i in $(OBJECTIVE_LIBS_NOINST); do \ |
1215 | 104 rm -f $$i; \ |
1057
4dfe83e30bfa
[svn] - link against 'libaudacious.so.2.0.0' instead of 'libaudacious.so'. This brings us in full compliance of debian
nenolod
parents:
973
diff
changeset
|
105 done; \ |
4dfe83e30bfa
[svn] - link against 'libaudacious.so.2.0.0' instead of 'libaudacious.so'. This brings us in full compliance of debian
nenolod
parents:
973
diff
changeset
|
106 fi |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
107 @if test $(VERBOSITY) -gt 0; then \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
108 echo "[all objectives cleaned]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
109 fi |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
110 |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
111 distclean: clean |
1213 | 112 @if test "x$(SUBDIRS)" != "x"; then \ |
712 | 113 for i in $(SUBDIRS); do \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
114 if test $(VERBOSITY) -gt 0; then \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
115 echo "[distcleaning subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
116 fi; \ |
870 | 117 (cd $$i; $(MAKE) distclean || exit; cd ..); \ |
712 | 118 done; \ |
119 fi | |
120 @if test -f Makefile.in; then \ | |
1215 | 121 rm -f -f Makefile; \ |
712 | 122 fi |
123 @if test -f mk/rules.mk; then \ | |
1215 | 124 rm -f -f mk/rules.mk; \ |
712 | 125 fi |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
126 |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
127 build: |
1217 | 128 # test for GNU make |
129 @if test "x$(MAKE_VERSION)" == "x"; then \ | |
130 echo "[Your make is not properly supported, please use GNU make.]"; \ | |
131 exit 1; \ | |
132 fi; | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
133 $(MAKE) build-prehook |
1213 | 134 @if test "x$(SUBDIRS)" != "x"; then \ |
566
ab7027a06ca9
[svn] convert mpg123 over... right now we don't use the "x86-optimized code", although I doubt it makes a lick of
nenolod
parents:
564
diff
changeset
|
135 for i in $(SUBDIRS); do \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
136 if test $(VERBOSITY) -gt 0; then \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
137 echo "[building subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
138 fi; \ |
872 | 139 cd $$i; $(MAKE) || exit; cd ..; \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
140 if test $(VERBOSITY) -gt 0; then \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
141 echo "[finished subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
142 fi; \ |
566
ab7027a06ca9
[svn] convert mpg123 over... right now we don't use the "x86-optimized code", although I doubt it makes a lick of
nenolod
parents:
564
diff
changeset
|
143 done; \ |
ab7027a06ca9
[svn] convert mpg123 over... right now we don't use the "x86-optimized code", although I doubt it makes a lick of
nenolod
parents:
564
diff
changeset
|
144 fi |
1213 | 145 @if test "x$(OBJECTIVE_LIBS)" != "x"; then \ |
581 | 146 for i in $(OBJECTIVE_LIBS); do \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
147 if test $(VERBOSITY) -gt 0; then \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
148 echo "[building library objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
149 fi; \ |
870 | 150 $(MAKE) $$i || exit; \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
151 if test $(VERBOSITY) -gt 0; then \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
152 echo "[finished library objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
153 fi; \ |
581 | 154 done; \ |
155 fi | |
1213 | 156 @if test "x$(OBJECTIVE_LIBS_NOINST)" != "x"; then \ |
581 | 157 for i in $(OBJECTIVE_LIBS_NOINST); do \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
158 if test $(VERBOSITY) -gt 0; then \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
159 echo "[building library dependency: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
160 fi; \ |
870 | 161 $(MAKE) $$i || exit; \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
162 if test $(VERBOSITY) -gt 0; then \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
163 echo "[finished library dependency: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
164 fi; \ |
581 | 165 done; \ |
166 fi | |
1213 | 167 @if test "x$(OBJECTIVE_BINS)" != "x"; then \ |
581 | 168 for i in $(OBJECTIVE_BINS); do \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
169 if test $(VERBOSITY) -gt 0; then \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
170 echo "[building binary objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
171 fi; \ |
870 | 172 $(MAKE) $$i || exit; \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
173 if test $(VERBOSITY) -gt 0; then \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
174 echo "[finished binary objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
175 fi; \ |
581 | 176 done; \ |
177 fi | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
178 $(MAKE) build-posthook |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
179 @if test $(VERBOSITY) -gt 0; then \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
180 echo "[all objectives built]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
181 fi |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
182 |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
183 .c.o: |
876 | 184 if test $(SHOW_CFLAGS) -eq 1; then \ |
185 printf "%10s %-20s (%s)\n" CC $< "${CFLAGS}"; \ | |
186 else \ | |
187 printf "%10s %-20s\n" CC $<; \ | |
188 fi; | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
189 $(CC) $(CFLAGS) -c $< -o $@ |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
190 |
876 | 191 .cc.o .cpp.o .cxx.o: |
192 if test $(SHOW_CFLAGS) -eq 1; then \ | |
193 printf "%10s %-20s (%s)\n" CXX $< "${CXXFLAGS}"; \ | |
194 else \ | |
195 printf "%10s %-20s\n" CXX $<; \ | |
196 fi; | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
197 $(CXX) $(CXXFLAGS) -c $< -o $@ |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
198 |
1214 | 199 %.so $(OBJECTIVE_LIBS): $(OBJECTS) |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
200 if test "x$(OBJECTS)" != "x"; then \ |
870 | 201 $(MAKE) $(OBJECTS) || exit; \ |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
202 printf "%10s %-20s\n" LINK $@; \ |
1057
4dfe83e30bfa
[svn] - link against 'libaudacious.so.2.0.0' instead of 'libaudacious.so'. This brings us in full compliance of debian
nenolod
parents:
973
diff
changeset
|
203 (if test "x$(OBJECTIVE_SONAME_SUFFIX)" != "x"; then \ |
4dfe83e30bfa
[svn] - link against 'libaudacious.so.2.0.0' instead of 'libaudacious.so'. This brings us in full compliance of debian
nenolod
parents:
973
diff
changeset
|
204 $(CC) -fPIC -DPIC -shared -o $@ -Wl,-soname=$@.$(OBJECTIVE_SONAME_SUFFIX) $(OBJECTS) $(LDFLAGS) $(LIBADD); \ |
4dfe83e30bfa
[svn] - link against 'libaudacious.so.2.0.0' instead of 'libaudacious.so'. This brings us in full compliance of debian
nenolod
parents:
973
diff
changeset
|
205 else \ |
4dfe83e30bfa
[svn] - link against 'libaudacious.so.2.0.0' instead of 'libaudacious.so'. This brings us in full compliance of debian
nenolod
parents:
973
diff
changeset
|
206 $(CC) -fPIC -DPIC -shared -o $@ -Wl,-soname=$@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \ |
4dfe83e30bfa
[svn] - link against 'libaudacious.so.2.0.0' instead of 'libaudacious.so'. This brings us in full compliance of debian
nenolod
parents:
973
diff
changeset
|
207 fi;) \ |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
208 fi |
578 | 209 |
580 | 210 %.a: $(OBJECTS) |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
211 if test "x$(OBJECTS)" != "x"; then \ |
870 | 212 $(MAKE) $(OBJECTS) || exit; \ |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
213 printf "%10s %-20s\n" LINK $@; \ |
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
214 $(AR) cq $@ $(OBJECTS); \ |
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
215 fi |
580 | 216 |
579
785ec2ad4ea4
[svn] try to add a "default" make rule for $(OBJECTIVE_BINS)
nenolod
parents:
578
diff
changeset
|
217 $(OBJECTIVE_BINS): $(OBJECTS) |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
218 if test "x$(OBJECTS)" != "x"; then \ |
870 | 219 $(MAKE) $(OBJECTS) || exit; \ |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
220 printf "%10s %-20s\n" LINK $@; \ |
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
221 $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \ |
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
222 fi |
579
785ec2ad4ea4
[svn] try to add a "default" make rule for $(OBJECTIVE_BINS)
nenolod
parents:
578
diff
changeset
|
223 |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
224 clean-prehook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
225 clean-posthook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
226 build-prehook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
227 build-posthook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
228 install-prehook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
229 install-posthook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
230 |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
231 # compatibility with automake follows |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
232 am--refresh: |
1209 | 233 |
234 mk/rules.mk: | |
235 @if [ -f "configure" ]; then \ | |
236 echo "[building rules.mk for posix target, run configure manually if you do not want this]"; \ | |
1219 | 237 sh configure $(CONFIG_OPTS); \ |
1209 | 238 echo "[complete]"; \ |
239 fi | |
240 |