📄 makefile
字号:
############################################################################### Microwindows template Makefile# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr##############################################################################ifndef TOPTOP = ../..CONFIG = $(TOP)/configendifinclude $(CONFIG)######################## Additional Flags section ############################# Directories list for header filesINCLUDEDIRS +=# Defines for preprocessorDEFINES +=# Compilation flags for C files OTHER than include directoriesCFLAGS +=# Preprocessor flags OTHER than definesCPPFLAGS +=# Linking flagsLDFLAGS +=############################# targets section ################################ifeq ($(NANOWM), Y)# If you want to create a library with the objects files, define the name hereLIBNAME =# List of objects to compileOBJS = nanowm.o events.o wlist.o clients.o actions.oifeq ($(ARCH), ECOS)TARGET = $(TOP)/bin/nanowm.oelseTARGET = $(TOP)/bin/nanowmendifall: default $(TARGET)endif######################### Makefile.rules section #############################include $(TOP)/Makefile.rules######################## Tools targets section ###############################ifeq ($(SHAREDLIBS), Y)$(TOP)/bin/nanowm: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(CCNANOXCLIENTLIBS)elseifeq ($(ARCH), ECOS)$(TOP)/bin/nanowm.o: $(OBJS) $(TOP)/config $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -Wl,-r -Wl,--defsym -Wl,nanowm_main=main -o XX.o $(NM) XX.o | grep -v _main | grep ' T' | awk -f $(TOP)/ecos/retain.awk | xargs $(OBJCOPY) XX.o $@ rm -f XX.oelse$(TOP)/bin/nanowm: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS)endifendif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -