Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
frmEditAccount: Moved code to forms/editaccount
[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_UPDATEOBJS=forms/update/frmUpdate.o
24 FORM_PREFERENCESOBJS=forms/preferences/frmPreferences.o
25 FORM_ABOUTOBJS=forms/about/frmAbout.o
26 WIDGETSOBJS=widgets/XCCalendarCtrl.o widgets/XCCalendarDay.o \
27  widgets/XCCalendarDayEntry.o widgets/XCCalendarMonthView.o \
28  widgets/XCCalendarMonthViewDayTitle.o \
29  widgets/XCCalendarManipulator.o \
30  widgets/XCCalendarMonthSelect.o \
31  widgets/XCCalendarList.o \
32  widgets/XCCalendarListAccountCtrl.o \
33  widgets/XCCalendarListCalendarCtrl.o
34 CALENDARLISTOBJS=objects/calendarlist/CalendarList.o
35 CALENDAROBJS=objects/calendarobject/CalendarObject-Save.o \
36  objects/calendarobject/CalendarObject.o
37 CALENDAREVENTOBJS=objects/calendarevent/CalendarEvent-Save.o \
38  objects/calendarevent/CalendarEvent.o
39 CDSOBJS=libraries/CalendarDataStorage/CalendarDataStorage.o
41 default:
42         $(MAKE) bitmaphelper
43         $(MAKE) calendardatastorage
44         $(MAKE) xestiacal
46 forms: form_mainobjs form_preferencesobjs form_aboutobjs form_updateobjs
48 xestiacal: mainobjs forms widgetsobjs commonobjs calendarlistobjs calendarobjs calendareventobjs
49         $(CPP) -Os $(MAINOBJS) $(FORM_MAINOBJS) $(FORM_PREFERENCESOBJS) \
50         $(FORM_ABOUTOBJS) $(FORM_UPDATEOBJS) $(WIDGETSOBJS) $(COMMONOBJS) \
51         $(CALENDARLISTOBJS) $(CALENDAROBJS) $(CALENDAREVENTOBJS) \
52         -o $(XCAL_OUT) $(CPPLIBS)
54 bitmaphelperobjs: $(BMCOOBJS)
56 bitmaphelper: bitmaphelperobjs
57         $(CPP) $(BMCO_CPPFLAGS) $(BMCOOBJS) -o $(BMCO_HELP) $(BMCO_CPPLIBS)
58         $(BMCO_HELP) bitmaps/
59         
60 clean:
61         find . -name "*.o" -type f -delete
62         find . -name "*.a" -type f -delete
63         $(RM) -f ./xestiacal
64         
65 mainobjs: $(MAINOBJS)
67 form_mainobjs: $(FORM_MAINOBJS)
69 form_updateobjs: $(FORM_UPDATEOBJS)
71 form_preferencesobjs: $(FORM_PREFERENCESOBJS)
73 form_aboutobjs: $(FORM_ABOUTOBJS)
75 widgetsobjs: $(WIDGETSOBJS)
76         
77 commonobjs: $(COMMONOBJS)
79 calendarlistobjs: $(CALENDARLISTOBJS)
81 calendarobjs: $(CALENDAROBJS)
83 calendareventobjs: $(CALENDAREVENTOBJS)
85 calendardatastorage: 
86         g++ -c -ggdb --std=c++11 libraries/CalendarDataStorage/CalendarDataStorage.cpp -o libraries/CalendarDataStorage/CalendarDataStorage.o -lsqlite3
87         ar rcs libraries/libCalendarDataStorage.a libraries/CalendarDataStorage/CalendarDataStorage.o
89 test:
90         cd tests
91         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
92         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