KissCount

KissCount Commit Details

Date:2014-10-23 21:06:27 (5 years 8 months ago)
Author:Grégory Soutadé
Branch:dev, master, qt5
Commit:899dc3db719658cdde40cc148e2ee1538f811143
Parents: 2cea83f22b536b337a6a0a40e537d1380489b76e
Message:Update Makefile for WIN32 and copyright date

Changes:
MMakefile (5 diffs)
Msrc/view/wxUI.cpp (1 diff)

File differences

Makefile
44
55
66
7
8
9
710
811
9
12
1013
1114
1215
13
16
1417
1518
1619
1720
18
19
20
21
22
23
24
2521
2622
2723
......
3834
3935
4036
41
37
38
39
40
41
42
43
44
4245
4346
4447
......
4750
4851
4952
50
53
5154
5255
5356
......
6366
6467
6568
66
69
6770
6871
6972
......
9295
9396
9497
95
98
9699
97100
98101
DOC_DIR=$(DESTDIR)$(ROOT_DIR)"/share/doc/kisscount/"
BIN_DIR=$(DESTDIR)$(ROOT_DIR)"/bin/"
CXX=$(HOST)g++
KISSCOUNT=kc
QT_PACKAGES="QtCore QtGui QtSql QtXml"
CXXFLAGS+=`pkg-config --cflags $(QT_PACKAGES)`
CXXFLAGS+=-Wall -Isrc -Isrc/win32 -ggdb -fPIC
CXXFLAGS+=-Wall -Isrc -Isrc/win32
ifdef WIN32
CXXFLAGS+=-DRESSOURCES_ROOT="\"./ressources/\""
else
CXXFLAGS+=-DRESSOURCES_ROOT="\"$(SHARE_DIR)\""
CXXFLAGS+=-DRESSOURCES_ROOT="\"$(SHARE_DIR)\"" -ggdb -fPIC
# For developpers
#CXXFLAGS+=-DRESSOURCES_ROOT="\"./ressources/\""
endif
LDFLAGS+=`pkg-config --libs $(QT_PACKAGES)`
ifndef WIN32
LDFLAGS+=-lofx
endif
CXX=$(HOST)g++
SOURCES=$(shell find src -name '*.cpp' -type f | tr '\n' ' ')
OBJS=$(SOURCES:.cpp=.o)
MOC_HEADERS=$(shell find src/view -name '*.hpp' -type f | tr '\n' ' ')
KDCHART_MOCS_OBJS=$(KDCHART_MOC_HEADERS:.h=.moc)
LDFLAGS+=lib/libkdchart.a
all: mojito lib/libkdchart.a kc
ifndef WIN32
LDFLAGS+=`pkg-config --libs $(QT_PACKAGES)`
LDFLAGS+=-lofx
else
LDFLAGS+=lib/QtCore4.dll lib/QtGui4.dll lib/QtSql4.dll lib/QtXml4.dll
endif
all: mojito lib/libkdchart.a $(KISSCOUNT)
clean_all: clean clean_libkdchart
find src -type f -name '*~' -delete
find src -type f -name '*.moc' -delete
find src -type f -name '*.objs' -delete
rm -f kc
rm -f $(KISSCOUNT)
%.o : %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
mojito : $(MOCS_OBJS) $(KDCHART_MOCS_OBJS)
kc: $(MOCS) $(OBJS)
$(KISSCOUNT): $(MOCS) $(OBJS)
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
$(UI_CHARTSELECTOR): lib/libkdchart/src/KDChartDatasetSelector.ui
install:
mkdir -p $(BIN_DIR) $(SHARE_DIR) $(DOC_DIR)
cp kc $(BIN_DIR)
cp $(KISSCOUNT) $(BIN_DIR)
cp -rf ressources/* $(SHARE_DIR)
rm -rf $(SHARE_DIR)/po/* # Only copy qm files
cp -rf ressources/po/*.qm $(SHARE_DIR)/po/
src/view/wxUI.cpp
314314
315315
316316
317
317
318318
319319
320320
void wxUI::OnButtonAbout()
{
QMessageBox::information(0, "KissCount " APP_VERSION, _("Personal accounting software") + "\n\nhttp://indefero.soutade.fr/p/kisscount/\n\n" + _("Licenced under GNU GPL v3") + "\n\nCopyright (C) 2010-2012 Grégory Soutadé");
QMessageBox::information(0, "KissCount " APP_VERSION, _("Personal accounting software") + "\n\nhttp://indefero.soutade.fr/p/kisscount/\n\n" + _("Licenced under GNU GPL v3") + "\n\nCopyright (C) 2010-2014 Grégory Soutadé");
}
void wxUI::OnButtonQuit()

Archive Download the corresponding diff file