Fix formatting of a debug message in wvx509. Remove some printfs from wvcrl.
[wvapps.git] / Makefile
blob24132bd04b80040043336a734795d7d15a5d73ef
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)
7 default: $(SUBDIRS)
9 ifeq "$(shell uname -s)" "Darwin"
10 DLLEXT=dylib
11 update_lib:=$(warning FIXME: I don't know how to generate symlinks for shared libraries.)
12 else
13 DLLEXT=so
14 update_lib=PATH=${PATH}:/sbin ldconfig -N lib
15 endif
17 define make_subdir
18 @echo
19 @echo "--> Making $(if $2,$2 in )$(if $1,$1,$@)..."
20 @$(MAKE) -C $(if $1,$1,$@) --no-print-directory $3 $2
21 endef
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))
30 %/clean: FORCE
31 $(call make_subdir,$*,clean)
33 mrclean: clean wvports/clean
34 $(call make_subdir,wvstreams,realclean)
36 check: $(addsuffix /check,wvstreams)
38 %/check: % FORCE
39 $(call make_subdir,$*,test)
41 nitlog planit:
42 $(error These projects are PHP, go do something sensible instead!)
44 replytolist:
45 $(error I don't think I'll ever be smart enough to build this.)
47 retchmail: wvstreams
48 ln -sf ../wvver.h ../wvstreams/wvrules.mk $@
49 $(call make_subdir)
51 schedulator:
52 $(error I don't know (yet!) how to build $@...)
54 twc: wvstreams
55 $(error I don't know (yet!) how to build $@...)
57 unikonf:
58 $(error I don't know (yet!) how to build $@...)
60 unity:
61 $(error I don't know (yet!) how to build $@...)
63 wvdial: wvstreams
64 ln -sf ../wvver.h ../wvstreams/wvrules.mk $@
65 $(call make_subdir)
67 wvstreams: wvports/openssl wvports/xplc
68 $(call make_subdir)
70 wvsync: wvstreams
71 $(error I don't know (yet!) how to build $@...)
73 wvtftp: wvstreams
74 cd $@ && cmake .
75 $(call make_subdir)
77 xplcidl:
78 $(error I don't know (yet!) how to build $@...)
80 zen:
81 $(error I don't know (yet!) how to build $@...)