1 # This top-level makefile will automatically build a copy of wvstreams using
2 # the versions of xplc and openssl in wvports.
6 SUBDIRS
=retchmail wvdial wvstreams wvtftp
8 .PHONY
: default
clean mrclean
check FORCE
$(SUBDIRS
)
11 ifeq ($(WV_BUILD_MINGW
),1)
15 ifeq "$(shell uname -s)" "Darwin"
17 update_lib
:=$(warning FIXME
: I don
't know how to generate symlinks for shared libraries.)
20 update_lib=PATH=${PATH}:/sbin ldconfig -N lib
26 @echo "--> Making $(if $2,$2 in )$(if $1,$1,$@)..."
27 @+$(MAKE) -C $(if $1,$1,$@) --no-print-directory $3 $2
30 include wvports/subdir.mk
32 export LD_LIBRARY_PATH:=$(PWD)/lib:$(LD_LIBRARY_PATH)
33 export PKG_CONFIG_PATH:=$(PWD)/wvstreams/pkgconfig:$(PWD)/wvports/xplc/build/xplc/dist:$(PKG_CONFIG_PATH)
34 export WVSTREAMS:=$(PWD)/wvstreams
36 clean: $(addsuffix /clean,$(SUBDIRS))
39 $(call make_subdir,$*,clean)
41 mrclean: clean wvports/clean
42 $(call make_subdir,wvstreams,realclean)
44 check: $(addsuffix /check,wvstreams)
47 $(call make_subdir,$*,test)
50 $(error These projects are PHP, go do something sensible instead!)
53 $(error I don't think I
'll ever be smart enough to build this.)
56 ln -sf ../wvver.h ../wvstreams/wvrules.mk $@
60 $(error I don't know
(yet
!) how to build
$@...
)
63 $(error I don
't know (yet!) how to build $@...)
66 $(error I don't know
(yet
!) how to build
$@...
)
69 $(error I don
't know (yet!) how to build $@...)
72 ln -sf ../wvver.h ../wvstreams/wvrules.mk $@
75 wvstreams: wvports/openssl wvports/xplc wvports/dbus
76 ifeq ($(WV_BUILD_MINGW),1)
77 $(MAKE) -C wvstreams -f Makefile-win32
83 $(error I don't know
(yet
!) how to build
$@...
)
90 $(error I don
't know (yet!) how to build $@...)
93 $(error I don't know
(yet
!) how to build
$@...
)