📄 makefile.win
字号:
# Makefiles for VRTXoc on Windows
# SHELL = c:\command.com
PFS =
TOP = ..\..
TAPETREE = \tmp\vrtxoc
TARLISTDIR = $(TAPETREE)\..\lists
CURRENT_DIR = .
INSTALL = copy
MAKE = make
MV = move
CHMOD = chmod
RM = rm -f
CP = copy
STRIP = strip
MKDIRHIER = mkdir
CC = armcc
CCC = armcc
LD = armlink
AS = armasm
AR = armlib -c
ENDIAN = b
THUMBFLAG = FALSE
ARMMODE = 32
PROC = arm
CCOPTIONS = -$(ENDIAN)i -apcs 3/32bit/noswst -U_SIZE_T -Otime
DEFINES = -DARM -DINLINE # -DVMC_PROBE_INTERRUPT -arch 4T -cpu ARM7TM
CDEBUGS =
INCLUDES = -I. -I../../include -I../../armxxx
ASOPTIONS = -$(ENDIAN)i -apcs 3/32bit/noswst \
-PD "Thumb SETL {$(THUMBFLAG)}" -CPU ARM6 $(DEBUG)
CFLAGS = $(CCOPTIONS) $(DEFINES) $(CDEBUGS) $(INCLUDES)
ASFLAGS = $(ASOPTIONS)
LDOPTIONS = $(CDEBUGS) $(CCOPTIONS)
LIBNAME = vrtxoc_$(ARMMODE)$(ENDIAN)
LIBPREFIX =
LIBSUFFIX = lib
BINDIR = $(TAPETREE)\target\bin\arm
HEXDIR = $(TAPETREE)\target\hex\arm
DBDIR = $(TAPETREE)\target\db\arm
LIBDIR = $(TAPETREE)\target\lib\$(PROC)\armsdt
MANDIR = $(TAPETREE)\target\man
INCDIR = $(TAPETREE)\target\include
CNFDIR = $(TAPETREE)\target\config
EXADIR = $(TAPETREE)\target\example
#OBJECT2LABEL = $(@:.o=_o)
ASSUFFIX = S
.SUFFIXES: .$(ASSUFFIX) $(SUFFIXES)
SRCS = ../../common/accept.c \
../../common/delay.c \
../../common/dequeued.c \
../../common/global.c \
../../common/inivrtx.c \
../../common/insert.c \
../../common/insertd.c \
../../common/panic.c \
../../common/rdinsert.c \
../../common/unlock.c \
../../common/userexit.c \
../../common/fclear.c \
../../common/fcreate.c \
../../common/finquiry.c \
../../common/fpend.c \
../../common/fpost.c \
../../common/tcreate.c \
../../common/tinquiry.c \
../../common/tresched.c \
../../common/tresume.c \
../../common/tsuspend.c \
../../common/twakeup.c \
../../common/pcreate.c \
../../common/pend.c \
../../common/pinquiry.c \
../../common/post.c \
../../common/qaccept.c \
../../common/qcreate.c \
../../common/qinquiry.c \
../../common/qjam.c \
../../common/qpend.c \
../../common/qpost.c \
../../common/gblock.c \
../../common/rblock.c \
../../common/gtime.c \
../../common/stime.c \
../../common/ticker.c \
../../common/timer.c \
../../common/timer_n.c \
../../common/timerq.c \
../../common/vtcreate.c \
../../common/vtaction.c \
../../common/vtinquir.c \
../../common/vtstart.c \
../../common/vtstop.c \
../../common/vthandle.c \
../../common/gversion.c \
../../common/tslice.c \
../../common/timerhd.c \
../../armxxx/taskinit.c \
../../armxxx/procinit.c \
../../debugger/kprintf.c \
../../debugger/taskshot.c \
../../rtl/xprintf.c \
../../rtl/xscanf.c
ASMSRCS = ../../armxxx/context.s \
../../armxxx/interrup.s \
../../armxxx/intirqsk.s \
../../armxxx/intendis.s \
../../armxxx/vrtlib.s
OBJS = accept.o \
delay.o \
dequeued.o \
global.o \
inivrtx.o \
insert.o \
insertd.o \
panic.o \
rdinsert.o \
unlock.o \
userexit.o \
fclear.o \
fcreate.o \
finquiry.o \
fpend.o \
fpost.o \
tcreate.o \
tinquiry.o \
tresched.o \
tresume.o \
tsuspend.o \
twakeup.o \
pcreate.o \
pend.o \
pinquiry.o \
post.o \
qaccept.o \
qcreate.o \
qinquiry.o \
qjam.o \
qpend.o \
qpost.o \
gblock.o \
rblock.o \
gtime.o \
stime.o \
ticker.o \
timer.o \
timer_n.o \
timerq.o \
vtcreate.o \
vtaction.o \
vtinquir.o \
vtstart.o \
vtstop.o \
vthandle.o \
gversion.o \
tslice.o \
timerhd.o \
taskinit.o \
procinit.o \
kprintf.o \
taskshot.o \
xprintf.o \
xscanf.o \
context.o \
interrup.o \
intirqsk.o \
intendis.o \
vrtlib.o
%.o: ./%.c
@$(RM) $@
$(CC) $(CFLAGS) -c -o $@ $<
%.o: ./%.$(ASSUFFIX)
@$(RM) $@
$(AS) $(ASFLAGS) -o $@ $<
%.o: ./%.s
@$(RM) $@
$(AS) $(ASFLAGS) -o $@ $<
%.o: ../../common/%.c
@$(RM) $@
$(CC) $(CFLAGS) -c -o $@ $<
%.o: ../../common/%.$(ASSUFFIX)
@$(RM) $@
$(AS) $(ASFLAGS) -o $@ $<
%.o: ../../debugger/%.c
@$(RM) $@
$(CC) $(CFLAGS) -c -o $@ $<
%.o: ../../debugger/%.$(ASSUFFIX)
@$(RM) $@
$(AS) $(ASFLAGS) -o $@ $<
%.o: ../../armxxx/%.c
@$(RM) $@
$(CC) $(CFLAGS) -c -o $@ $<
%.o: ../../armxxx/%.$(ASSUFFIX)
@$(RM) $@
$(AS) $(ASFLAGS) -o $@ $<
%.o: ../../armxxx/%.s
@$(RM) $@
$(AS) $(ASFLAGS) -o $@ $<
all:: $(LIBPREFIX)$(LIBNAME).$(LIBSUFFIX)
$(LIBPREFIX)$(LIBNAME).$(LIBSUFFIX): $(OBJS)
@$(RM) $@
$(AR) $@ $(OBJS)
install:: $(LIBPREFIX)$(LIBNAME).$(LIBSUFFIX)
@$(CP) $(LIBPREFIX)$(LIBNAME).$(LIBSUFFIX) $(LIBDIR)\$(LIBPREFIX)$(LIBNAME).$(LIBSUFFIX)
@echo "installed in $(LIBDIR) done"
clean:
$(RM) *.o
$(RM) $(LIBPREFIX)$(LIBNAME).$(LIBSUFFIX)
# $(RM) $(OBJS)
xprintf.o : ../../rtl/xprintf.c
$(RM) $@
$(CC) -c $(CFLAGS) ../../rtl/xprintf.c
xscanf.o : ../../rtl/xscanf.c
$(RM) $@
$(CC) -c $(CFLAGS) ../../rtl/xscanf.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -