30 lines
794 B
Makefile
30 lines
794 B
Makefile
CXXFLAGS=`wx-config --cxxflags` -Wall -I. -ggdb
|
|
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++
|
|
|
|
SOURCES=$(wildcard model/*.cpp)
|
|
SOURCES+=$(wildcard view/*.cpp)
|
|
SOURCES+=$(wildcard controller/*.cpp)
|
|
SOURCES+=main.cpp sha1.cpp
|
|
HEADERS=$(wildcard model/*.h)
|
|
HEADERS+=$(wildcard view/*.h)
|
|
HEADERS+=$(wildcard controller/*.h)
|
|
HEADERS+=main.h sha1.h
|
|
OBJS=$(SOURCES:.cpp=.o)
|
|
|
|
all: kc
|
|
|
|
clean:
|
|
rm -f *~ *.o model/*.o model/*~ view/*.o view/*~ controller/*.o controller/*~ kc
|
|
|
|
%.o : model/%.cpp view/%.cpp controller/%.cpp %.cpp
|
|
$(CXX) $(CXXFLAGS) $< -c
|
|
|
|
kc: $(OBJS)
|
|
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
|