KissCount

KissCount Git Source Tree

Root/Makefile

1CXXFLAGS+=`wx-config --cxxflags` -Wall -Isrc -ggdb
2CXXFLAGS+=-I./lib/wxsqlite3-1.9.9/include
3CXXFLAGS+=-I./lib/freechart/include
4
5LDFLAGS+=`wx-config --libs`
6LDFLAGS+=-L./lib/wxsqlite3-1.9.9/lib/ -lwxcode_gtk2u_wxsqlite3-2.8
7LDFLAGS+=-L./lib/freechart/lib -lwxcode_gtk2u_freechart-2.8
8
9CXX=$(PREFIX)g++
10
11SOURCES=$(wildcard src/model/*.cpp)
12SOURCES+=$(wildcard src/view/*.cpp)
13SOURCES+=$(wildcard src/view/grid/*.cpp)
14SOURCES+=$(wildcard src/controller/*.cpp)
15SOURCES+=src/main.cpp src/sha1.cpp src/ParseExp.cpp
16HEADERS=$(wildcard src/model/*.h)
17HEADERS+=$(wildcard src/view/*.h)
18HEADERS+=$(wildcard src/view/grid/*.h)
19HEADERS+=$(wildcard src/controller/*.h)
20HEADERS+=src/main.h src/sha1.h
21OBJS=$(SOURCES:.cpp=.o)
22
23all: check kc
24
25clean:
26rm -f *~ src/*~ src/*.o src/model/*.o src/model/*~ src/view/*.o src/view/grid/*.o src/view/grid/*~ src/view/*~ src/controller/*.o src/controller/*~ kc
27
28%.o : src/model/%.cpp src/view/%.cpp src/view/grid/%.cpp src/controller/%.cpp src/%.cpp
29$(CXX) $(CXXFLAGS) $< -c
30
31check:
32if ! test -d lib ; then echo lib directory not found, please see INSTALL ; return 1 ; fi
33
34kc: $(OBJS)
35$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
36
37generate_locales:
38./tools/generate_locales.sh
39
40package:
41./tools/package.sh

Archive Download this file