Debian Codegraph @

cmd/gvedit/Makefile.am

raw
1 ## Process this file with automake to produce Makefile.in
2
3 SUBDIRS = ui images
4
5 gveditdir = $(pkgdatadir)/gvedit
6
7 mans = gvedit.1
8
9 if WITH_QT
10 bin_PROGRAMS = gvedit
11 gvedit_DATA = attrs.txt
12 man_MANS = $(mans)
13 if ENABLE_MAN_PDFS
14 pdf_DATA = gvedit.1.pdf
15 endif
16 endif
17
18 AM_CPPFLAGS = \
19 -I$(top_srcdir)/lib \
20 -I$(top_srcdir)/lib/common \
21 -I$(top_srcdir)/lib/gvc \
22 -I$(top_srcdir)/lib/pathplan \
23 -I$(top_srcdir)/lib/cgraph \
24 -I$(top_srcdir)/lib/cdt
25
26 gvedit_CPPFLAGS = \
27 $(AM_CPPFLAGS) \
28 $(QTGUI_CFLAGS) \
29 $(QTCORE_CFLAGS) \
30 -DDEMAND_LOADING=1 \
31 -DQT_NO_CAST_TO_ASCII \
32 -DQT_NO_CAST_FROM_ASCII \
33 -DQT_STRICT_ITERATORS \
34 -DQT_NO_URL_CAST_FROM_STRING \
35 -DQT_NO_CAST_FROM_BYTEARRAY \
36 -DQT_USE_QSTRINGBUILDER \
37 -DQT_USE_FAST_OPERATOR_PLUS
38
39 gvedit_LDADD = \
40 $(top_builddir)/lib/gvc/libgvc.la \
41 $(top_builddir)/lib/cgraph/libcgraph.la \
42 $(top_builddir)/lib/cdt/libcdt.la \
43 $(top_builddir)/lib/util/libutil_C.la \
44 $(QTGUI_LIBS) \
45 $(QTCORE_LIBS) \
46 $(EXPAT_LIBS) $(Z_LIBS)
47
48 noinst_HEADERS = csettings.h imageviewer.h mainwindow.h mdichild.h
49 if WITH_QT
50 BUILT_SOURCES = ui_settings.h
51 endif
52
53 MOCABLES = moc_csettings.cpp moc_imageviewer.cpp moc_mainwindow.cpp moc_mdichild.cpp qrc_mdi.cpp
54
55 gvedit_SOURCES = main.cpp csettings.cpp imageviewer.cpp mainwindow.cpp mdichild.cpp
56 nodist_gvedit_SOURCES = $(MOCABLES)
57
58 $(MOCABLES): mocables
59
60 .PHONY: mocables
61 mocables ui_settings.h: qMakefile
62 $(MAKE) -f qMakefile prefix=${prefix} exec_prefix=${exec_prefix} mocables compiler_rcc_make_all
63
64 # in case the user has both Qt4 and Qt5 installed, set QT_SELECT to force Qt5
65 qMakefile: gvedit.pro
66 QT_SELECT=5 $(QMAKE) -o qMakefile gvedit.pro
67
68 .1.1.pdf:
69 rm -f $@; pdffile=$@; psfile=$${pdffile%pdf}ps; \
70 $(GROFF) -Tps -man $< > $$psfile || { rm -f $$psfile; exit 1; }; \
71 $(PS2PDF) $$psfile && rm -f $$psfile || { rm -f $$psfile; exit 1; }
72 SUFFIXES = .1 .1.pdf
73
74 EXTRA_DIST = attrs.txt gvedit.pro.in mdi.qrc $(mans)
75
76 CLEANFILES = $(MOCABLES) ui_settings.h
77 DISTCLEANFILES = qMakefile $(pdf_DATA)
78
79 clean-local:
80 -$(MAKE) -f qMakefile clean
81
82 distclean-local:
83 -$(MAKE) -f qMakefile distclean
84