⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.x86

📁 这是一个嵌入式系统上运行的中文输入法
💻 X86
字号:
#############################################################################
# Makefile for building libmurphypinyin.so.0.0.1
# Generated by tmake at 12:16, 2004/07/10
#     Project: MurphyPinyin
#    Template: lib
#############################################################################

####### Compiler, tools and options

CC	=	gcc
CXX	=	g++
CFLAGS	=	-pipe -Wall -W -O2 -fno-default-inline -fPIC -DNO_DEBUG
#CXXFLAGS=	-pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -fno-default-inline -fPIC -DNO_DEBUG
CXXFLAGS=	-pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -fPIC -DX86
ifdef DEBUG
CXXFLAGS+=	-DDEBUG
else
CXXFLAGS+=	-DNO_DEBUG
endif
INCPATH	=	-I$(QPEDIR)/include -I$(QTDIR)/include
LINK	=	gcc
LFLAGS	=	-shared -Wl,-soname,libmurphypinyin.so.0
LIBS	=	$(SUBLIBS) -L$(QTDIR)/lib -lm -lqpe -lqte
AR	=	ar cqs
RANLIB	=	
MOC	=	$(QTDIR)/bin/moc
UIC	=	$(QTDIR)/bin/uic

TAR	=	tar -cf
GZIP	=	gzip -9f

####### Files

HEADERS =	PinyinFrame.h \
		PinyinImpl.h \
		PinyinEngine.h \
		scim/scim_pinyin.h \
		phrase/PinyinPhrase.h \
		public.h \
		Config.h
SOURCES =	PinyinFrame.cpp \
		PinyinImpl.cpp \
		PinyinEngine.cpp \
		scim/scim_pinyin.cpp \
		phrase/PinPhrase.cpp \
		public.cpp \
		Config.cpp
OBJECTS =	PinyinFrame.o \
		PinyinImpl.o \
		PinyinEngine.o \
		scim/scim_pinyin.o \
		phrase/PinyinPhrase.o \
		public.o \
		Config.o
INTERFACES =	
UICDECLS =	
UICIMPLS =	
SRCMOC	=	moc_PinyinFrame.cpp
OBJMOC	=	moc_PinyinFrame.o
DIST	=	
TARGET	=	libmurphypinyin.so.0.0.1
TARGETA	=	/opt/Qtopia/plugins/inputmethods/libmurphypinyin.a
TARGETD	=	libmurphypinyin.so.0.0.1
TARGET0	=	libmurphypinyin.so
TARGET1	=	libmurphypinyin.so.0
TARGET2	=	libmurphypinyin.so.0.0
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

#replace version number in script build-pkg and Makefile with value defined in public.h
VERSION=$(shell grep -w VERSION public.h|awk 'BEGIN {FS=" "} ; {print $$3}'|cut -c,2-|sed "/./s/\"//" -)
version:
	@echo applying version number $(VERSION) to build-pkg and Makefile for arm ...
	@mv build-ipk build-ipk.tmp
	@sed "/^VER=.*$$/s/[0-9].*$$/$(VERSION)/" build-ipk.tmp > build-ipk
	@rm build-ipk.tmp
	@mv Makefile Makefile.tmp
	@sed "/libmurphypinyin\.so\.[0-9]\.[0-9]\.[0-9]/s/[0-9]\.[0-9]\.[0-9]/$(VERSION)/" Makefile.tmp > Makefile
	@rm Makefile.tmp

all: /opt/Qtopia/plugins/inputmethods/libmurphypinyin.so.0.0.1 version

/opt/Qtopia/plugins/inputmethods/libmurphypinyin.so.0.0.1: $(OBJECTS) $(OBJMOC) $(SUBLIBS) 
	-rm -f $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2)
	$(LINK) $(LFLAGS) -o $(TARGETD) $(OBJECTS) $(OBJMOC) $(LIBS)
	-ln -s $(TARGET) $(TARGET0)
	-ln -s $(TARGET) $(TARGET1)
	-ln -s $(TARGET) $(TARGET2)
	-rm -f /opt/Qtopia/plugins/inputmethods/$(TARGET)
	-rm -f /opt/Qtopia/plugins/inputmethods/$(TARGET0)
	-rm -f /opt/Qtopia/plugins/inputmethods/$(TARGET1)
	-rm -f /opt/Qtopia/plugins/inputmethods/$(TARGET2)
	-mv $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) /opt/Qtopia/plugins/inputmethods/

staticlib: $(TARGETA)

$(TARGETA): $(UICDECLS) $(OBJECTS) $(OBJMOC) 
	-rm -f $(TARGETA)
	$(AR) $(TARGETA) $(OBJECTS) $(OBJMOC)

moc: $(SRCMOC)

tmake: Makefile

Makefile: MurphyPinyin.pro
	tmake MurphyPinyin.pro -o Makefile

dist:
	$(TAR) MurphyPinyin.tar MurphyPinyin.pro $(SOURCES) $(HEADERS) $(INTERFACES) $(DIST)
	$(GZIP) MurphyPinyin.tar

clean:
	-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET)
	-rm -f $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETA)
	-rm -f *~ core

####### Sub-libraries


###### Combined headers


####### Compile

PinyinFrame.o: PinyinFrame.cpp \
		PinyinFrame.h \
		PinyinEngine.h \
		scim/scim_pinyin.h

PinyinImpl.o: PinyinImpl.cpp \
		PinyinFrame.h \
		PinyinEngine.h \
		scim/scim_pinyin.h \
		PinyinImpl.h

PinyinEngine.o: PinyinEngine.cpp \
		PinyinEngine.h \
		scim/scim_pinyin.h

public.o: public.cpp \
	  public.h

Config.o: Config.cpp \
	  Config.h

scim/scim_pinyin.o: scim/scim_pinyin.cpp \
		scim/scim_pinyin.h

phrase/PinyinPhrase.o: phrase/PinyinPhrase.cpp \
		phrase/PinyinPhrase.h \
		scim/scim_pinyin.h

moc_PinyinFrame.o: moc_PinyinFrame.cpp \
		PinyinFrame.h \
		PinyinEngine.h \
		scim/scim_pinyin.h

moc_PinyinFrame.cpp: PinyinFrame.h
	$(MOC) PinyinFrame.h -o moc_PinyinFrame.cpp

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -