📄 makefile
字号:
############################################################################### Microwindows template Makefile# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr##############################################################################ifndef MW_DIR_SRCMW_DIR_SRC := $(CURDIR)/../..endifMW_DIR_RELATIVE := demos/nxscribble/include $(MW_DIR_SRC)/Path.rulesinclude $(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 ($(NANOX), Y)ifeq ($(NANOXDEMO), Y)# If you want to create a library with the objects files, define the name hereLIBNAME =# List of objects to compileOBJS := \ $(MW_DIR_OBJ)/demos/nxscribble/nxscribble.o \ $(MW_DIR_OBJ)/demos/nxscribble/scribwidget.o \ $(MW_DIR_OBJ)/demos/nxscribble/hre_api.o \ $(MW_DIR_OBJ)/demos/nxscribble/li_recognizer.o \ $(MW_DIR_OBJ)/demos/nxscribble/bitvector.o \ $(MW_DIR_OBJ)/demos/nxscribble/matrix.o \ $(MW_DIR_OBJ)/demos/nxscribble/sc.o \ $(MW_DIR_OBJ)/demos/nxscribble/util.oifeq ($(ARCH), ECOS)DEFINES += -DREC_DEFAULT_USER_DIR=\"/bin\"TARGET = $(MW_DIR_BIN)/nxscribble.oelseTARGET = $(MW_DIR_BIN)/nxscribbleendifall: default $(TARGET) $(CP) \ $(MW_DIR_SRC)/demos/nxscribble/letters.cl \ $(MW_DIR_SRC)/demos/nxscribble/digits.cl \ $(MW_DIR_SRC)/demos/nxscribble/punc.cl \ $(MW_DIR_BIN)endifendif######################### Makefile.rules section #############################include $(MW_DIR_SRC)/Makefile.rules######################## Tools targets section ###############################ifeq ($(SHAREDLIBS), Y)$(MW_DIR_BIN)/nxscribble: $(OBJS) $(NANOXCLIENTLIBS) $(CONFIG) @echo "Linking $(patsubst $(MW_DIR_BIN)/%,%,$@) ..." $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(CCNANOXCLIENTLIBS) -lmelseifeq ($(ARCH), ECOS)$(MW_DIR_BIN)/nxscribble.o: $(OBJS) $(CONFIG) @echo "Linking $(patsubst $(MW_DIR_BIN)/%,%,$@) ..." $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -Wl,-r -Wl,--defsym -Wl,nxscribble_main=main -o XX.o $(NM) XX.o | grep -v _main | grep ' T' | awk -f $(MW_DIR_SRC)/ecos/retain.awk | xargs $(OBJCOPY) XX.o $@ rm -f XX.oelse$(MW_DIR_BIN)/nxscribble: $(OBJS) $(NANOXCLIENTLIBS) $(CONFIG) @echo "Linking $(patsubst $(MW_DIR_BIN)/%,%,$@) ..." $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS) -lmendifendif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -