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

  1. #############################################################################
  2. # Makefile for building: buttongroups
  3. # Generated by qmake on: Wed Oct 31 19:35:52 2001
  4. # Project:  buttongroups.pro
  5. # Template: app
  6. # Command: $(QMAKE) buttongroups.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 = buttongroups.h
  43. SOURCES = buttongroups.cpp \
  44.         main.cpp
  45. OBJECTS = .obj/release/buttongroups.o \
  46.         .obj/release/main.o
  47. FORMS = 
  48. UICDECLS = 
  49. UICIMPLS = 
  50. SRCMOC   = .moc/release/moc_buttongroups.cpp
  51. OBJMOC = .obj/release/moc_buttongroups.o
  52. DIST       = 
  53. QMAKE_TARGET = buttongroups
  54. DESTDIR  = 
  55. TARGET   = buttongroups
  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: buttongroups.pro ../../.qmake.cache 
  90.     $(QMAKE) buttongroups.pro
  91. qmake: 
  92.     @$(QMAKE) buttongroups.pro
  93.  
  94. dist: 
  95.     @mkdir -p .obj/release/buttongroups && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/release/buttongroups/ && ( cd `dirname .obj/release/buttongroups` && $(TAR) buttongroups.tar buttongroups && $(GZIP) buttongroups.tar ) && mv `dirname .obj/release/buttongroups`/buttongroups.tar.gz . && rm -rf .obj/release/buttongroups
  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/buttongroups.o: buttongroups.cpp buttongroups.h
  117.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/buttongroups.o buttongroups.cpp
  118.  
  119. .obj/release/main.o: main.cpp buttongroups.h
  120.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/main.o main.cpp
  121.  
  122. .obj/release/moc_buttongroups.o: .moc/release/moc_buttongroups.cpp buttongroups.h 
  123.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/moc_buttongroups.o .moc/release/moc_buttongroups.cpp
  124.  
  125. .moc/release/moc_buttongroups.cpp: $(MOC) buttongroups.h
  126.     $(MOC) buttongroups.h -o .moc/release/moc_buttongroups.cpp
  127.  
  128. ####### Install
  129.  
  130. install: all 
  131.  
  132.