Mercurial > audlegacy
annotate mk/objective.mk @ 1119:042f189bd225 trunk
[svn] - rename psycho.c to paranoia.c, as other stuff will be here (such as frequency locking code, to fix warble, etc.)
author | nenolod |
---|---|
date | Tue, 30 May 2006 22:52:11 -0700 |
parents | 51818c9ef9ab |
children | c60ec089cd65 |
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 |
578 | 4 OBJECTIVE_DIRECTORIES = none |
5 OBJECTIVE_LIBS = none | |
581 | 6 OBJECTIVE_LIBS_NOINST = none |
578 | 7 OBJECTIVE_BINS = none |
713 | 8 OBJECTIVE_DATA = none |
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
|
9 SUBDIRS = none |
658
a019c0e28b28
[svn] If the makefile has a HEADERS variable, then install them to the
nenolod
parents:
626
diff
changeset
|
10 HEADERS = none |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
11 VERBOSITY = 0 |
876 | 12 SHOW_CFLAGS = 0 |
658
a019c0e28b28
[svn] If the makefile has a HEADERS variable, then install them to the
nenolod
parents:
626
diff
changeset
|
13 |
595 | 14 LIBDIR = $(libdir) |
15 BINDIR = $(bindir) | |
671 | 16 INCLUDEDIR = $(pkgincludedir) |
754 | 17 CFLAGS += -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/pkg/xorg/include |
18 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
|
19 |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
20 default: all |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
21 all: build |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
22 |
973
8279241db8b9
[svn] - compile objectives before installing them (oops)
nenolod
parents:
912
diff
changeset
|
23 install: build |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
24 $(MAKE) install-prehook |
708 | 25 @for i in $(BINDIR) $(LIBDIR) $(INCLUDEDIR); do \ |
26 if test ! -d $(DESTDIR)/$$i; then \ | |
705
93c09e025180
[svn] - more intelligently handle directory creation
nenolod
parents:
699
diff
changeset
|
27 $(INSTALL) -d -m 755 $(DESTDIR)/$$i; \ |
708 | 28 fi; \ |
29 done; | |
593 | 30 @if test "$(SUBDIRS)" != "none"; then \ |
31 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
|
32 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
|
33 echo "[installing subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
34 fi; \ |
870 | 35 (cd $$i; $(MAKE) install || exit; cd ..); \ |
593 | 36 done; \ |
37 fi | |
578 | 38 @if test "$(OBJECTIVE_DIRECTORIES)" != "none"; then \ |
39 for i in $(OBJECTIVE_DIRECTORIES); do \ | |
40 printf "%10s %-20s\n" MKDIR $$i; \ | |
41 $(INSTALL) -d -m 755 $(DESTDIR)/$$i; \ | |
42 done; \ | |
43 fi | |
658
a019c0e28b28
[svn] If the makefile has a HEADERS variable, then install them to the
nenolod
parents:
626
diff
changeset
|
44 @if test "$(HEADERS)" != "none"; then \ |
a019c0e28b28
[svn] If the makefile has a HEADERS variable, then install them to the
nenolod
parents:
626
diff
changeset
|
45 for i in $(HEADERS); do \ |
a019c0e28b28
[svn] If the makefile has a HEADERS variable, then install them to the
nenolod
parents:
626
diff
changeset
|
46 printf "%10s %-20s\n" INSTALL $$i; \ |
671 | 47 $(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
|
48 done; \ |
a019c0e28b28
[svn] If the makefile has a HEADERS variable, then install them to the
nenolod
parents:
626
diff
changeset
|
49 fi |
578 | 50 @if test "$(OBJECTIVE_LIBS)" != "none"; then \ |
51 for i in $(OBJECTIVE_LIBS); do \ | |
52 printf "%10s %-20s\n" INSTALL $$i; \ | |
53 $(INSTALL) $(INSTALL_OVERRIDE) $$i $(DESTDIR)/$(LIBDIR)/$$i; \ | |
54 done; \ | |
55 fi | |
56 @if test "$(OBJECTIVE_BINS)" != "none"; then \ | |
57 for i in $(OBJECTIVE_BINS); do \ | |
58 printf "%10s %-20s\n" INSTALL $$i; \ | |
59 $(INSTALL) $(INSTALL_OVERRIDE) $$i $(DESTDIR)/$(BINDIR)/$$i; \ | |
60 done; \ | |
61 fi; | |
713 | 62 @if test "$(OBJECTIVE_DATA)" != "none"; then \ |
63 for i in $(OBJECTIVE_DATA); do \ | |
715 | 64 source=`echo $$i | cut -d ":" -f1`; \ |
65 destination=`echo $$i | cut -d ":" -f2`; \ | |
723
d108cc745b64
[svn] - create directories that aren't there in the install phase
nenolod
parents:
715
diff
changeset
|
66 if test ! -d $(DESTDIR)/$$destination; then \ |
d108cc745b64
[svn] - create directories that aren't there in the install phase
nenolod
parents:
715
diff
changeset
|
67 $(INSTALL) -d -m 755 $(DESTDIR)/$$destination; \ |
d108cc745b64
[svn] - create directories that aren't there in the install phase
nenolod
parents:
715
diff
changeset
|
68 fi; \ |
713 | 69 printf "%10s %-20s\n" INSTALL $$source; \ |
70 $(INSTALL_DATA) $(INSTALL_OVERRIDE) $$source $(DESTDIR)/$$destination; \ | |
71 done; \ | |
72 fi | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
73 $(MAKE) install-posthook |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
74 @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
|
75 echo "[all objectives installed]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
76 fi |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
77 |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
78 clean: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
79 $(MAKE) clean-prehook |
567 | 80 @if test "$(SUBDIRS)" != "none"; then \ |
81 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
|
82 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
|
83 echo "[cleaning subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
84 fi; \ |
870 | 85 (cd $$i; $(MAKE) clean || exit; cd ..); \ |
567 | 86 done; \ |
87 fi | |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
88 $(MAKE) clean-posthook |
568
f34898e3333a
[svn] Announce when we're building a library or binary objective, not just a component objective.
nenolod
parents:
567
diff
changeset
|
89 $(RM) *.o *.lo *.so *.a *.sl |
912
1dd2afe391ec
[svn] binaries (audacious,audacious-arts-helper) should be deleted on clean requests
giacomo
parents:
876
diff
changeset
|
90 @if test "$(OBJECTIVE_BINS)" != "none"; then \ |
1dd2afe391ec
[svn] binaries (audacious,audacious-arts-helper) should be deleted on clean requests
giacomo
parents:
876
diff
changeset
|
91 for i in $(OBJECTIVE_BINS); do \ |
1dd2afe391ec
[svn] binaries (audacious,audacious-arts-helper) should be deleted on clean requests
giacomo
parents:
876
diff
changeset
|
92 $(RM) $$i; \ |
1dd2afe391ec
[svn] binaries (audacious,audacious-arts-helper) should be deleted on clean requests
giacomo
parents:
876
diff
changeset
|
93 done; \ |
1dd2afe391ec
[svn] binaries (audacious,audacious-arts-helper) should be deleted on clean requests
giacomo
parents:
876
diff
changeset
|
94 fi |
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
|
95 @if test "$(OBJECTIVE_LIBS)" != "none"; 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
|
96 for i in $(OBJECTIVE_LIBS); do \ |
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
|
97 $(RM) $$i; \ |
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 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
|
99 fi |
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 @if test "$(OBJECTIVE_LIBS_NOINST)" != "none"; 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
|
101 for i in $(OBJECTIVE_LIBS_NOINST); do \ |
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
|
102 $(RM) $$i; \ |
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 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
|
104 fi |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
105 @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
|
106 echo "[all objectives cleaned]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
107 fi |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
108 |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
109 distclean: clean |
712 | 110 @if test "$(SUBDIRS)" != "none"; then \ |
111 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
|
112 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
|
113 echo "[distcleaning subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
114 fi; \ |
870 | 115 (cd $$i; $(MAKE) distclean || exit; cd ..); \ |
712 | 116 done; \ |
117 fi | |
118 @if test -f Makefile.in; then \ | |
119 $(RM) -f Makefile; \ | |
120 fi | |
121 @if test -f mk/rules.mk; then \ | |
122 $(RM) -f mk/rules.mk; \ | |
123 fi | |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
124 |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
125 build: |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
126 $(MAKE) build-prehook |
712 | 127 @if test "$(SUBDIRS)" != "none"; 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
|
128 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
|
129 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
|
130 echo "[building subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
131 fi; \ |
872 | 132 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
|
133 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
|
134 echo "[finished subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
135 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
|
136 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
|
137 fi |
581 | 138 @if test "$(OBJECTIVE_LIBS)" != "none"; then \ |
139 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
|
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 "[building library objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
142 fi; \ |
870 | 143 $(MAKE) $$i || exit; \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
144 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
|
145 echo "[finished library objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
146 fi; \ |
581 | 147 done; \ |
148 fi | |
149 @if test "$(OBJECTIVE_LIBS_NOINST)" != "none"; then \ | |
150 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
|
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 "[building library dependency: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
153 fi; \ |
870 | 154 $(MAKE) $$i || exit; \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
155 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
|
156 echo "[finished library dependency: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
157 fi; \ |
581 | 158 done; \ |
159 fi | |
160 @if test "$(OBJECTIVE_BINS)" != "none"; then \ | |
161 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
|
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 "[building binary objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
164 fi; \ |
870 | 165 $(MAKE) $$i || exit; \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
166 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
|
167 echo "[finished binary objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
168 fi; \ |
581 | 169 done; \ |
170 fi | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
171 $(MAKE) build-posthook |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
172 @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
|
173 echo "[all objectives built]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
174 fi |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
175 |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
176 .c.o: |
876 | 177 if test $(SHOW_CFLAGS) -eq 1; then \ |
178 printf "%10s %-20s (%s)\n" CC $< "${CFLAGS}"; \ | |
179 else \ | |
180 printf "%10s %-20s\n" CC $<; \ | |
181 fi; | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
182 $(CC) $(CFLAGS) -c $< -o $@ |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
183 |
876 | 184 .cc.o .cpp.o .cxx.o: |
185 if test $(SHOW_CFLAGS) -eq 1; then \ | |
186 printf "%10s %-20s (%s)\n" CXX $< "${CXXFLAGS}"; \ | |
187 else \ | |
188 printf "%10s %-20s\n" CXX $<; \ | |
189 fi; | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
190 $(CXX) $(CXXFLAGS) -c $< -o $@ |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
191 |
578 | 192 %.so: $(OBJECTS) |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
193 if test "x$(OBJECTS)" != "x"; then \ |
870 | 194 $(MAKE) $(OBJECTS) || exit; \ |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
195 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
|
196 (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
|
197 $(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
|
198 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
|
199 $(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
|
200 fi;) \ |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
201 fi |
578 | 202 |
580 | 203 %.a: $(OBJECTS) |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
204 if test "x$(OBJECTS)" != "x"; then \ |
870 | 205 $(MAKE) $(OBJECTS) || exit; \ |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
206 printf "%10s %-20s\n" LINK $@; \ |
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
207 $(AR) cq $@ $(OBJECTS); \ |
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
208 fi |
580 | 209 |
579
785ec2ad4ea4
[svn] try to add a "default" make rule for $(OBJECTIVE_BINS)
nenolod
parents:
578
diff
changeset
|
210 $(OBJECTIVE_BINS): $(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 $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \ |
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
215 fi |
579
785ec2ad4ea4
[svn] try to add a "default" make rule for $(OBJECTIVE_BINS)
nenolod
parents:
578
diff
changeset
|
216 |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
217 clean-prehook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
218 clean-posthook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
219 build-prehook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
220 build-posthook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
221 install-prehook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
222 install-posthook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
223 |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
224 # compatibility with automake follows |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
225 am--refresh: |