Makefile
资源名称:GUI.rar [点击查看]
上传用户:jiangfa
上传日期:2022-05-14
资源大小:1651k
文件大小:3k
源码类别:
GDI/图象编程
开发平台:
Unix_Linux
- #############################################################################
- # Makefile for building: test
- # Generated by qmake (1.04a) (Qt 3.1.1) on: Sun Jun 25 21:01:02 2006
- # Project: test.pro
- # Template: app
- # Command: $(QMAKE) -o Makefile test.pro
- #############################################################################
- ####### Compiler, tools and options
- CC = gcc
- CXX = g++
- LEX = flex
- YACC = yacc
- CFLAGS = -pipe -Wall -W -O2 -march=i386 -mcpu=i686 -g -DGLX_GLXEXT_LEGACY -fno-use-cxa-atexit -fno-exceptions -DQT_NO_DEBUG
- CXXFLAGS = -pipe -Wall -W -O2 -march=i386 -mcpu=i686 -g -DGLX_GLXEXT_LEGACY -fno-use-cxa-atexit -fno-exceptions -DQT_NO_DEBUG
- LEXFLAGS =
- YACCFLAGS= -d
- INCPATH = -I$(QTDIR)/mkspecs/default -I. -I$(QTDIR)/include
- LINK = g++
- LFLAGS =
- LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
- AR = ar cqs
- RANLIB =
- MOC = $(QTDIR)/bin/moc
- UIC = $(QTDIR)/bin/uic
- QMAKE = qmake
- TAR = tar -cf
- GZIP = gzip -9f
- COPY = cp -f
- COPY_FILE= $(COPY) -p
- COPY_DIR = $(COPY) -pR
- DEL_FILE = rm -f
- SYMLINK = ln -sf
- DEL_DIR = rmdir
- MOVE = mv -f
- CHK_DIR_EXISTS= test -d
- MKDIR = mkdir -p
- ####### Output directory
- OBJECTS_DIR = ./
- ####### Files
- HEADERS = test.h
- SOURCES = main.cpp
- test.cpp
- OBJECTS = main.o
- test.o
- FORMS =
- UICDECLS =
- UICIMPLS =
- SRCMOC = moc_test.cpp
- OBJMOC = moc_test.o
- DIST = test.pro
- QMAKE_TARGET = test
- DESTDIR =
- TARGET = test
- first: all
- ####### Implicit rules
- .SUFFIXES: .c .cpp .cc .cxx .C
- .cpp.o:
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
- .cc.o:
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
- .cxx.o:
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
- .C.o:
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
- .c.o:
- $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
- ####### Build rules
- all: Makefile $(TARGET)
- $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
- $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
- mocables: $(SRCMOC)
- $(MOC):
- ( cd $(QTDIR)/src/moc ; $(MAKE) )
- Makefile: test.pro $(QTDIR)/mkspecs/default/qmake.conf
- $(QMAKE) -o Makefile test.pro
- qmake:
- @$(QMAKE) -o Makefile test.pro
- dist:
- @mkdir -p .tmp/test && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .tmp/test/ && ( cd `dirname .tmp/test` && $(TAR) test.tar test && $(GZIP) test.tar ) && $(MOVE) `dirname .tmp/test`/test.tar.gz . && $(DEL_FILE) -r .tmp/test
- mocclean:
- -$(DEL_FILE) $(OBJMOC)
- -$(DEL_FILE) $(SRCMOC)
- uiclean:
- yaccclean:
- lexclean:
- clean: mocclean
- -$(DEL_FILE) $(OBJECTS)
- -$(DEL_FILE) *~ core *.core
- ####### Sub-libraries
- distclean: clean
- -$(DEL_FILE) $(TARGET) $(TARGET)
- FORCE:
- ####### Compile
- main.o: main.cpp test.h
- test.o: test.cpp test.h
- moc_test.o: moc_test.cpp test.h
- moc_test.cpp: $(MOC) test.h
- $(MOC) test.h -o moc_test.cpp
- ####### Install
- install: all
- uninstall: