2 CXXFLAGS
= -Wall
-Wno-long-long
-pedantic
4 QT_INCLUDE
= -DQT_SHARED
-I
/opt
/qt4
/include -I
/opt
/qt4
/include/QtCore \
5 -I
/opt
/qt4
/include/QtGui
6 QT_LIBS
= -lQtCore
-lQtGui
-L
/opt
/qt4
/lib
/ -lz
-lm
-pthread
-lgthread-2.0 \
7 -lrt
-lglib-2.0
-lpthread
-ldl
8 QT_LIBS
= -lQtGui
-L
/opt
/qt4-debug
/lib
-L
/usr
/X11R6
/lib \
9 -laudio
-lXt
-lpng
-lSM
-lICE
-lQtCore
-lz
-pthread \
10 -lgthread-2.0
-lrt
-lglib-2.0
-lpthread
-lXi
-lXrender
-lXrandr
-lXfixes \
11 -lXcursor
-lXinerama
-lfreetype
-lfontconfig
-lXext
-lX11
-lm
-ldl
13 ALL_FLAGS
= $(CXXFLAGS
) $(DEBUGFLAGS
) $(QT_INCLUDE
)
14 ALL_LD_FLAGS
= $(QT_LIBS
)
17 VPATH
= diff qt parser
21 DIFF_OBJS
= snippet.o diff.o file.o hunk.o text.o
22 QT_OBJS
= diff_view.o main_window.o
23 PARSER_OBJS
= parser.o
25 OBJS_TMP
= main.o settings.o
$(DIFF_OBJS
) $(QT_OBJS
) $(PARSER_OBJS
)
26 OBJS
= $(foreach file
, $(OBJS_TMP
), objs
/$(file
))
31 $(CC
) $(ALL_FLAGS
) -o
$@
$(OBJS
) $(ALL_LD_FLAGS
)
34 $(CC
) $(ALL_FLAGS
) -c
-o
$@
$<
36 $(CC
) $(ALL_FLAGS
) -c
-o
$@
$<
38 #qt/diff_view.cpp: qt/diff_view.moc
39 #qt/diff_view.moc: qt/diff_view.h