📄 makefile
字号:
###############################################################
#
# Makefile for MemoryInfo
#
# Targets:
# clean - clean everything
# samples - build sample code
#
###################################################################
# ====================================================
# Common Make variables for PalmOS executables
# ====================================================
# Tools we use
CC = m68k-palmos-gcc
AS = m68k-palmos-as
HS_COMMON_INCS_DIR = $(shell cat includes.txt) $(shell cat platform.txt)
HS_PALM_RC_FLAGS = $(HS_COMMON_INCS_DIR) -I Rsc
CFLAGS = -O2 -g -Wall $(HS_PALM_RC_FLAGS)
LDFLAGS = -g
HUSH = @
# Directory paths
OUTPUTDIR = Obj
SRCDIR = Src
RSCDIR = Rsc
TESTSDIR = Tests
RESULTDIR = Result
APP = MemoryInfo
RCPFILE=$(RSCDIR)/$(APP).rcp
PRCFILE=${RESULTDIR}/${APP}.prc
OBJS=$(OUTPUTDIR)/$(APP).o
$(OUTPUTDIR)/$(APP).prc: $(OUTPUTDIR) $(RESULTDIR) $(OUTPUTDIR)/$(APP) $(OUTPUTDIR)/bin.stamp $(APP).def
$(HUSH)$(CC) $(CFLAGS) $(OBJS) -o $(OUTPUTDIR)/$(APP).code.1.sym
build-prc $(APP).def $(OUTPUTDIR)/$(APP) -o ${PRCFILE} $(OUTPUTDIR)/*.bin
$(OUTPUTDIR):
mkdir ${OUTPUTDIR}
$(RESULTDIR):
mkdir ${RESULTDIR}
$(OUTPUTDIR)/$(APP): $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS)
$(OUTPUTDIR)/%.o: $(SRCDIR)/%.c
$(CC) $(CFLAGS) -c $< -o $@
$(OBJS): $(SRCDIR)/$(APP)Rsc.h
$(OUTPUTDIR)/$(APP).o: $(SRCDIR)/$(APP)Rsc.h
$(OUTPUTDIR)/bin.stamp: $(RCPFILE) $(OBJS)
( cd $(OUTPUTDIR); rm -f *.bin; pilrc -q -I ../$(SRCDIR) -I ../$(RSCDIR) ../$(RCPFILE))
$(HUSH)touch $(OUTPUTDIR)/bin.stamp
samples: ${PRCFILE}
clean:
rm -rf $(OUTPUTDIR)
rm -rf ${RESULTDIR}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -