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