Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
frmUpdate: Implemented code from Xestia Address Book
[xestiacalendar/.git] / source / Makefile
1 CPP=g++
2 STRIP=strip
3 BMCO_CPPFLAGS=`xml2-config --cflags` `wx-config --cxxflags` -std=c++11 -Os -I./common -ggdb
4 CPPFLAGS=`xml2-config --cflags` `wx-config --cxxflags` -std=c++11 -Os -I./common -ggdb
5 BMCO_CPPLIBS=`wx-config --libs` `curl-config --libs` -lxml2
6 CPPLIBS=`wx-config --libs` `curl-config --libs` -lxml2 -Llibraries -lCalendarDataStorage -lsqlite3
7 CDSLIBS=-lsqlite3
8 MAKE=make
9 RM=rm
11 DEBUG=false
12 XCAL_OUT=xestiacal
14 BMCO_HELP=tools/bitmapcode.helper
15 BMCO_DIR=../bitmaps
17 MAINOBJS=main.o AppXestiaCalendar.o
18 BMCOOBJS=tools/bitmapcode.o
19 COMMONOBJS=common/monthviewgen.o common/file.o common/text.o \
20  common/uuid.o common/preferences.o common/dirs.o common/defaults.o \
21  common/random.o
22 FORM_MAINOBJS=forms/main/frmMain.o
23 FORM_PREFERENCESOBJS=forms/preferences/frmPreferences.o
24 FORM_ABOUTOBJS=forms/about/frmAbout.o
25 WIDGETSOBJS=widgets/XCCalendarCtrl.o widgets/XCCalendarDay.o \
26  widgets/XCCalendarDayEntry.o widgets/XCCalendarMonthView.o \
27  widgets/XCCalendarMonthViewDayTitle.o \
28  widgets/XCCalendarManipulator.o \
29  widgets/XCCalendarMonthSelect.o \
30  widgets/XCCalendarList.o \
31  widgets/XCCalendarListAccountCtrl.o \
32  widgets/XCCalendarListCalendarCtrl.o
33 CALENDARLISTOBJS=objects/calendarlist/CalendarList.o
34 CALENDAROBJS=objects/calendarobject/CalendarObject-Save.o \
35  objects/calendarobject/CalendarObject.o
36 CALENDAREVENTOBJS=objects/calendarevent/CalendarEvent-Save.o \
37  objects/calendarevent/CalendarEvent.o
38 CDSOBJS=libraries/CalendarDataStorage/CalendarDataStorage.o
40 default:
41         $(MAKE) bitmaphelper
42         $(MAKE) calendardatastorage
43         $(MAKE) xestiacal
45 forms: form_mainobjs form_preferencesobjs form_aboutobjs
47 xestiacal: mainobjs forms widgetsobjs commonobjs calendarlistobjs calendarobjs calendareventobjs
48         $(CPP) -Os $(MAINOBJS) $(FORM_MAINOBJS) $(FORM_PREFERENCESOBJS) \
49         $(FORM_ABOUTOBJS) $(WIDGETSOBJS) $(COMMONOBJS) $(CALENDARLISTOBJS) \
50         $(CALENDAROBJS) $(CALENDAREVENTOBJS) \
51         -o $(XCAL_OUT) $(CPPLIBS)
53 bitmaphelperobjs: $(BMCOOBJS)
55 bitmaphelper: bitmaphelperobjs
56         $(CPP) $(BMCO_CPPFLAGS) $(BMCOOBJS) -o $(BMCO_HELP) $(BMCO_CPPLIBS)
57         $(BMCO_HELP) bitmaps/
58         
59 clean:
60         find . -name "*.o" -type f -delete
61         find . -name "*.a" -type f -delete
62         $(RM) -f ./xestiacal
63         
64 mainobjs: $(MAINOBJS)
66 form_mainobjs: $(FORM_MAINOBJS)
68 form_preferencesobjs: $(FORM_PREFERENCESOBJS)
70 form_aboutobjs: $(FORM_ABOUTOBJS)
72 widgetsobjs: $(WIDGETSOBJS)
73         
74 commonobjs: $(COMMONOBJS)
76 calendarlistobjs: $(CALENDARLISTOBJS)
78 calendarobjs: $(CALENDAROBJS)
80 calendareventobjs: $(CALENDAREVENTOBJS)
82 calendardatastorage: 
83         g++ -c -ggdb --std=c++11 libraries/CalendarDataStorage/CalendarDataStorage.cpp -o libraries/CalendarDataStorage/CalendarDataStorage.o -lsqlite3
84         ar rcs libraries/libCalendarDataStorage.a libraries/CalendarDataStorage/CalendarDataStorage.o
86 test:
87         cd tests
88         g++ `xml2-config --cflags --libs` -ggdb --std=c++11 -lcurl -lgtest -pthread xestiacalendar_test.cpp xestiacalendar_testcommon.cpp ../objects/calendarevent/CalendarEvent.cpp ../objects/calendartask/CalendarTask.cpp ../objects/calendarjournal/CalendarJournal.cpp ../objects/calendarfreebusy/CalendarFreeBusy.cpp ../objects/calendartimezone/CalendarTimezone.cpp ../objects/calendarobject/CalendarObject.cpp ../common/file.cpp ../common/text.cpp ../objects/CalDAV/CalDAV.cpp ../objects/CalDAV/CalDAV-XMLProcessing.cpp -o xestiacalendar_test
89         cd ..
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy