tinyx.mk
来自「用于生成linux操作系统下的交叉编译工具链和嵌入式linux系统的根文件系统,」· MK 代码 · 共 128 行
MK
128 行
############################################################### tinyx - a small footprint X-server for the TuxScreen############################################################### Copyright (C) 2002 by Tom Walsh <Tom@OpenHardware.net>## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU Library General Public License as# published by the Free Software Foundation; either version 2 of the# License, or (at your option) any later version.## This program is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU# Library General Public License for more details.## You should have received a copy of the GNU Library General Public# License along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307# USA############################################################### You may want to change these.#############################################################TINYX_APPS:=xlsfonts/xlsfonts xmodmap/xmodmap#xset/xset xdpyinfo/xdpyinfo xsetroot/xsetroot \# xrdb/xrdb xrandr/xrandr \# xhost/xhost xauth/xauth oclock/oclock xeyes/xeyes#TINYX_LIBS:=ICE X11 Xext Xpm# Xaw SM Xt Xmu############################################################## Stuff below this line shouldn't need changes.# if you do change, look in rxvt & matchbox for the impact!############################################################### Where resources are found.#TINYX_DIR:=$(BUILD_DIR)/xc-011010TINYX_LDIR:=$(TINYX_DIR)/libTINYX_PROGS:=$(TINYX_DIR)/programsTINYX_SOURCE:=xc-011010.tar.bz2TINYX_SITE:= http://intimate.handhelds.org/jacques/TINYX_CF:=$(TINYX_DIR)/config/cf## Some things that you may want to change.TINYX_XFBDEV:=$(TINYX_DIR)/programs/Xserver/XfbdevTINYX_CAT:=bzcatTINYX_BINX:=$(TARGET_DIR)/usr/X11R6/bin/TINYX_LIBX:=$(TARGET_DIR)/usr/lib/## These rules fetch various tinyx source files.#$(DL_DIR)/$(TINYX_SOURCE): $(WGET) -P $(DL_DIR) $(TINYX_SITE)/$(TINYX_SOURCE)$(DL_DIR)/cross.def: $(WGET) -P $(DL_DIR) $(TINYX_SITE)/xcompile/tuxscreen/cross.def $(SED) 's:arm-uclibc-:$(ARCH)-linux-uclibc-:g' $(DL_DIR)/cross.def$(DL_DIR)/host.def: $(WGET) -P $(DL_DIR) $(TINYX_SITE)/xcompile/tuxscreen/host.def## rule to make sure that we have the source, and it is configured.#$(TINYX_DIR)/.configure: $(DL_DIR)/$(TINYX_SOURCE) $(DL_DIR)/cross.def $(DL_DIR)/host.def $(TINYX_CAT) $(DL_DIR)/$(TINYX_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - toolchain/patch-kernel.sh $(TINYX_DIR) package/tinyx/ tinyx*.patch cp $(DL_DIR)/host.def $(TINYX_CF)/host.def cp $(DL_DIR)/cross.def $(TINYX_CF)/cross.def $(SED) 's,arm-uclibc-,$(ARCH)-linux-uclibc-,g' $(TINYX_CF)/cross.def $(SED) 's:REPLACE_STAGING_DIR:$(STAGING_DIR):g' \ $(TINYX_CF)/cross.def \ $(TINYX_LDIR)/X11/Xlib.h touch $(TINYX_DIR)/.configure## Now that we have the source, build it...#$(TINYX_XFBDEV): $(TINYX_DIR)/.configure rm -f $(TINYX_BINX)/Xfbdev ( cd $(TINYX_DIR) ; $(MAKE) World ; cd $(BUILDROOT) )## Once Frame Buffer is built, we install executables.#$(TINYX_BINX)/Xfbdev: $(TINYX_XFBDEV) -mkdir $(TARGET_DIR)/usr/X11R6 -mkdir $(TINYX_BINX) for file in $(TINYX_APPS) ; do \ cp -f $(TINYX_DIR)/programs/$$file $(TINYX_BINX) ; \ $(STRIP) $(TINYX_PROGS)/$$file ; \ done cp $(TINYX_DIR)/programs/Xserver/Xfbdev $(TINYX_BINX) $(STRIP) $(TINYX_BINX)/Xfbdev cp -f $(TINYX_DIR)/startx $(TARGET_DIR)/bin chmod a+x $(TARGET_DIR)/bin/startx## After we have executables installed, install the libraries.#$(TINYX_LIBX)/libX11.so.6.2: $(TINYX_XFBDEV) for dirs in $(TINYX_LIBS) ; do \ file=`find $(TINYX_LDIR)/$$dirs -type f -iname "lib$$dirs.so*"` ; \ $(STRIP) --strip-unneeded $$file ; \ cp -f $$file $(TINYX_LIBX) ; \ file=`find $(TINYX_LDIR)/$$dirs -type l -iname "lib$$dirs.so*"` ; \ cp -pRf $$file $(TINYX_LIBX) ; \ donetinyx: zlib $(TINYX_LIBX)/libX11.so.6.2 $(TINYX_BINX)/Xfbdevtinyx-source: $(DL_DIR)/$(TINYX_SOURCE)tinyx-clean: -rm -rf $(TARGET_DIR)/usr/X11R6 -$(MAKE) -C $(TINYX_DIR) cleantinyx-dirclean: -rm -rf $(TINYX_DIR) -rm -rf $(TARGET_DIR)/usr/X11R6
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?