📄 makefile
字号:
#***************************************
# GNU9 MAKEFILE
# NEPTUNE ( TV ) SOFTWARE
# ST9-PLUS
#VERSION : V0.1
#DATE : JAN 2000
#AUTHOR(s) : VICK ZHONG
#PROCESSOR : ST92196
#***************************************
#**********
# DEFINES :
#**********
#Here you declare your option transfering to complier
#Option =TELETEXT
Option = none
#Here you declare your GCC9 directories
INCDIR=c:\gnu9p
LIBDIR=c:\gnu9p\bin
# For searching source file in other directories
VPATH =
# Here you declare your INCLUDE directories
INC = -I$(INCDIR)\include -I$(INCDIR)\include.st9
# Here you declare your LIBRARIES
LIB = -L$(LIBDIR) -l libureg9 -l stdureg9
# Here you declare your compilation options for C files
CFLAGS = -tr9 -mlink $(INC) -D$(Option) -c -g -mparmusp -fomit-frame-pointer -O -Wall -Wa,-ahld
# Here you declare your compilation options for ASSEMBLY files
ASMFLAGS = -tr9 -c -g -mparmusp
# Here you declare your LINKING options for all files
LDFLAGS = -v -m -mmu -I
# Define here the name of your application (executable)
APPLI = neptune
# Give here the name of all your C files used in the application
Clist_SRC_1 = main.c \
alarm.c \
audio.c \
autosrch.c \
channel.c \
clock.c \
command.c \
control.c \
display.c \
eeprom.c \
i2c_bus.c \
io.c \
ir.c \
keyboard.c \
label.c \
menuctrl.c \
osdchar.c \
osdutil.c \
power.c \
sleep.c \
source.c \
timer.c \
tuning.c \
utility.c \
service.c \
video.c \
init.c \
osddrv.c \
osdconst.c \
st9306.c \
tv_glob.c
Clist_SRC_2 = auto_sub.c graph_f1.c st_text.c \
txt_3g0.c txt_hit.c txt_lang.c txt_user.c \
util_1.c vps.c vps_pdc.c txt_gain.c
ifeq "$(Option)" "TELETEXT"
Clist_SRC = $(Clist_SRC_1) $(Clist_SRC_2)
else
Clist_SRC = $(Clist_SRC_1)
endif
ASMlist_SRC_1 =
ASMlist_SRC_2 = graph.asm graph_f0.asm lang.asm \
pdc.asm txt_com.asm txt_eep.asm \
txt_func.asm txt_hit2.asm txt_sw.asm \
txt_tm.asm txt_ts.asm txt_uk.asm \
util_2.asm util_3.asm
ifeq "$(Option)" "TELETEXT"
ASMlist_SRC = $(ASMlist_SRC_1) $(ASMlist_SRC_2)
else
ASMlist_SRC = $(ASMlist_SRC_1)
endif
# Give here the name of your Startup file (will be link in first)
STARTUP = reset.c
.SUFFIXES:
.SUFFIXES: .c .asm .o .scr .u .a .ac
CC = gcc9
LD = ld9
EPROM = INTEL9
EXE = ${APPLI}.u
SCRIPT =${APPLI}.scr
list_OBJ = $(patsubst %.c,%.o,$(STARTUP)) \
$(patsubst %.c,%.o,$(Clist_SRC)) \
$(patsubst %.asm,%.o,$(ASMlist_SRC))
%.o:%.c
@gecho -o tmp0 $(CFLAGS)
@$(CC) @tmp0 $< -o $@
@del tmp0
%.o:%.asm
@$(CC) $(ASMFLAGS) $< -o $@
OBJECT_FILENAME = object
OBJ_FILE = @$(OBJECT_FILENAME)
$(EXE):$(list_OBJ) $(SCRIPT)
# $(LIBDIR)\gecho -o $(OBJECT_FILENAME) $(list_OBJ)
@echo ***************************************************
@echo ***************************************************
@echo ld9
@gecho -o $(OBJECT_FILENAME) $(list_OBJ)
$(LD) $(LDFLAGS) -T $(SCRIPT) $(OBJ_FILE) $(LIB) -o $(EXE) >LD9OUT.TXT
@del $(OBJECT_FILENAME)
# A target to generate hex file.
#***********************************************************
$(EPROM) -t ${APPLI}.u > ${APPLI}.hex
# INCLUDE THE DEPENDENCY
#************************
include makedep
nelly.ac : nelly.a
# A target to delete all generated file :
#****************************************
clean:
if exist *.o del *.o
if exist *.l del *.l
if exist *.map del *.map
if exist *.s del *.s
if exist *.hex del *.hex
if exist *.u del *.u
if exist *.bk9 del *.bk9
if exist *.bl9 del *.bl9
if exist *.s9 del *.s9
if exist *.wsd del *.wsd
if exist LD9OUT.TXT del LD9OUT.TXT
$(CC) -MM $(INC) $(Clist_SRC) >makedep
# A target to generate dependencies in makedep file :
# if makedep do not exist, or if is not a regular depency file,
# use gmake -k dep
#***********************************************************
dep:
$(CC) -MM $(INC) $(Clist_SRC) >makedep
# A target to delete all generated TXT files
#*******************************************
txt:
-del graph_f0.o
-del graph.o
-del util_2.o
-del util_3.o
-del util_5.o
-del lang.o
-del txt_init.o
-del tv_glob.o
conv_st9
$(CC) -MM $(INC) $(Clist_SRC) >makedep
gmake
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -