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