-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
43 lines (32 loc) · 1.04 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
CXXFLAGS+=-Wall -g0 -O2
prefix=/usr/
DEBUG='true'
BIN_FILE=translator
############ You can edit above this line #######################
CXXFLAGS+=`pkg-config --cflags gtkmm-2.4 gtkspell-2.0`
LDFLAGS+=`pkg-config --libs gtkspell-2.0 gtkmm-2.4` -lgettextpo -laspell
# internal stuff - usally you don't have to edit below this line
CPPFLAGS+=-DGETTEXT_PATH=\"$(prefix)/share/locale\"
ifdef DEBUG
CXXFLAGS+=-g3 -DDEBUG
endif
$(BIN_FILE): main.o Utils.o SpellTxtView.o MainWindow.o MenuBar.o Configuration.o TextPanel.o \
TranslatedTextPanel.o IndicatorWidget.o PoReader.o HelperPanel.o Toolbar.o DictionariesMenu.o \
ErrorHandlers.o Statistics.o StatusBar.o HelpMenu.o HeaderEdit.o
$(CXX) -o $@ $^ $(LDFLAGS)
test_replace: test_replace.o Utils.o
$(CXX) $^ -o $@ $(LDFLAGS)
po:
$(MAKE) -C po/
dep:
$(CXX) -MM *.cc >makefile.dep
include makefile.dep
install:
install -d $(DESTDIR)$(prefix)/bin
install $(BIN_FILE) $(DESTDIR)$(prefix)/bin/
$(MAKE) install prefix=$(prefix) -C po/
.PHONY: clean
clean:
-rm *.o
-rm translator
-rm test_replace