📄 makefile
字号:
############################################################################### Microwindows template Makefile# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr# Portions Copyright (c) 2002 by Koninklijke Philips Electronics N.V.##############################################################################ifndef TOPTOP = ..CONFIG = $(TOP)/configendifinclude $(CONFIG)############################# targets section ################################ifeq ($(NANOX), Y)# If you want to create a library with the objects files, define the name hereLIBNAME = libnano-X.aLIBNAMESO = libnano-X.so# Nano-X server filesNANOXFILES = srvmain.o srvfunc.o srvutil.o srvevent.o srvclip.o# Nano-X client filesOBJS = nxdraw.o nxutil.o nxtransform.oifeq ($(LINK_APP_INTO_SERVER), Y)OBJS += $(NANOXFILES)else# Nano-X server files (network only)NANOXFILES += srvnet.o# Nano-X client files (network only)OBJS += client.o nxproto.o error.oifeq ($(FRAMEBUFFER), Y)OBJS += clientfb.oelseifeq ($(X11), Y)OBJS += clientfb.oendifendififeq ($(ARCH), ECOS) TARGET = $(TOP)/bin/nano-X.oelseTARGET = $(TOP)/bin/nano-Xendifall: default $(TARGET)endifendif######################### Makefile.rules section #############################include $(TOP)/Makefile.rules######################## Tools targets section ################################ Server binary ...ifeq ($(SHAREDLIBS), Y)$(TOP)/bin/nano-X: $(NANOXFILES) $(NANOXSERVERLIBS) $(TOP)/config @echo "Linking $@ ..." $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(NANOXFILES) $(CCNANOXSERVERLIBS)else$(TOP)/bin/nano-X.o: $(OBJS) $(NANOXFILES) $(NANOXSERVERLIBS) $(TOP)/config @echo "Linking $@ ..." @echo #(CC)# $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(NANOXFILES) $(NANOXSERVERLIBS) -Wl,-r -Wl,--retain-symbols-file -Wl,nanox.syms -Wl,--defsym -Wl,nanox_main=main -o XX.o $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(NANOXFILES) $(NANOXSERVERLIBS) -Wl,-r -Wl,--defsym -Wl,nanox_main=main -o XX.o $(NM) XX.o | grep -v _main | grep -v Gr | grep -v nx | grep ' T' | awk -f $(TOP)/ecos/retain.awk | xargs $(OBJCOPY) XX.o $@# rm -f XX.o$(TOP)/bin/nano-X: $(NANOXFILES) $(NANOXSERVERLIBS) $(TOP)/config @echo "Linking $@ ..." $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(NANOXFILES) $(NANOXSERVERLIBS)endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -