3 BMCO_CPPFLAGS=`xml2-config --cflags` `wx-config --cxxflags` -std=c++11 @DBGOUT@ -I./common
4 CPPFLAGS=`xml2-config --cflags` `wx-config --cxxflags` -std=c++11 @DBGOUT@ -I./common
5 BMCO_CPPLIBS=`wx-config --libs` `curl-config --libs` -lxml2
6 CPPLIBS=`wx-config --libs` `curl-config --libs` -lxml2 -Llibraries -lCalendarDataStorage -lsqlite3
14 BMCO_HELP=tools/bitmapcode.helper
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 common/svrblist.o
22 FORM_MAINOBJS=forms/main/frmMain.o forms/main/frmMain-Window.o
23 FORM_UPDATEOBJS=forms/update/frmUpdate.o
24 FORM_EDITACCOUNTOBJS=forms/editaccount/frmEditAccount.o
25 FORM_NEWACCOUNTOBJS=forms/newaccount/frmNewAccount.o
26 FORM_CALENDAREDITOROBJS=forms/calendareditor/frmCalendarEditor.o
27 FORM_EVENTEDITOROBJS=forms/eventeditor/frmEventEditor.o
28 FORM_PREFERENCESOBJS=forms/preferences/frmPreferences.o
29 FORM_ABOUTOBJS=forms/about/frmAbout.o
30 WIDGETSOBJS=widgets/XCCalendarCtrl.o widgets/XCCalendarDay.o \
31 widgets/XCCalendarDayEntry.o widgets/XCCalendarMonthView.o \
32 widgets/XCCalendarMonthViewDayTitle.o \
33 widgets/XCCalendarManipulator.o \
34 widgets/XCCalendarMonthSelect.o \
35 widgets/XCCalendarList.o \
36 widgets/XCCalendarListAccountCtrl.o \
37 widgets/XCCalendarListCalendarCtrl.o \
38 widgets/XCCalendarMenu.o \
40 CALENDARLISTOBJS=objects/calendarlist/CalendarList.o
41 CALENDAROBJS=objects/calendarobject/CalendarObject-Save.o \
42 objects/calendarobject/CalendarObject.o
43 CALENDAREVENTOBJS=objects/calendarevent/CalendarEvent-Save.o \
44 objects/calendarevent/CalendarEvent.o
45 CDSOBJS=libraries/CalendarDataStorage/CalendarDataStorage.o
49 $(MAKE) calendardatastorage
52 forms: form_mainobjs form_editaccountobjs form_newaccountobjs \
53 form_preferencesobjs form_aboutobjs form_updateobjs \
54 form_calendareditorobjs form_eventeditorobjs
56 xestiacal: mainobjs forms widgetsobjs commonobjs calendarlistobjs calendarobjs calendareventobjs
57 $(CPP) -Os $(MAINOBJS) $(FORM_MAINOBJS) $(FORM_PREFERENCESOBJS) \
58 $(FORM_ABOUTOBJS) $(FORM_UPDATEOBJS) $(FORM_EDITACCOUNTOBJS) \
59 $(FORM_NEWACCOUNTOBJS) $(FORM_CALENDAREDITOROBJS) \
60 $(FORM_EVENTEDITOROBJS) \
61 $(WIDGETSOBJS) $(COMMONOBJS) $(CALENDARLISTOBJS) $(CALENDAROBJS) \
62 $(CALENDAREVENTOBJS) \
63 -o $(XCAL_OUT) $(CPPLIBS)
65 bitmaphelperobjs: $(BMCOOBJS)
67 bitmaphelper: bitmaphelperobjs
68 $(CPP) $(BMCO_CPPFLAGS) $(BMCOOBJS) -o $(BMCO_HELP) $(BMCO_CPPLIBS)
72 find . -name "*.o" -type f -delete
73 find . -name "*.a" -type f -delete
75 $(RM) -f tools/bitmapcode.helper
79 find bitmaps -name "*.cpp" -type f -delete
80 find bitmaps -name "*.h" -type f -delete
82 $(RM) -f tests/Makefile
86 form_mainobjs: $(FORM_MAINOBJS)
88 form_updateobjs: $(FORM_UPDATEOBJS)
90 form_editaccountobjs: $(FORM_EDITACCOUNTOBJS)
92 form_newaccountobjs: $(FORM_NEWACCOUNTOBJS)
94 form_calendareditorobjs: $(FORM_CALENDAREDITOROBJS)
96 form_eventeditorobjs: $(FORM_EVENTEDITOROBJS)
98 form_preferencesobjs: $(FORM_PREFERENCESOBJS)
100 form_aboutobjs: $(FORM_ABOUTOBJS)
102 widgetsobjs: $(WIDGETSOBJS)
104 commonobjs: $(COMMONOBJS)
106 calendarlistobjs: $(CALENDARLISTOBJS)
108 calendarobjs: $(CALENDAROBJS)
110 calendareventobjs: $(CALENDAREVENTOBJS)
113 g++ -c @DBGOUT@ --std=c++11 libraries/CalendarDataStorage/CalendarDataStorage.cpp -o libraries/CalendarDataStorage/CalendarDataStorage.o -lsqlite3
114 ar rcs libraries/libCalendarDataStorage.a libraries/CalendarDataStorage/CalendarDataStorage.o
118 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