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

  1. #############################################################################
  2. # Makefile for building: process
  3. # Generated by qmake on: Wed Oct 31 19:37:38 2001
  4. # Project:  process.pro
  5. # Template: app
  6. # Command: $(QMAKE) process.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 = 
  43. SOURCES = process.cpp
  44. OBJECTS = .obj/release/process.o
  45. FORMS = 
  46. UICDECLS = 
  47. UICIMPLS = 
  48. SRCMOC   = .moc/release/process.moc
  49. OBJMOC = 
  50. DIST       = 
  51. QMAKE_TARGET = process
  52. DESTDIR  = 
  53. TARGET   = process
  54.  
  55. first: all
  56. ####### Implicit rules
  57.  
  58. .SUFFIXES: .cpp .cxx .cc .C .c
  59.  
  60. .cpp.o:
  61.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  62.  
  63. .cxx.o:
  64.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  65.  
  66. .cc.o:
  67.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  68.  
  69. .C.o:
  70.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
  71.  
  72. .c.o:
  73.     $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
  74.  
  75. ####### Build rules
  76.  
  77. all: Makefile $(TARGET)
  78.  
  79. $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) 
  80.     $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
  81.  
  82. mocables: $(SRCMOC)
  83.  
  84. $(MOC): 
  85.     ( cd $(QTDIR)/src/moc ; $(MAKE) )
  86.  
  87. Makefile: process.pro ../../.qmake.cache 
  88.     $(QMAKE) process.pro
  89. qmake: 
  90.     @$(QMAKE) process.pro
  91.  
  92. dist: 
  93.     @mkdir -p .obj/release/process && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/release/process/ && ( cd `dirname .obj/release/process` && $(TAR) process.tar process && $(GZIP) process.tar ) && mv `dirname .obj/release/process`/process.tar.gz . && rm -rf .obj/release/process
  94.  
  95. mocclean:
  96.     -rm -f $(SRCMOC)
  97.  
  98. uiclean:
  99.  
  100. clean: mocclean
  101.     -rm -f $(OBJECTS) 
  102.     -rm -f *~ core *.core
  103.  
  104.  
  105. ####### Sub-libraries
  106.  
  107. distclean: clean
  108.     -rm -f $(TARGET) $(TARGET)
  109.     
  110.  
  111. ####### Compile
  112.  
  113. .obj/release/process.o: process.cpp .moc/release/process.moc
  114.     $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release/process.o process.cpp
  115.  
  116. .moc/release/process.moc: $(MOC) process.cpp
  117.     $(MOC) process.cpp -o .moc/release/process.moc
  118.  
  119. ####### Install
  120.  
  121. install: all 
  122.  
  123.