Mercurial > audlegacy
annotate mk/objective.mk @ 2551:cea3528b2996 trunk
[svn] Fix --play-pause commandline option, by Alex "Monkey" Maclean in #gentoo-x86
author | chainsaw |
---|---|
date | Mon, 19 Feb 2007 06:11:23 -0800 |
parents | 30ab29ed32d8 |
children | ecfb79d60c3a |
rev | line source |
---|---|
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
1 default: all |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
2 all: build |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
3 |
1695
3cf80d8a6d8d
[svn] - Removed .cpp.o target since we don't have any .cpp files anymore.
js
parents:
1693
diff
changeset
|
4 .SUFFIXES: .cxx .cc |
3cf80d8a6d8d
[svn] - Removed .cpp.o target since we don't have any .cpp files anymore.
js
parents:
1693
diff
changeset
|
5 |
973
8279241db8b9
[svn] - compile objectives before installing them (oops)
nenolod
parents:
912
diff
changeset
|
6 install: build |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
7 $(MAKE) install-prehook |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
8 @for i in $(BINDIR) $(LIBDIR) $(INCLUDEDIR); do \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
9 if [ ! -d $(DESTDIR)/$$i ]; then \ |
705
93c09e025180
[svn] - more intelligently handle directory creation
nenolod
parents:
699
diff
changeset
|
10 $(INSTALL) -d -m 755 $(DESTDIR)/$$i; \ |
708 | 11 fi; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
12 done; |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
13 @if [ "x$(OVERLAYS)" != "x" ]; then \ |
2287 | 14 for i in `find $(OVERLAYS) -type d -maxdepth 1 -mindepth 1`; do \ |
15 if [ $(VERBOSITY) -gt 0 ]; then \ | |
16 echo "[installing overlay: $$i]"; \ | |
17 fi; \ | |
2390 | 18 cd $$i; OVERLAYS="" $(MAKE) install || exit; cd ..; \ |
2287 | 19 done; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
20 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
21 @if [ "x$(SUBDIRS)" != "x" ]; then \ |
593 | 22 for i in $(SUBDIRS); do \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
23 if [ $(VERBOSITY) -gt 0 ]; then \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
24 echo "[installing subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
25 fi; \ |
2390 | 26 cd $$i; OVERLAYS="" $(MAKE) install || exit; cd ..; \ |
593 | 27 done; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
28 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
29 @if [ "x$(OBJECTIVE_DIRECTORIES)" != "x" ]; then \ |
578 | 30 for i in $(OBJECTIVE_DIRECTORIES); do \ |
31 printf "%10s %-20s\n" MKDIR $$i; \ | |
32 $(INSTALL) -d -m 755 $(DESTDIR)/$$i; \ | |
33 done; \ | |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
34 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
35 @if [ "x$(HEADERS)" != "x" ]; then \ |
658
a019c0e28b28
[svn] If the makefile has a HEADERS variable, then install them to the
nenolod
parents:
626
diff
changeset
|
36 for i in $(HEADERS); do \ |
a019c0e28b28
[svn] If the makefile has a HEADERS variable, then install them to the
nenolod
parents:
626
diff
changeset
|
37 printf "%10s %-20s\n" INSTALL $$i; \ |
671 | 38 $(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
|
39 done; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
40 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
41 @if [ "x$(OBJECTIVE_LIBS)" != "x" ]; then \ |
578 | 42 for i in $(OBJECTIVE_LIBS); do \ |
43 printf "%10s %-20s\n" INSTALL $$i; \ | |
44 $(INSTALL) $(INSTALL_OVERRIDE) $$i $(DESTDIR)/$(LIBDIR)/$$i; \ | |
45 done; \ | |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
46 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
47 @if [ "x$(OBJECTIVE_BINS)" != "x" ]; then \ |
578 | 48 for i in $(OBJECTIVE_BINS); do \ |
49 printf "%10s %-20s\n" INSTALL $$i; \ | |
50 $(INSTALL) $(INSTALL_OVERRIDE) $$i $(DESTDIR)/$(BINDIR)/$$i; \ | |
51 done; \ | |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
52 fi; |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
53 @if [ "x$(OBJECTIVE_DATA)" != "x" ]; then \ |
713 | 54 for i in $(OBJECTIVE_DATA); do \ |
715 | 55 source=`echo $$i | cut -d ":" -f1`; \ |
56 destination=`echo $$i | cut -d ":" -f2`; \ | |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
57 if [ ! -d $(DESTDIR)/$$destination ]; then \ |
723
d108cc745b64
[svn] - create directories that aren't there in the install phase
nenolod
parents:
715
diff
changeset
|
58 $(INSTALL) -d -m 755 $(DESTDIR)/$$destination; \ |
d108cc745b64
[svn] - create directories that aren't there in the install phase
nenolod
parents:
715
diff
changeset
|
59 fi; \ |
713 | 60 printf "%10s %-20s\n" INSTALL $$source; \ |
61 $(INSTALL_DATA) $(INSTALL_OVERRIDE) $$source $(DESTDIR)/$$destination; \ | |
62 done; \ | |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
63 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
64 $(MAKE) install-posthook |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
65 @if [ $(VERBOSITY) -gt 0 ]; then \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
66 echo "[all objectives installed]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
67 fi |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
68 |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
69 clean: |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
70 $(MAKE) clean-prehook |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
71 @if [ "x$(OVERLAYS)" != "x" ]; then \ |
2287 | 72 for i in `find $(OVERLAYS) -type d -maxdepth 1 -mindepth 1`; do \ |
73 if [ $(VERBOSITY) -gt 0 ]; then \ | |
74 echo "[cleaning overlay: $$i]"; \ | |
75 fi; \ | |
2390 | 76 cd $$i; OVERLAYS="" $(MAKE) clean || exit; cd ..; \ |
2287 | 77 done; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
78 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
79 @if [ "x$(SUBDIRS)" != "x" ]; then \ |
567 | 80 for i in $(SUBDIRS); do \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
81 if [ $(VERBOSITY) -gt 0 ]; then \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
82 echo "[cleaning subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
83 fi; \ |
2390 | 84 cd $$i; OVERLAYS="" $(MAKE) clean || exit; cd ..; \ |
567 | 85 done; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
86 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
87 $(MAKE) clean-posthook |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
88 rm -f *.o *.lo *.so *.a *.sl .depend-done .depend |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
89 touch .depend |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
90 @if [ "x$(OBJECTIVE_BINS)" != "x" ]; then \ |
912
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 \ |
1215 | 92 rm -f $$i; \ |
912
1dd2afe391ec
[svn] binaries (audacious,audacious-arts-helper) should be deleted on clean requests
giacomo
parents:
876
diff
changeset
|
93 done; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
94 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
95 @if [ "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
|
96 for i in $(OBJECTIVE_LIBS); do \ |
1215 | 97 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
|
98 done; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
99 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
100 @if [ "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
|
101 for i in $(OBJECTIVE_LIBS_NOINST); do \ |
1215 | 102 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
|
103 done; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
104 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
105 @if [ $(VERBOSITY) -gt 0 ]; then \ |
873
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 |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
110 @if [ "x$(OVERLAYS)" != "x" ]; then \ |
2287 | 111 for i in `find $(OVERLAYS) -type d -maxdepth 1 -mindepth 1`; do \ |
112 if [ $(VERBOSITY) -gt 0 ]; then \ | |
113 echo "[distcleaning overlay: $$i]"; \ | |
114 fi; \ | |
2390 | 115 cd $$i; OVERLAYS="" $(MAKE) distclean || exit; cd ..; \ |
2287 | 116 done; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
117 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
118 @if [ "x$(SUBDIRS)" != "x" ]; then \ |
712 | 119 for i in $(SUBDIRS); do \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
120 if [ $(VERBOSITY) -gt 0 ]; then \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
121 echo "[distcleaning subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
122 fi; \ |
2390 | 123 cd $$i; OVERLAYS="" $(MAKE) distclean || exit; cd ..; \ |
712 | 124 done; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
125 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
126 @if [ -f Makefile.in ]; then \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
127 rm -f Makefile; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
128 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
129 @if [ -f mk/rules.mk ]; then \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
130 rm -f mk/rules.mk; \ |
712 | 131 fi |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
132 |
2287 | 133 build: depend |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
134 $(MAKE) build-prehook |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
135 @if [ "x$(OVERLAYS)" != "x" ]; then \ |
2287 | 136 for i in `find $(OVERLAYS) -type d -maxdepth 1 -mindepth 1`; do \ |
137 if [ $(VERBOSITY) -gt 0 ]; then \ | |
138 echo "[building overlay: $$i]"; \ | |
139 fi; \ | |
2390 | 140 cd $$i; OVERLAYS="" $(MAKE) || exit; cd ..; \ |
2287 | 141 if [ $(VERBOSITY) -gt 0 ]; then \ |
142 echo "[finished overlay: $$i]"; \ | |
143 fi; \ | |
144 done; \ | |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
145 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
146 @if [ "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
|
147 for i in $(SUBDIRS); do \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
148 if [ $(VERBOSITY) -gt 0 ]; then \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
149 echo "[building subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
150 fi; \ |
2390 | 151 cd $$i; OVERLAYS="" $(MAKE) || exit; cd ..; \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
152 if [ $(VERBOSITY) -gt 0 ]; then \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
153 echo "[finished subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
154 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
|
155 done; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
156 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
157 @if [ "x$(OBJECTIVE_LIBS)" != "x" ]; then \ |
581 | 158 for i in $(OBJECTIVE_LIBS); do \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
159 if [ $(VERBOSITY) -gt 0 ]; then \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
160 echo "[building library objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
161 fi; \ |
870 | 162 $(MAKE) $$i || exit; \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
163 if [ $(VERBOSITY) -gt 0 ]; then \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
164 echo "[finished library objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
165 fi; \ |
581 | 166 done; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
167 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
168 @if [ "x$(OBJECTIVE_LIBS_NOINST)" != "x" ]; then \ |
581 | 169 for i in $(OBJECTIVE_LIBS_NOINST); do \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
170 if [ $(VERBOSITY) -gt 0 ]; then \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
171 echo "[building library dependency: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
172 fi; \ |
870 | 173 $(MAKE) $$i || exit; \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
174 if [ $(VERBOSITY) -gt 0 ]; then \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
175 echo "[finished library dependency: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
176 fi; \ |
581 | 177 done; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
178 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
179 @if test "x$(OBJECTIVE_BINS)" != "x"; then \ |
581 | 180 for i in $(OBJECTIVE_BINS); do \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
181 if [ $(VERBOSITY) -gt 0 ]; then \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
182 echo "[building binary objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
183 fi; \ |
870 | 184 $(MAKE) $$i || exit; \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
185 if [ $(VERBOSITY) -gt 0 ]; then \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
186 echo "[finished binary objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
187 fi; \ |
581 | 188 done; \ |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
189 fi |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
190 $(MAKE) build-posthook |
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
191 @if [ $(VERBOSITY) -gt 0 ]; then \ |
873
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
192 echo "[all objectives built]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
193 fi |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
194 |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
195 .c.o: |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
196 @if [ $(SHOW_CFLAGS) -eq 1 ]; then \ |
876 | 197 printf "%10s %-20s (%s)\n" CC $< "${CFLAGS}"; \ |
198 else \ | |
199 printf "%10s %-20s\n" CC $<; \ | |
200 fi; | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
201 $(CC) $(CFLAGS) -c $< -o $@ |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
202 |
1695
3cf80d8a6d8d
[svn] - Removed .cpp.o target since we don't have any .cpp files anymore.
js
parents:
1693
diff
changeset
|
203 .cc.o .cxx.o: |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
204 @if [ $(SHOW_CFLAGS) -eq 1 ]; then \ |
876 | 205 printf "%10s %-20s (%s)\n" CXX $< "${CXXFLAGS}"; \ |
206 else \ | |
207 printf "%10s %-20s\n" CXX $<; \ | |
208 fi; | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
209 $(CXX) $(CXXFLAGS) -c $< -o $@ |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
210 |
1615
e402e0217870
[svn] - fix for the long-standing dependency oddness in our build system. now make tool surely picks up changed source files and builds required objectives.
yaz
parents:
1323
diff
changeset
|
211 $(OBJECTIVE_LIBS): $(OBJECTS) |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
212 if [ "x$(OBJECTS)" != "x" ]; then \ |
870 | 213 $(MAKE) $(OBJECTS) || exit; \ |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
214 printf "%10s %-20s\n" LINK $@; \ |
1749 | 215 (if [ "x$(SHARED_SUFFIX)" = "x.so" ]; then \ |
1627 | 216 (if [ "x$(OBJECTIVE_SONAME_SUFFIX)" != "x" ]; then \ |
2286
861e6e6edd59
[svn] - use -Wl,-h for defining the SONAME for POSIX compatibility
nenolod
parents:
2116
diff
changeset
|
217 $(CC) $(PICLDFLAGS) -o $@ -Wl,-h$@.$(OBJECTIVE_SONAME_SUFFIX) $(OBJECTS) $(LDFLAGS) $(LIBADD); \ |
1627 | 218 else \ |
2286
861e6e6edd59
[svn] - use -Wl,-h for defining the SONAME for POSIX compatibility
nenolod
parents:
2116
diff
changeset
|
219 $(CC) $(PICLDFLAGS) -o $@ -Wl,-h$@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \ |
1627 | 220 fi;) \ |
221 else \ | |
222 $(CC) $(PICLDFLAGS) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \ | |
223 fi;) \ | |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
224 fi |
578 | 225 |
580 | 226 %.a: $(OBJECTS) |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
227 if [ "x$(OBJECTS)" != "x" ]; then \ |
870 | 228 $(MAKE) $(OBJECTS) || exit; \ |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
229 printf "%10s %-20s\n" LINK $@; \ |
2116 | 230 $(AR) cr $@ $(OBJECTS); \ |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
231 fi |
580 | 232 |
579
785ec2ad4ea4
[svn] try to add a "default" make rule for $(OBJECTIVE_BINS)
nenolod
parents:
578
diff
changeset
|
233 $(OBJECTIVE_BINS): $(OBJECTS) |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
234 if [ "x$(OBJECTS)" != "x" ]; then \ |
870 | 235 $(MAKE) $(OBJECTS) || exit; \ |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
236 printf "%10s %-20s\n" LINK $@; \ |
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
237 $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \ |
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
238 fi |
579
785ec2ad4ea4
[svn] try to add a "default" make rule for $(OBJECTIVE_BINS)
nenolod
parents:
578
diff
changeset
|
239 |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
240 clean-prehook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
241 clean-posthook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
242 build-prehook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
243 build-posthook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
244 install-prehook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
245 install-posthook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
246 |
1209 | 247 mk/rules.mk: |
248 @if [ -f "configure" ]; then \ | |
249 echo "[building rules.mk for posix target, run configure manually if you do not want this]"; \ | |
1219 | 250 sh configure $(CONFIG_OPTS); \ |
1209 | 251 echo "[complete]"; \ |
252 fi | |
253 | |
2287 | 254 .PHONY: .depend depend clean distclean |
255 .depend: | |
256 | |
257 # default depend rule. if something else is needed -- override depend target | |
258 depend: | |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
259 @if [ "x$(SUBDIRS)" != "x" ]; then \ |
2287 | 260 for i in $(SUBDIRS); do \ |
261 if [ $(VERBOSITY) -gt 0 ]; then \ | |
262 echo "[building depend file for subobjective: $$i]"; \ | |
263 fi; \ | |
2313 | 264 cd $$i; touch .depend; $(MAKE) depend || exit; cd ..; \ |
2287 | 265 if [ $(VERBOSITY) -gt 0 ]; then \ |
266 echo "[finished subobjective: $$i]"; \ | |
267 fi; \ | |
268 done; \ | |
2409
30ab29ed32d8
[svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents:
2391
diff
changeset
|
269 fi |
2287 | 270 if [ ! -f .depend-done ]; then \ |
271 for i in ${SOURCES}; do \ | |
272 echo "[generating dependencies for objective: $$i]"; \ | |
273 ${CC} -MM ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $$i >> .depend; \ | |
274 done; \ | |
275 touch .depend-done; \ | |
276 fi; | |
277 | |
278 # compatibility with automake follows | |
279 am--refresh: | |
280 | |
281 include .depend |