Mercurial > audlegacy
comparison mk/objective.mk @ 1615:e402e0217870 trunk
[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.
author | yaz |
---|---|
date | Mon, 04 Sep 2006 19:47:32 -0700 |
parents | 43547cd5e74e |
children | 79891e2fd8a5 |
comparison
equal
deleted
inserted
replaced
1614:9b4678a2efc9 | 1615:e402e0217870 |
---|---|
1 # Shut up GNU make | |
2 .SILENT: | |
3 | |
4 OBJECTIVE_DIRECTORIES = | |
5 OBJECTIVE_LIBS = | |
6 OBJECTIVE_LIBS_NOINST = | |
7 OBJECTIVE_BINS = | |
8 OBJECTIVE_DATA = | |
9 SUBDIRS = | |
10 HEADERS = | |
11 V = 0 | |
12 VERBOSE ?= $(V) | |
13 VERBOSITY = 0 | |
14 SHOW_CFLAGS ?= $(VERBOSE) | |
15 | |
16 LIBDIR = $(libdir) | |
17 BINDIR = $(bindir) | |
18 INCLUDEDIR = $(pkgincludedir) | |
19 CFLAGS += -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/pkg/xorg/include | |
20 CXXFLAGS += -DHAVE_CONFIG_H -I/usr/pkg/include -I/usr/pkg/xorg/include | |
21 | |
22 default: all | 1 default: all |
23 all: build | 2 all: build |
24 | 3 |
25 install: build | 4 install: build |
26 $(MAKE) install-prehook | 5 $(MAKE) install-prehook |
194 else \ | 173 else \ |
195 printf "%10s %-20s\n" CXX $<; \ | 174 printf "%10s %-20s\n" CXX $<; \ |
196 fi; | 175 fi; |
197 $(CXX) $(CXXFLAGS) -c $< -o $@ | 176 $(CXX) $(CXXFLAGS) -c $< -o $@ |
198 | 177 |
199 %.so $(OBJECTIVE_LIBS): $(OBJECTS) | 178 $(OBJECTIVE_LIBS): $(OBJECTS) |
200 if [ "x$(OBJECTS)" != "x" ]; then \ | 179 if [ "x$(OBJECTS)" != "x" ]; then \ |
201 $(MAKE) $(OBJECTS) || exit; \ | 180 $(MAKE) $(OBJECTS) || exit; \ |
202 printf "%10s %-20s\n" LINK $@; \ | 181 printf "%10s %-20s\n" LINK $@; \ |
203 (if [ "x$(OBJECTIVE_SONAME_SUFFIX)" != "x" ]; then \ | 182 (if [ "x$(OBJECTIVE_SONAME_SUFFIX)" != "x" ]; then \ |
204 $(CC) -fPIC -DPIC -shared -o $@ -Wl,-soname=$@.$(OBJECTIVE_SONAME_SUFFIX) $(OBJECTS) $(LDFLAGS) $(LIBADD); \ | 183 $(CC) -fPIC -DPIC -shared -o $@ -Wl,-soname=$@.$(OBJECTIVE_SONAME_SUFFIX) $(OBJECTS) $(LDFLAGS) $(LIBADD); \ |