Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added initial Makefile
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 16 Nov 2016 22:26:37 +0000 (22:26 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 16 Nov 2016 22:26:37 +0000 (22:26 +0000)
source/Makefile [new file with mode: 0644]

diff --git a/source/Makefile b/source/Makefile
new file mode 100644 (file)
index 0000000..42e9c68
--- /dev/null
@@ -0,0 +1,42 @@
+CPP=g++
+STRIP=strip
+CPPFLAGS=`xml2-config --cflags` `wx-config --cxxflags` -std=c++11 -Os
+CPPLIBS=`wx-config --libs` `curl-config --libs` -lxml2
+MAKE=make
+RM=rm
+
+DEBUG=false
+XCAL_OUT=xestiacal
+
+BMCO_HELP=tools/bitmapcode.helper
+BMCO_DIR=../bitmaps
+
+MAINOBJS=main.o AppXestiaCalendar.o
+BMCOOBJS=tools/bitmapcode.o
+FORM_MAINOBJS=forms/main/frmMain.o
+
+default:
+       $(MAKE) bitmaphelper
+       $(MAKE) xestiacal
+
+xestiacal: mainobjs form_mainobjs
+       $(CPP) -Os $(MAINOBJS) $(FORM_MAINOBJS) \
+       -o $(XCAL_OUT) $(CPPLIBS)
+
+bitmaphelperobjs: $(BMCOOBJS)
+
+bitmaphelper: bitmaphelperobjs
+       $(CPP) $(CPPFLAGS) $(BMCOOBJS) -o $(BMCO_HELP) $(CPPLIBS)
+       $(BMCO_HELP) bitmaps/
+       
+clean:
+       $(RM) -rf *.o
+       
+mainobjs: $(MAINOBJS)
+
+form_mainobjs: $(FORM_MAINOBJS)
+       
+test:
+       cd tests
+       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
+       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