]>
Commit | Line | Data |
---|---|---|
066427d0 AL |
1 | # -*- make -*- |
2 | ||
3 | # This is the build directory make file, it sets the build directory | |
4 | # and runs the src makefile. | |
53da8d70 | 5 | ifndef NOISY |
faf4e30c | 6 | .SILENT: |
53da8d70 | 7 | endif |
8484ee17 | 8 | include environment.mak |
066427d0 AL |
9 | |
10 | SRCDIR=@top_srcdir@ | |
066427d0 AL |
11 | BUILD:=$(shell pwd) |
12 | export BUILD | |
13 | ||
14 | # Chain to the parent make to do the actual building | |
f00ce0ae AL |
15 | .PHONY: headers library clean veryclean all binary program doc \ |
16 | veryclean/local | |
6322370b AL |
17 | all headers library clean veryclean binary program doc: |
18 | $(MAKE) -C $(SRCDIR) -f Makefile $@ | |
f00ce0ae AL |
19 | |
20 | # Purge everything. | |
21 | .PHONY: maintainer-clean dist-clean pristine sanity distclean | |
22 | maintainer-clean dist-clean pristine sanity distclean: | |
23 | -rm -rf $(DIRS) | |
4ae405e9 | 24 | -rm -f config.cache config.log config.status environment.*mak makefile |
066427d0 | 25 | |
b2e465d6 AL |
26 | # Create the required directories and build the shims |
27 | # The configure script fills in below, and then we do the right things.. | |
28 | # This cannot go in the configure script since the directories have not yet | |
29 | # been created.. In any event I like the idea that you can change environment.mak | |
30 | # and run make dirs and have the shims updated. | |
066427d0 | 31 | .PHONY: dirs |
b2e465d6 AL |
32 | dirs: |
33 | $(MAKE) -C $(SRCDIR) -f Makefile $@ | |
8484ee17 | 34 | ifeq ($(HAVE_C9X),yes) |
101030ab | 35 | @rm -f include/inttypes.h > /dev/null 2>&1 |
51761e5e | 36 | else |
f58a97d3 | 37 | @cp -p $(SRCDIR)/buildlib/inttypes.h.in include/inttypes.h |
51761e5e | 38 | endif |
101030ab AL |
39 | ifeq ($(HAVE_STATVFS),yes) |
40 | @rm -f include/statvfs.h > /dev/null 2>&1 | |
41 | else | |
f58a97d3 | 42 | @cp -p $(SRCDIR)/buildlib/statvfs.h.in include/statvfs.h |
101030ab AL |
43 | ln -sf . include/sys |
44 | endif | |
1cecba4d AL |
45 | ifeq ($(NEED_SOCKLEN_T_DEFINE),yes) |
46 | @cp -p $(SRCDIR)/buildlib/netdb.h.in include/netdb.h | |
47 | else | |
48 | @rm -f include/netdb.h > /dev/null 2>&1 | |
49 | endif | |
b2e465d6 AL |
50 | rm -f include/python |
51 | ln -sf $(PYTHONINCLUDE) include/python |