Mercurial > audlegacy
annotate mk/objective.mk @ 1696:cd8711f34c88 trunk
[svn] - DND fixes
author | nenolod |
---|---|
date | Fri, 15 Sep 2006 07:46:49 -0700 |
parents | 3cf80d8a6d8d |
children | 2d84f6a3ca23 |
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 |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
7 $(MAKE) install-prehook |
708 | 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; \ |
12 done; | |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
13 @if [ "x$(SUBDIRS)" != "x" ]; then \ |
593 | 14 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
|
15 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
|
16 echo "[installing subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
17 fi; \ |
870 | 18 (cd $$i; $(MAKE) install || exit; cd ..); \ |
593 | 19 done; \ |
20 fi | |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
21 @if [ "x$(OBJECTIVE_DIRECTORIES)" != "x" ]; then \ |
578 | 22 for i in $(OBJECTIVE_DIRECTORIES); do \ |
23 printf "%10s %-20s\n" MKDIR $$i; \ | |
24 $(INSTALL) -d -m 755 $(DESTDIR)/$$i; \ | |
25 done; \ | |
26 fi | |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
27 @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
|
28 for i in $(HEADERS); do \ |
a019c0e28b28
[svn] If the makefile has a HEADERS variable, then install them to the
nenolod
parents:
626
diff
changeset
|
29 printf "%10s %-20s\n" INSTALL $$i; \ |
671 | 30 $(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
|
31 done; \ |
a019c0e28b28
[svn] If the makefile has a HEADERS variable, then install them to the
nenolod
parents:
626
diff
changeset
|
32 fi |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
33 @if [ "x$(OBJECTIVE_LIBS)" != "x" ]; then \ |
578 | 34 for i in $(OBJECTIVE_LIBS); do \ |
35 printf "%10s %-20s\n" INSTALL $$i; \ | |
36 $(INSTALL) $(INSTALL_OVERRIDE) $$i $(DESTDIR)/$(LIBDIR)/$$i; \ | |
37 done; \ | |
38 fi | |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
39 @if [ "x$(OBJECTIVE_BINS)" != "x" ]; then \ |
578 | 40 for i in $(OBJECTIVE_BINS); do \ |
41 printf "%10s %-20s\n" INSTALL $$i; \ | |
42 $(INSTALL) $(INSTALL_OVERRIDE) $$i $(DESTDIR)/$(BINDIR)/$$i; \ | |
43 done; \ | |
44 fi; | |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
45 @if [ "x$(OBJECTIVE_DATA)" != "x" ]; then \ |
713 | 46 for i in $(OBJECTIVE_DATA); do \ |
715 | 47 source=`echo $$i | cut -d ":" -f1`; \ |
48 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
|
49 if [ ! -d $(DESTDIR)/$$destination ]; then \ |
723
d108cc745b64
[svn] - create directories that aren't there in the install phase
nenolod
parents:
715
diff
changeset
|
50 $(INSTALL) -d -m 755 $(DESTDIR)/$$destination; \ |
d108cc745b64
[svn] - create directories that aren't there in the install phase
nenolod
parents:
715
diff
changeset
|
51 fi; \ |
713 | 52 printf "%10s %-20s\n" INSTALL $$source; \ |
53 $(INSTALL_DATA) $(INSTALL_OVERRIDE) $$source $(DESTDIR)/$$destination; \ | |
54 done; \ | |
55 fi | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
56 $(MAKE) install-posthook |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
57 @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
|
58 echo "[all objectives installed]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
59 fi |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
60 |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
61 clean: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
62 $(MAKE) clean-prehook |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
63 @if [ "x$(SUBDIRS)" != "x" ]; then \ |
567 | 64 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
|
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 "[cleaning subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
67 fi; \ |
870 | 68 (cd $$i; $(MAKE) clean || exit; cd ..); \ |
567 | 69 done; \ |
70 fi | |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
71 $(MAKE) clean-posthook |
1215 | 72 rm -f *.o *.lo *.so *.a *.sl |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
73 @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
|
74 for i in $(OBJECTIVE_BINS); do \ |
1215 | 75 rm -f $$i; \ |
912
1dd2afe391ec
[svn] binaries (audacious,audacious-arts-helper) should be deleted on clean requests
giacomo
parents:
876
diff
changeset
|
76 done; \ |
1dd2afe391ec
[svn] binaries (audacious,audacious-arts-helper) should be deleted on clean requests
giacomo
parents:
876
diff
changeset
|
77 fi |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
78 @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
|
79 for i in $(OBJECTIVE_LIBS); do \ |
1215 | 80 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
|
81 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
|
82 fi |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
83 @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
|
84 for i in $(OBJECTIVE_LIBS_NOINST); do \ |
1215 | 85 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
|
86 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
|
87 fi |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
88 @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
|
89 echo "[all objectives cleaned]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
90 fi |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
91 |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
92 distclean: clean |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
93 @if [ "x$(SUBDIRS)" != "x" ]; then \ |
712 | 94 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
|
95 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
|
96 echo "[distcleaning subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
97 fi; \ |
870 | 98 (cd $$i; $(MAKE) distclean || exit; cd ..); \ |
712 | 99 done; \ |
100 fi | |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
101 @if [ -f Makefile.in ]; then \ |
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
102 rm -f Makefile; \ |
712 | 103 fi |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
104 @if [ -f mk/rules.mk ]; then \ |
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
105 rm -f mk/rules.mk; \ |
712 | 106 fi |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
107 |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
108 build: |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
109 $(MAKE) build-prehook |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
110 @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
|
111 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
|
112 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
|
113 echo "[building subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
114 fi; \ |
872 | 115 cd $$i; $(MAKE) || exit; cd ..; \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
116 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
|
117 echo "[finished subobjective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
118 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
|
119 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
|
120 fi |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
121 @if [ "x$(OBJECTIVE_LIBS)" != "x" ]; then \ |
581 | 122 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
|
123 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
|
124 echo "[building library objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
125 fi; \ |
870 | 126 $(MAKE) $$i || exit; \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
127 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
|
128 echo "[finished library objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
129 fi; \ |
581 | 130 done; \ |
131 fi | |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
132 @if [ "x$(OBJECTIVE_LIBS_NOINST)" != "x" ]; then \ |
581 | 133 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
|
134 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
|
135 echo "[building library dependency: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
136 fi; \ |
870 | 137 $(MAKE) $$i || exit; \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
138 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
|
139 echo "[finished library dependency: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
140 fi; \ |
581 | 141 done; \ |
142 fi | |
1213 | 143 @if test "x$(OBJECTIVE_BINS)" != "x"; then \ |
581 | 144 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
|
145 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
|
146 echo "[building binary objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
147 fi; \ |
870 | 148 $(MAKE) $$i || exit; \ |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
149 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
|
150 echo "[finished binary objective: $$i]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
151 fi; \ |
581 | 152 done; \ |
153 fi | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
154 $(MAKE) build-posthook |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
155 @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
|
156 echo "[all objectives built]"; \ |
44782ab84dcd
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
nenolod
parents:
872
diff
changeset
|
157 fi |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
158 |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
159 .c.o: |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
160 @if [ $(SHOW_CFLAGS) -eq 1 ]; then \ |
876 | 161 printf "%10s %-20s (%s)\n" CC $< "${CFLAGS}"; \ |
162 else \ | |
163 printf "%10s %-20s\n" CC $<; \ | |
164 fi; | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
165 $(CC) $(CFLAGS) -c $< -o $@ |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
166 |
1695
3cf80d8a6d8d
[svn] - Removed .cpp.o target since we don't have any .cpp files anymore.
js
parents:
1693
diff
changeset
|
167 .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
|
168 @if [ $(SHOW_CFLAGS) -eq 1 ]; then \ |
876 | 169 printf "%10s %-20s (%s)\n" CXX $< "${CXXFLAGS}"; \ |
170 else \ | |
171 printf "%10s %-20s\n" CXX $<; \ | |
172 fi; | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
173 $(CXX) $(CXXFLAGS) -c $< -o $@ |
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
diff
changeset
|
174 |
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
|
175 $(OBJECTIVE_LIBS): $(OBJECTS) |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
176 if [ "x$(OBJECTS)" != "x" ]; then \ |
870 | 177 $(MAKE) $(OBJECTS) || exit; \ |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
178 printf "%10s %-20s\n" LINK $@; \ |
1687
aa8bbf970aae
[svn] Just saw another bug in the same line. The if was always false.
js
parents:
1686
diff
changeset
|
179 (if [ "x$(SHARED_SUFFIX)" = "xso" ]; then \ |
1627 | 180 (if [ "x$(OBJECTIVE_SONAME_SUFFIX)" != "x" ]; then \ |
181 $(CC) $(PICLDFLAGS) -o $@ -Wl,-soname=$@.$(OBJECTIVE_SONAME_SUFFIX) $(OBJECTS) $(LDFLAGS) $(LIBADD); \ | |
182 else \ | |
183 $(CC) $(PICLDFLAGS) -o $@ -Wl,-soname=$@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \ | |
184 fi;) \ | |
185 else \ | |
186 $(CC) $(PICLDFLAGS) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \ | |
187 fi;) \ | |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
188 fi |
578 | 189 |
580 | 190 %.a: $(OBJECTS) |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
191 if [ "x$(OBJECTS)" != "x" ]; then \ |
870 | 192 $(MAKE) $(OBJECTS) || exit; \ |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
193 printf "%10s %-20s\n" LINK $@; \ |
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
194 $(AR) cq $@ $(OBJECTS); \ |
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
195 fi |
580 | 196 |
579
785ec2ad4ea4
[svn] try to add a "default" make rule for $(OBJECTIVE_BINS)
nenolod
parents:
578
diff
changeset
|
197 $(OBJECTIVE_BINS): $(OBJECTS) |
1322
dfa4ef2e8c79
[svn] - avoid system /bin/test in Makefiles as it may not behave as expected
nenolod
parents:
1219
diff
changeset
|
198 if [ "x$(OBJECTS)" != "x" ]; then \ |
870 | 199 $(MAKE) $(OBJECTS) || exit; \ |
626
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
200 printf "%10s %-20s\n" LINK $@; \ |
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
201 $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBADD); \ |
eb0c533e7c48
[svn] do not forkbomb if we have a malformed makefile
nenolod
parents:
595
diff
changeset
|
202 fi |
579
785ec2ad4ea4
[svn] try to add a "default" make rule for $(OBJECTIVE_BINS)
nenolod
parents:
578
diff
changeset
|
203 |
563
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
204 clean-prehook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
205 clean-posthook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
206 build-prehook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
207 build-posthook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
208 install-prehook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
209 install-posthook: |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
210 |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
211 # compatibility with automake follows |
0879e7ad85b1
[svn] some buildsystem changes... nothing notable yet
nenolod
parents:
562
diff
changeset
|
212 am--refresh: |
1209 | 213 |
214 mk/rules.mk: | |
215 @if [ -f "configure" ]; then \ | |
216 echo "[building rules.mk for posix target, run configure manually if you do not want this]"; \ | |
1219 | 217 sh configure $(CONFIG_OPTS); \ |
1209 | 218 echo "[complete]"; \ |
219 fi | |
220 |