📄 gen_mox.mk
字号:
#@ genmake (ARM Ltd.) - Makefile
#@
#@ Notes:
#@ This file is the input and output of genmake. It has some builtin rules
#@ for the file format. These are used for genmake and also upddep for
#@ updating the dependencies.
#@ The general layout is:
#@ INC_PATHS is set to the -I paths needed by the compiler and upddep
#@ to find the headers.
#@ *FLAGS,*FLAGS_SRC,*FLAGS_COMP,*FLAGS_OBJS are all connected together
#@ and should not be split apart. These are combined into one piece
#@ to define what program is used with what flags on what files to
#@ end up with what objects (or other intermediate files). The "*"
#@ may be any alpha numerics (such as CFLAGS).
#@ all and PROGRAM are the primary targets.
#@ The only precautions are that you must not separate the flag groups,
#@ and you should not put any targets or default rules (.c.o) before
#@ any macros that you want to modify.
#@ The genmake program considers lines starting with '#@' as genmake comments
#@ and does not copy them to the new Makefile.
#@ ---------------------------------------------------------------------
#@ Revision List:
#@ PK 03/31/93 Added comments and new flag groups
#@ GRP 03/11/96 Added "#@" comments to go along with genmake 2.0
#@
#
# Warning: This Makefile is generated by the genmake program from the template:
# gen_mox.mk - template for Motorola compiler to build executables
# It is advised that you not modify this by hand. If you want
# to add something, you can change the gen_mox.mk template.
# Copyright (c) ARM Ltd. 2002
#
TARGET =
INC_PATHS =
# CFLAGS is the default flags rule. Others are added below
CFLAGS = -g $(INC_PATHS)
CFLAGS_SRCS =
CFLAGS_COMP = $(CC) -c $(CFLAGS)
CFLAGS_OBJS =
#FLAGS end here (put all flag groups above this line)
EXTHDRS =
HDRS =
LDFLAGS =
# LIB_DEP is list of dependents for library build ($OBJS for example)
LIB_DEP =
# LIB_ARGS is argument line for librarian
LIB_ARGS =
# LIBS are system libraries as -lname
LIBS =
CC = g$(TARGET)c
LINKER = dsplnk
LIBRARIAN =
MAKENAME = makefile
PRINT = pr
PROGRAM = none.out
BUILD_LIB = none.lib
POST_BUILD =
ALL_DEP = $(PROGRAM) $(POST_BUILD)
A_LNK = $(LDFLAGS)
C_LNK = -j "$(LDFLAGS)"
OBJS = $(CFLAGS_OBJS)
SRCS = $(CFLAGS_SRCS)
# depend is for dependant rules that should not be linked in
DEPEND =
O_DEPEND =
COMP_LINE = $(CFLAGS_COMP)
# .c.o is default compile line if not explicitly defined
.c.o :
$(COMP_LINE) $*.c
# all is first target
all: $(ALL_DEP)
@+echo --- Build-all done ---
#LINK: next one is the link command
$(PROGRAM): $(OBJS) $(DEPEND) $(O_DEPEND) $(MAKENAME)
$(LINKER) $(OBJS) $(LIBS)
#BUILD_LIB: this is only valid if filled in at macro point
$(BUILD_LIB): $(LIB_DEP) $(OBJS) $(DEPEND) $(O_DEPEND) $(MAKENAME)
$(LIBRARIAN) $(LIB_ARGS) $(BUILD_LIB) $(OBJS)
clean:
+for %d in ($(OBJS) $(PROGRAM) $(BUILD_LIB)) do if exist %d del %d
rebuild: clean all
depend:; upddep $(MAKENAME)
index:; ctags -wx $(HDRS) $(SRCS)
print:; $(PRINT) $(HDRS) $(SRCS)
program: $(PROGRAM)
tags: $(HDRS) $(SRCS); ctags $(HDRS) $(SRCS)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -