root / Mulberry / trunk / Makefile-Linux

Revision 64, 1.7 kB (checked in by daboo, 1 year ago)

Rename Makefile to a linux specific one, so we can have ones specific
to the other OS's as well.

Line 
1DEV_HOME := .
2MULBERRY_HOME := ${DEV_HOME}/Mulberry
3JX_HOME := ${DEV_HOME}/JX
4LIBRARIES_HOME := ${DEV_HOME}/Libraries
5
6SVN_ROOT := http://svn.mulberrymail.com
7SVN_MULBERRY := ${SVN_ROOT}/mulberry
8SVN_LIBRARIES := ${SVN_ROOT}/repos
9
10jxsrc:
11        svn checkout ${SVN_MULBERRY}/JX/trunk JX
12
13librariessrc:
14        (mkdir ${LIBRARIES_HOME}; \
15         cd ${LIBRARIES_HOME}; \
16         svn checkout ${SVN_LIBRARIES}/CICalendar/trunk CICalendar; \
17         svn checkout ${SVN_LIBRARIES}/XMLLib/trunk XMLLib)
18
19mulberrysrc:
20        svn checkout ${SVN_MULBERRY}/Mulberry/trunk Mulberry
21
22jxinit:
23        (cd ${JX_HOME}/include; \
24         ln -s ../libjcore/code jcore; \
25         ln -s ../libjx/code jx; \
26         ln -s ../libjx/image jximage; \
27         ln -s ../libjx/strings jxstrings)
28        (cd ${JX_HOME}/lib; \
29         ln -s ../ACE/ACE_wrappers/ace/libACE.a libACE-5_4_7.a; \
30         ln -s ../ACE/ACE_wrappers/ace/libACE.so libACE-5_4_7.so; \
31         ln -s ../ACE/ACE_wrappers/ace/libACE.so.5.4.7 libACE.so.5.4.7; \
32         ln -s ../libjcore/libjcore-2_5_0.a libjcore-2_5_0.a; \
33         ln -s ../libjcore/libjcore-2_5_0.so libjcore-2_5_0.so; \
34         ln -s ../libjx/libjx-2_5_0.a libjx-2_5_0.a; \
35         ln -s ../libjx/libjx-2_5_0.so libjx-2_5_0.so)
36        touch ${JX_HOME}/ACE/ACE_wrappers/ace/Svc_Conf_l.cpp
37
38mulberryinit:
39        (cd ${MULBERRY_HOME}/Linux; ./links.sh; makemake)
40
41updatejx:
42        (cd ${JX_HOME}; svn update)
43
44buildjx:
45        (cd ${JX_HOME}; ./build)
46
47updatemulberry:
48        (cd ${MULBERRY_HOME}/Build; ${MAKE} svn)
49
50buildmulberry:
51        (cd ${MULBERRY_HOME}/Build; ${MAKE} static)
52
53install:
54        (cd ${MULBERRY_HOME}/Build; ${MAKE} install)
55       
56init: jxsrc librariessrc mulberrysrc jxinit mulberryinit
57
58build: buildjx buildmulberry
59
60update: updatejx updatemulberry
61
62runit:
63        (cd ${MULBERRY_HOME}/Linux; ./mulberry &)
64
65run: update build runit
66
67all: init build install
Note: See TracBrowser for help on using the browser.