~jaromil/freej/master

« back to all changes in this revision

Viewing changes to qt/Makefile.am

  • Committer: Jaromil
  • Date: 2011-03-07 02:08:39 UTC
  • mto: This revision was merged to the branch mainline in revision 1546.
  • Revision ID: git-v1:bd507680e537df5a24919a3e0766c451afe34851
generate qt ui files with uic

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
         $(QTGUI_CFLAGS) -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED \
3
3
         -DPREFIX="\"$(prefix)\"" -DDATADIR="\"$(datadir)\""
4
4
 
5
 
SOURCES = main.cpp \
 
5
%.h: %.ui
 
6
        uic -o $@ $<
 
7
%.cpp: %.ui
 
8
        uic -o $@ -impl $*.h $<
 
9
# This rule lets GNU make create any moc_*.cpp from the equivalent *.h
 
10
# You have one .h file, it's called myapp.h. Therefore, here I list
 
11
# its mocced name, moc_myapp.cpp.
 
12
moc_%.cpp: %.h
 
13
        moc $< -o $@
 
14
 
 
15
qfreej_ui = ui_qfreej.h
 
16
ui_qfreej.h: ui_qfreej.ui
 
17
 
 
18
SOURCES = ui_qfreej.h main.cpp \
6
19
    qfreej.cpp \
7
20
    QqComboBlit.cpp \
8
21
    QqWidget.cpp \