home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / application / Makefile < prev   
Makefile  |  2001-11-27  |  9KB  |  328 lines

  1. #############################################################################
  2. # Makefile for building: application
  3. # Generated by qmake on: Wed Oct 31 19:35:48 2001
  4. # Project:  application.pro
  5. # Template: app
  6. # Command: $(QMAKE) application.pro
  7. #############################################################################
  8.  
  9. ####### Compiler, tools and options
  10.  
  11. CC       = gcc
  12. CXX      = g++
  13. LEX      = flex
  14. YACC     = yacc
  15. CFLAGS   = -g -pipe -DOS2 -Zmtd -D__ST_MT_ERRNO_  -fno-exceptions -Wall -W -O2 -DQT_NO_DEBUG
  16. CXXFLAGS = -g -pipe -DOS2 -Zmtd -D__ST_MT_ERRNO_  -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++ -s
  21. LFLAGS   =  -Zcrtdll -Zexe -Zmtd -fno-exceptions
  22. LIBS     = $(SUBLIBS) -L$(QTDIR)/lib -LF:/XFree86/lib -llibqt -lICE -lSM -ldl -lXext -lX11 -lm -lz -lpng -ljpeg -lemx_add
  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 = application
  54. DESTDIR  = 
  55. TARGET   = application
  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: application.pro ../../.qmake.cache 
  90.     $(QMAKE) application.pro
  91. qmake: 
  92.     @$(QMAKE) application.pro
  93.  
  94. dist: 
  95.     @mkdir -p .obj/release/application && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/release/application/ && ( cd `dirname .obj/release/application` && $(TAR) application.tar application && $(GZIP) application.tar ) && mv `dirname .obj/release/application`/application.tar.gz . && rm -rf .obj/release/application
  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/qimage.h \
  118.         ../../include/qpixmap.h \
  119.         ../../include/qtoolbar.h \
  120.         ../../include/qtoolbutton.h \
  121.         ../../include/qpopupmenu.h \
  122.         ../../include/qmenubar.h \
  123.         ../../include/qtextedit.h \
  124.         ../../include/qfile.h \
  125.         ../../include/qfiledialog.h \
  126.         ../../include/qstatusbar.h \
  127.         ../../include/qmessagebox.h \
  128.         ../../include/qprinter.h \
  129.         ../../include/qapplication.h \
  130.         ../../include/qaccel.h \
  131.         ../../include/qtextstream.h \
  132.         ../../include/qpainter.h \
  133.         ../../include/qpaintdevicemetrics.h \
  134.         ../../include/qwhatsthis.h \
  135.         filesave.xpm \
  136.         fileopen.xpm \
  137.         fileprint.xpm \
  138.         ../../include/qmainwindow.h \
  139.         ../../include/qwidget.h \
  140.         ../../include/qptrlist.h \
  141.         ../../include/qwindowdefs.h \
  142.         ../../include/qobject.h \
  143.         ../../include/qpaintdevice.h \
  144.         ../../include/qpalette.h \
  145.         ../../include/qfont.h \
  146.         ../../include/qfontmetrics.h \
  147.         ../../include/qfontinfo.h \
  148.         ../../include/qsizepolicy.h \
  149.         ../../include/qobjectdefs.h \
  150.         ../../include/qstring.h \
  151.         ../../include/qnamespace.h \
  152.         ../../include/qglobal.h \
  153.         ../../include/qconfig-minimal.h \
  154.         ../../include/qconfig-small.h \
  155.         ../../include/qconfig-medium.h \
  156.         ../../include/qconfig-large.h \
  157.         ../../include/qconfig.h \
  158.         ../../include/qmodules.h \
  159.         ../../include/qfeatures.h \
  160.         ../../include/qcstring.h \
  161.         ../../include/qmemarray.h \
  162.         ../../include/qgarray.h \
  163.         ../../include/qshared.h \
  164.         ../../include/qevent.h \
  165.         ../../include/qregion.h \
  166.         ../../include/qmime.h \
  167.         ../../include/qpair.h \
  168.         ../../include/qrect.h \
  169.         ../../include/qsize.h \
  170.         ../../include/qpoint.h \
  171.         ../../include/qmap.h \
  172.         ../../include/qdatastream.h \
  173.         ../../include/qtl.h \
  174.         ../../include/qiodevice.h \
  175.         ../../include/qglist.h \
  176.         ../../include/qptrcollection.h \
  177.         ../../include/qcolor.h \
  178.         ../../include/qbrush.h \
  179.         ../../include/qdockwindow.h \
  180.         ../../include/qframe.h \
  181.         ../../include/qstrlist.h \
  182.         ../../include/qstringlist.h \
  183.         ../../include/qvaluelist.h \
  184.         ../../include/qbutton.h \
  185.         ../../include/qiconset.h \
  186.         ../../include/qkeysequence.h \
  187.         ../../include/qmenudata.h \
  188.         ../../include/qsignal.h \
  189.         ../../include/qvariant.h \
  190.         ../../include/qscrollview.h \
  191.         ../../include/qstylesheet.h \
  192.         ../../include/qptrvector.h \
  193.         ../../include/qscrollbar.h \
  194.         ../../include/qrangecontrol.h \
  195.         ../../include/qdict.h \
  196.         ../../include/qgvector.h \
  197.         ../../include/qgdict.h \
  198.         ../../include/qdir.h \
  199.         ../../include/qdialog.h \
  200.         ../../include/qurloperator.h \
  201.         ../../include/qurlinfo.h \
  202.         ../../include/qfileinfo.h \
  203.         ../../include/qdatetime.h \
  204.         ../../include/qurl.h \
  205.         ../../include/qnetworkprotocol.h \
  206.         ../../include/qt_windows.h \
  207.         ../../include/qdesktopwidget.h \
  208.         ../../include/qasciidict.h \
  209.         ../../include/qtranslator.h \
  210.         ../../include/quuid.h \
  211.         ../../include/qpen.h \
  212.         ../../include/qpointarray.h \
  213.         ../../include/qwmatrix.h \
  214.         ../../include/qcursor.h
  215.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/application.o application.cpp
  216.  
  217. .obj/release/main.o: main.cpp ../../include/qapplication.h \
  218.         application.h \
  219.         ../../include/qdesktopwidget.h \
  220.         ../../include/qasciidict.h \
  221.         ../../include/qpalette.h \
  222.         ../../include/qtranslator.h \
  223.         ../../include/qstrlist.h \
  224.         ../../include/qstringlist.h \
  225.         ../../include/quuid.h \
  226.         ../../include/qwidget.h \
  227.         ../../include/qwindowdefs.h \
  228.         ../../include/qobject.h \
  229.         ../../include/qpaintdevice.h \
  230.         ../../include/qfont.h \
  231.         ../../include/qfontmetrics.h \
  232.         ../../include/qfontinfo.h \
  233.         ../../include/qsizepolicy.h \
  234.         ../../include/qobjectdefs.h \
  235.         ../../include/qstring.h \
  236.         ../../include/qnamespace.h \
  237.         ../../include/qglobal.h \
  238.         ../../include/qconfig-minimal.h \
  239.         ../../include/qconfig-small.h \
  240.         ../../include/qconfig-medium.h \
  241.         ../../include/qconfig-large.h \
  242.         ../../include/qconfig.h \
  243.         ../../include/qmodules.h \
  244.         ../../include/qfeatures.h \
  245.         ../../include/qcstring.h \
  246.         ../../include/qmemarray.h \
  247.         ../../include/qgarray.h \
  248.         ../../include/qshared.h \
  249.         ../../include/qevent.h \
  250.         ../../include/qregion.h \
  251.         ../../include/qmime.h \
  252.         ../../include/qpair.h \
  253.         ../../include/qrect.h \
  254.         ../../include/qsize.h \
  255.         ../../include/qpoint.h \
  256.         ../../include/qmap.h \
  257.         ../../include/qptrlist.h \
  258.         ../../include/qdatastream.h \
  259.         ../../include/qtl.h \
  260.         ../../include/qiodevice.h \
  261.         ../../include/qtextstream.h \
  262.         ../../include/qglist.h \
  263.         ../../include/qptrcollection.h \
  264.         ../../include/qcolor.h \
  265.         ../../include/qbrush.h \
  266.         ../../include/qgdict.h \
  267.         ../../include/qvaluelist.h \
  268.         ../../include/qmainwindow.h \
  269.         ../../include/qtoolbar.h \
  270.         ../../include/qdockwindow.h \
  271.         ../../include/qframe.h
  272.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/main.o main.cpp
  273.  
  274. .obj/release/moc_application.o: .moc/release/moc_application.cpp application.h ../../include/qmainwindow.h \
  275.         ../../include/qwidget.h \
  276.         ../../include/qtoolbar.h \
  277.         ../../include/qptrlist.h \
  278.         ../../include/qtextstream.h \
  279.         ../../include/qwindowdefs.h \
  280.         ../../include/qobject.h \
  281.         ../../include/qpaintdevice.h \
  282.         ../../include/qpalette.h \
  283.         ../../include/qfont.h \
  284.         ../../include/qfontmetrics.h \
  285.         ../../include/qfontinfo.h \
  286.         ../../include/qsizepolicy.h \
  287.         ../../include/qobjectdefs.h \
  288.         ../../include/qstring.h \
  289.         ../../include/qnamespace.h \
  290.         ../../include/qglobal.h \
  291.         ../../include/qconfig-minimal.h \
  292.         ../../include/qconfig-small.h \
  293.         ../../include/qconfig-medium.h \
  294.         ../../include/qconfig-large.h \
  295.         ../../include/qconfig.h \
  296.         ../../include/qmodules.h \
  297.         ../../include/qfeatures.h \
  298.         ../../include/qcstring.h \
  299.         ../../include/qmemarray.h \
  300.         ../../include/qgarray.h \
  301.         ../../include/qshared.h \
  302.         ../../include/qevent.h \
  303.         ../../include/qregion.h \
  304.         ../../include/qmime.h \
  305.         ../../include/qpair.h \
  306.         ../../include/qrect.h \
  307.         ../../include/qsize.h \
  308.         ../../include/qpoint.h \
  309.         ../../include/qmap.h \
  310.         ../../include/qdatastream.h \
  311.         ../../include/qtl.h \
  312.         ../../include/qiodevice.h \
  313.         ../../include/qglist.h \
  314.         ../../include/qptrcollection.h \
  315.         ../../include/qcolor.h \
  316.         ../../include/qbrush.h \
  317.         ../../include/qdockwindow.h \
  318.         ../../include/qframe.h
  319.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/moc_application.o .moc/release/moc_application.cpp
  320.  
  321. .moc/release/moc_application.cpp: $(MOC) application.h
  322.     $(MOC) application.h -o .moc/release/moc_application.cpp
  323.  
  324. ####### Install
  325.  
  326. install: all 
  327.  
  328.