Merged in everything from the dbus-win32 branch using this command:
[wvapps.git] / Makefile
blob77a8608556f8212dda94699cee1648009d0d315d
1 # This top-level makefile will automatically build a copy of wvstreams using
2 # the versions of xplc and openssl in wvports.
4 include config.mk
6 SUBDIRS=retchmail wvdial wvstreams wvtftp
8 .PHONY: default clean mrclean check FORCE $(SUBDIRS)
9 default: $(SUBDIRS)
11 ifeq ($(WV_BUILD_MINGW),1)
12 DLLEXT=a
13 update_lib:=true
14 else
15 ifeq "$(shell uname -s)" "Darwin"
16 DLLEXT=dylib
17 update_lib:=$(warning FIXME: I don't know how to generate symlinks for shared libraries.)
18 else
19 DLLEXT=so
20 update_lib=PATH=${PATH}:/sbin ldconfig -N lib
21 endif
22 endif
24 define make_subdir
25 @echo
26 @echo "--> Making $(if $2,$2 in )$(if $1,$1,$@)..."
27 @+$(MAKE) -C $(if $1,$1,$@) --no-print-directory $3 $2
28 endef
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))
38 %/clean: FORCE
39 $(call make_subdir,$*,clean)
41 mrclean: clean wvports/clean
42 $(call make_subdir,wvstreams,realclean)
44 check: $(addsuffix /check,wvstreams)
46 %/check: % FORCE
47 $(call make_subdir,$*,test)
49 nitlog planit:
50 $(error These projects are PHP, go do something sensible instead!)
52 replytolist:
53 $(error I don't think I'll ever be smart enough to build this.)
55 retchmail: wvstreams
56 ln -sf ../wvver.h ../wvstreams/wvrules.mk $@
57 $(call make_subdir)
59 schedulator:
60 $(error I don't know (yet!) how to build $@...)
62 twc: wvstreams
63 $(error I don't know (yet!) how to build $@...)
65 unikonf:
66 $(error I don't know (yet!) how to build $@...)
68 unity:
69 $(error I don't know (yet!) how to build $@...)
71 wvdial: wvstreams
72 ln -sf ../wvver.h ../wvstreams/wvrules.mk $@
73 $(call make_subdir)
75 wvstreams: wvports/openssl wvports/xplc wvports/dbus
76 ifeq ($(WV_BUILD_MINGW),1)
77 $(MAKE) -C wvstreams -f Makefile-win32
78 else
79 $(call make_subdir)
80 endif
82 wvsync: wvstreams
83 $(error I don't know (yet!) how to build $@...)
85 wvtftp: wvstreams
86 cd $@ && cmake .
87 $(call make_subdir)
89 xplcidl:
90 $(error I don't know (yet!) how to build $@...)
92 zen:
93 $(error I don't know (yet!) how to build $@...)