Makefile
资源名称:GUI.rar [点击查看]
上传用户:jiangfa
上传日期:2022-05-14
资源大小:1651k
文件大小:2k
源码类别:
GDI/图象编程
开发平台:
Unix_Linux
- #############################################################################
- # Makefile for building test
- # Generated by tmake at 21:06, 2006/06/25
- # Project: test
- # Template: app
- #############################################################################
- ####### Compiler, tools and options
- CC = arm-linux-gcc
- CXX = arm-linux-g++
- CFLAGS = -pipe -Wall -W -O2 -DNO_DEBUG
- CXXFLAGS= -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG
- INCPATH = -I/usr/include -I$(QTDIR)/include -I$(QPEDIR)/include
- LINK = arm-linux-gcc
- LFLAGS =
- LIBS = $(SUBLIBS) -L$(QPEDIR)/lib -L$(QTDIR)/lib -lm -lts -lqpe -lqtopia -lqte
- MOC = $(QTDIR)/bin/moc
- UIC = $(QTDIR)/bin/uic
- TAR = tar -cf
- GZIP = gzip -9f
- ####### Files
- HEADERS = test.h
- SOURCES = main.cpp
- test.cpp
- OBJECTS = main.o
- test.o
- INTERFACES =
- UICDECLS =
- UICIMPLS =
- SRCMOC = moc_test.cpp
- OBJMOC = moc_test.o
- DIST =
- TARGET = test
- INTERFACE_DECL_PATH = .
- ####### Implicit rules
- .SUFFIXES: .cpp .cxx .cc .C .c
- .cpp.o:
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
- .cxx.o:
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
- .cc.o:
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
- .C.o:
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
- .c.o:
- $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
- ####### Build rules
- all: $(TARGET)
- $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
- $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
- moc: $(SRCMOC)
- tmake: Makefile
- Makefile: test.pro
- tmake test.pro -o Makefile
- dist:
- $(TAR) test.tar test.pro $(SOURCES) $(HEADERS) $(INTERFACES) $(DIST)
- $(GZIP) test.tar
- clean:
- -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET)
- -rm -f *~ core
- ####### Sub-libraries
- ###### Combined headers
- ####### Compile
- main.o: main.cpp
- test.h
- test.o: test.cpp
- test.h
- moc_test.o: moc_test.cpp
- test.h
- moc_test.cpp: test.h
- $(MOC) test.h -o moc_test.cpp