2010-07-04 17:42:14 +02:00
|
|
|
CXXFLAGS=`wx-config --cxxflags` -Wall -Isrc -ggdb
|
2010-05-14 15:04:01 +02:00
|
|
|
CXXFLAGS+=-I./lib/wxsqlite3-1.9.9/include
|
|
|
|
CXXFLAGS+=-I./lib/freechart/include
|
|
|
|
|
|
|
|
LDFLAGS=`wx-config --libs`
|
|
|
|
LDFLAGS+=-L./lib/wxsqlite3-1.9.9/lib/ -lwxcode_gtk2u_wxsqlite3-2.8
|
|
|
|
LDFLAGS+=-L./lib/freechart/lib -lwxcode_gtk2u_freechart-2.8
|
|
|
|
|
|
|
|
CXX=g++
|
|
|
|
|
2010-07-04 17:42:14 +02:00
|
|
|
SOURCES=$(wildcard src/model/*.cpp)
|
|
|
|
SOURCES+=$(wildcard src/view/*.cpp)
|
|
|
|
SOURCES+=$(wildcard src/controller/*.cpp)
|
|
|
|
SOURCES+=src/main.cpp src/sha1.cpp
|
|
|
|
HEADERS=$(wildcard src/model/*.h)
|
|
|
|
HEADERS+=$(wildcard src/view/*.h)
|
|
|
|
HEADERS+=$(wildcard src/controller/*.h)
|
|
|
|
HEADERS+=src/main.h src/sha1.h
|
2010-05-15 12:05:39 +02:00
|
|
|
OBJS=$(SOURCES:.cpp=.o)
|
2010-05-14 15:04:01 +02:00
|
|
|
|
|
|
|
all: kc
|
|
|
|
|
|
|
|
clean:
|
2010-07-04 17:42:14 +02:00
|
|
|
rm -f *~ src/*~ src/*.o src/model/*.o src/model/*~ src/view/*.o src/view/*~ src/controller/*.o src/controller/*~ kc
|
2010-05-14 15:04:01 +02:00
|
|
|
|
2010-07-04 17:42:14 +02:00
|
|
|
%.o : src/model/%.cpp src/view/%.cpp src/controller/%.cpp src/%.cpp
|
2010-05-15 12:05:39 +02:00
|
|
|
$(CXX) $(CXXFLAGS) $< -c
|
|
|
|
|
|
|
|
kc: $(OBJS)
|
|
|
|
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|