home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / mdi / Makefile < prev    next >
Makefile  |  2001-10-31  |  10KB  |  337 lines

  1. #############################################################################
  2. # Makefile for building: mdi
  3. # Generated by qmake on: Wed Oct 31 19:37:09 2001
  4. # Project:  mdi.pro
  5. # Template: app
  6. # Command: $(QMAKE) mdi.pro
  7. #############################################################################
  8.  
  9. ####### Compiler, tools and options
  10.  
  11. CC       = gcc
  12. CXX      = g++
  13. LEX      = flex
  14. YACC     = yacc
  15. CFLAGS   = -pipe -DOS2 -Zmtd -D__ST_MT_ERRNO_ -Zomf -fno-exceptions -Wall -W -O2 -DQT_NO_DEBUG
  16. CXXFLAGS = -pipe -DOS2 -Zmtd -D__ST_MT_ERRNO_ -Zomf -fno-exceptions -Wall -W -O2 -DQT_NO_DEBUG
  17. LEXFLAGS = 
  18. YACCFLAGS= -d
  19. INCPATH  = -IF:/XFree86/include -I$(QTDIR)/include -I.moc/release/ -IG:/qtrel/mkspecs/emx-gcc
  20. LINK     = g++
  21. LFLAGS   = -Zomf -Zcrtdll -Zexe -Zmtd -fno-exceptions
  22. LIBS     = $(SUBLIBS) -L$(QTDIR)/lib -LF:/XFree86/lib -lqt -lICE -lSM -ldl -lXext -lX11 -lm
  23. AR       = ar cqs
  24. RANLIB   = 
  25. MOC      = $(QTDIR)/bin/moc
  26. UIC      = $(QTDIR)/bin/uic
  27. QMAKE    = qmake
  28. TAR      = tar -cf
  29. GZIP     = gzip -9f
  30. COPY     = cp -f
  31. COPY_FILE= $(COPY) -p
  32. COPY_DIR = $(COPY) -pR
  33. DEL      = rm -f
  34. MOVE     = mv
  35.  
  36. ####### Output directory
  37.  
  38. OBJECTS_DIR = .obj/release/
  39.  
  40. ####### Files
  41.  
  42. HEADERS = application.h
  43. SOURCES = application.cpp \
  44.         main.cpp
  45. OBJECTS = .obj/release/application.o \
  46.         .obj/release/main.o
  47. FORMS = 
  48. UICDECLS = 
  49. UICIMPLS = 
  50. SRCMOC   = .moc/release/moc_application.cpp
  51. OBJMOC = .obj/release/moc_application.o
  52. DIST       = 
  53. QMAKE_TARGET = mdi
  54. DESTDIR  = 
  55. TARGET   = mdi
  56.  
  57. first: all
  58. ####### Implicit rules
  59.  
  60. .SUFFIXES: .cpp .cxx .cc .C .c
  61.  
  62. .cpp.o:
  63.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  64.  
  65. .cxx.o:
  66.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  67.  
  68. .cc.o:
  69.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  70.  
  71. .C.o:
  72.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  73.  
  74. .c.o:
  75.     $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
  76.  
  77. ####### Build rules
  78.  
  79. all: Makefile $(TARGET)
  80.  
  81. $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) 
  82.     $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
  83.  
  84. mocables: $(SRCMOC)
  85.  
  86. $(MOC): 
  87.     ( cd $(QTDIR)/src/moc ; $(MAKE) )
  88.  
  89. Makefile: mdi.pro ../../.qmake.cache 
  90.     $(QMAKE) mdi.pro
  91. qmake: 
  92.     @$(QMAKE) mdi.pro
  93.  
  94. dist: 
  95.     @mkdir -p .obj/release/mdi && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/release/mdi/ && ( cd `dirname .obj/release/mdi` && $(TAR) mdi.tar mdi && $(GZIP) mdi.tar ) && mv `dirname .obj/release/mdi`/mdi.tar.gz . && rm -rf .obj/release/mdi
  96.  
  97. mocclean:
  98.     -rm -f $(OBJMOC)
  99.     -rm -f $(SRCMOC)
  100.  
  101. uiclean:
  102.  
  103. clean: mocclean
  104.     -rm -f $(OBJECTS) 
  105.     -rm -f *~ core *.core
  106.  
  107.  
  108. ####### Sub-libraries
  109.  
  110. distclean: clean
  111.     -rm -f $(TARGET) $(TARGET)
  112.     
  113.  
  114. ####### Compile
  115.  
  116. .obj/release/application.o: application.cpp application.h \
  117.         ../../include/qworkspace.h \
  118.         ../../include/qimage.h \
  119.         ../../include/qpixmap.h \
  120.         ../../include/qtoolbar.h \
  121.         ../../include/qtoolbutton.h \
  122.         ../../include/qpopupmenu.h \
  123.         ../../include/qmenubar.h \
  124.         ../../include/qmovie.h \
  125.         ../../include/qmultilineedit.h \
  126.         ../../include/qfile.h \
  127.         ../../include/qfiledialog.h \
  128.         ../../include/qlabel.h \
  129.         ../../include/qstatusbar.h \
  130.         ../../include/qmessagebox.h \
  131.         ../../include/qprinter.h \
  132.         ../../include/qapplication.h \
  133.         ../../include/qpushbutton.h \
  134.         ../../include/qaccel.h \
  135.         ../../include/qtextstream.h \
  136.         ../../include/qpainter.h \
  137.         ../../include/qpaintdevicemetrics.h \
  138.         ../../include/qwhatsthis.h \
  139.         ../../include/qobjectlist.h \
  140.         ../../include/qvbox.h \
  141.         filesave.xpm \
  142.         fileopen.xpm \
  143.         fileprint.xpm \
  144.         ../../include/qmainwindow.h \
  145.         ../../include/qptrlist.h \
  146.         ../../include/qwidget.h \
  147.         ../../include/qwindowdefs.h \
  148.         ../../include/qobject.h \
  149.         ../../include/qpaintdevice.h \
  150.         ../../include/qpalette.h \
  151.         ../../include/qfont.h \
  152.         ../../include/qfontmetrics.h \
  153.         ../../include/qfontinfo.h \
  154.         ../../include/qsizepolicy.h \
  155.         ../../include/qobjectdefs.h \
  156.         ../../include/qstring.h \
  157.         ../../include/qnamespace.h \
  158.         ../../include/qglobal.h \
  159.         ../../include/qconfig-minimal.h \
  160.         ../../include/qconfig-small.h \
  161.         ../../include/qconfig-medium.h \
  162.         ../../include/qconfig-large.h \
  163.         ../../include/qconfig.h \
  164.         ../../include/qmodules.h \
  165.         ../../include/qfeatures.h \
  166.         ../../include/qcstring.h \
  167.         ../../include/qmemarray.h \
  168.         ../../include/qgarray.h \
  169.         ../../include/qshared.h \
  170.         ../../include/qevent.h \
  171.         ../../include/qregion.h \
  172.         ../../include/qmime.h \
  173.         ../../include/qpair.h \
  174.         ../../include/qrect.h \
  175.         ../../include/qsize.h \
  176.         ../../include/qpoint.h \
  177.         ../../include/qmap.h \
  178.         ../../include/qdatastream.h \
  179.         ../../include/qtl.h \
  180.         ../../include/qiodevice.h \
  181.         ../../include/qglist.h \
  182.         ../../include/qptrcollection.h \
  183.         ../../include/qcolor.h \
  184.         ../../include/qbrush.h \
  185.         ../../include/qdockwindow.h \
  186.         ../../include/qframe.h \
  187.         ../../include/qwidgetlist.h \
  188.         ../../include/qstrlist.h \
  189.         ../../include/qstringlist.h \
  190.         ../../include/qvaluelist.h \
  191.         ../../include/qbutton.h \
  192.         ../../include/qiconset.h \
  193.         ../../include/qkeysequence.h \
  194.         ../../include/qmenudata.h \
  195.         ../../include/qsignal.h \
  196.         ../../include/qvariant.h \
  197.         ../../include/qtextedit.h \
  198.         ../../include/qscrollview.h \
  199.         ../../include/qstylesheet.h \
  200.         ../../include/qptrvector.h \
  201.         ../../include/qscrollbar.h \
  202.         ../../include/qrangecontrol.h \
  203.         ../../include/qdict.h \
  204.         ../../include/qgvector.h \
  205.         ../../include/qgdict.h \
  206.         ../../include/qdir.h \
  207.         ../../include/qdialog.h \
  208.         ../../include/qurloperator.h \
  209.         ../../include/qurlinfo.h \
  210.         ../../include/qfileinfo.h \
  211.         ../../include/qdatetime.h \
  212.         ../../include/qurl.h \
  213.         ../../include/qnetworkprotocol.h \
  214.         ../../include/qt_windows.h \
  215.         ../../include/qdesktopwidget.h \
  216.         ../../include/qasciidict.h \
  217.         ../../include/qtranslator.h \
  218.         ../../include/quuid.h \
  219.         ../../include/qpen.h \
  220.         ../../include/qpointarray.h \
  221.         ../../include/qwmatrix.h \
  222.         ../../include/qcursor.h \
  223.         ../../include/qhbox.h
  224.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/application.o application.cpp
  225.  
  226. .obj/release/main.o: main.cpp ../../include/qapplication.h \
  227.         application.h \
  228.         ../../include/qdesktopwidget.h \
  229.         ../../include/qasciidict.h \
  230.         ../../include/qpalette.h \
  231.         ../../include/qtranslator.h \
  232.         ../../include/qstrlist.h \
  233.         ../../include/qstringlist.h \
  234.         ../../include/quuid.h \
  235.         ../../include/qwidget.h \
  236.         ../../include/qwindowdefs.h \
  237.         ../../include/qobject.h \
  238.         ../../include/qpaintdevice.h \
  239.         ../../include/qfont.h \
  240.         ../../include/qfontmetrics.h \
  241.         ../../include/qfontinfo.h \
  242.         ../../include/qsizepolicy.h \
  243.         ../../include/qobjectdefs.h \
  244.         ../../include/qstring.h \
  245.         ../../include/qnamespace.h \
  246.         ../../include/qglobal.h \
  247.         ../../include/qconfig-minimal.h \
  248.         ../../include/qconfig-small.h \
  249.         ../../include/qconfig-medium.h \
  250.         ../../include/qconfig-large.h \
  251.         ../../include/qconfig.h \
  252.         ../../include/qmodules.h \
  253.         ../../include/qfeatures.h \
  254.         ../../include/qcstring.h \
  255.         ../../include/qmemarray.h \
  256.         ../../include/qgarray.h \
  257.         ../../include/qshared.h \
  258.         ../../include/qevent.h \
  259.         ../../include/qregion.h \
  260.         ../../include/qmime.h \
  261.         ../../include/qpair.h \
  262.         ../../include/qrect.h \
  263.         ../../include/qsize.h \
  264.         ../../include/qpoint.h \
  265.         ../../include/qmap.h \
  266.         ../../include/qptrlist.h \
  267.         ../../include/qdatastream.h \
  268.         ../../include/qtl.h \
  269.         ../../include/qiodevice.h \
  270.         ../../include/qtextstream.h \
  271.         ../../include/qglist.h \
  272.         ../../include/qptrcollection.h \
  273.         ../../include/qcolor.h \
  274.         ../../include/qbrush.h \
  275.         ../../include/qgdict.h \
  276.         ../../include/qvaluelist.h \
  277.         ../../include/qmainwindow.h \
  278.         ../../include/qtoolbar.h \
  279.         ../../include/qdockwindow.h \
  280.         ../../include/qframe.h
  281.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/main.o main.cpp
  282.  
  283. .obj/release/moc_application.o: .moc/release/moc_application.cpp application.h ../../include/qmainwindow.h \
  284.         ../../include/qptrlist.h \
  285.         ../../include/qwidget.h \
  286.         ../../include/qtoolbar.h \
  287.         ../../include/qtextstream.h \
  288.         ../../include/qwindowdefs.h \
  289.         ../../include/qobject.h \
  290.         ../../include/qpaintdevice.h \
  291.         ../../include/qpalette.h \
  292.         ../../include/qfont.h \
  293.         ../../include/qfontmetrics.h \
  294.         ../../include/qfontinfo.h \
  295.         ../../include/qsizepolicy.h \
  296.         ../../include/qobjectdefs.h \
  297.         ../../include/qstring.h \
  298.         ../../include/qnamespace.h \
  299.         ../../include/qglobal.h \
  300.         ../../include/qconfig-minimal.h \
  301.         ../../include/qconfig-small.h \
  302.         ../../include/qconfig-medium.h \
  303.         ../../include/qconfig-large.h \
  304.         ../../include/qconfig.h \
  305.         ../../include/qmodules.h \
  306.         ../../include/qfeatures.h \
  307.         ../../include/qcstring.h \
  308.         ../../include/qmemarray.h \
  309.         ../../include/qgarray.h \
  310.         ../../include/qshared.h \
  311.         ../../include/qevent.h \
  312.         ../../include/qregion.h \
  313.         ../../include/qmime.h \
  314.         ../../include/qpair.h \
  315.         ../../include/qrect.h \
  316.         ../../include/qsize.h \
  317.         ../../include/qpoint.h \
  318.         ../../include/qmap.h \
  319.         ../../include/qdatastream.h \
  320.         ../../include/qtl.h \
  321.         ../../include/qiodevice.h \
  322.         ../../include/qglist.h \
  323.         ../../include/qptrcollection.h \
  324.         ../../include/qcolor.h \
  325.         ../../include/qbrush.h \
  326.         ../../include/qdockwindow.h \
  327.         ../../include/qframe.h
  328.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/moc_application.o .moc/release/moc_application.cpp
  329.  
  330. .moc/release/moc_application.cpp: $(MOC) application.h
  331.     $(MOC) application.h -o .moc/release/moc_application.cpp
  332.  
  333. ####### Install
  334.  
  335. install: all 
  336.  
  337.