1 # This top-level makefile will automatically build a copy of wvstreams using
2 # the versions of xplc and openssl in wvports.
4 SUBDIRS
=retchmail wvdial wvstreams wvtftp
6 .PHONY
: default
clean mrclean
check FORCE
$(SUBDIRS
)
9 ifeq "$(shell uname -s)" "Darwin"
11 update_lib
:=$(warning FIXME
: I don
't know how to generate symlinks for shared libraries.)
14 update_lib=PATH=${PATH}:/sbin ldconfig -N lib
19 @echo "--> Making $(if $2,$2 in )$(if $1,$1,$@)..."
20 @$(MAKE) -C $(if $1,$1,$@) --no-print-directory $3 $2
23 include wvports/subdir.mk
25 export LD_LIBRARY_PATH:=$(PWD)/lib:$(LD_LIBRARY_PATH)
26 export PKG_CONFIG_PATH:=$(PWD)/wvstreams/pkgconfig:$(PWD)/wvports/xplc/build/xplc/dist:$(PKG_CONFIG_PATH)
28 clean: $(addsuffix /clean,$(SUBDIRS))
31 $(call make_subdir,$*,clean)
33 mrclean: clean wvports/clean
34 $(call make_subdir,wvstreams,realclean)
36 check: $(addsuffix /check,wvstreams)
39 $(call make_subdir,$*,test)
42 $(error These projects are PHP, go do something sensible instead!)
45 $(error I don't think I
'll ever be smart enough to build this.)
48 ln -sf ../wvver.h ../wvstreams/wvrules.mk $@
52 $(error I don't know
(yet
!) how to build
$@...
)
55 $(error I don
't know (yet!) how to build $@...)
58 $(error I don't know
(yet
!) how to build
$@...
)
61 $(error I don
't know (yet!) how to build $@...)
64 ln -sf ../wvver.h ../wvstreams/wvrules.mk $@
67 wvstreams: wvports/openssl wvports/xplc
71 $(error I don't know
(yet
!) how to build
$@...
)
78 $(error I don
't know (yet!) how to build $@...)
81 $(error I don't know
(yet
!) how to build
$@...
)