📄 makefile
字号:
# File : MAKEFILE
# Makefile for Socrates DDS on SMART2000 System
# Linker flags defined in:
# LINK1.LK for slot 1 code
# LINK2.LK for slot 2 code
# C166 KEIL COMPILER Version V3.05a
# Available compiler switches
# (are set automatically according to parameter setting):
#
# SLOT1: Code for slot 1 is generated
# SLOT2: Code for slot 2 is generated
# DEMUX: Code for multiplexed mode is generated
# DEBUG: Code with additional debug messages is generated
# set directories
OBJ = object^\
LST = listing^\
# set compiler and linker flags
!if "$(VERSION)" == "1"
!if "$(DEBUG)" == "1"
CFLAGS = DF(SLOT1,DEMUX,DEBUG) SB DB CD LA HL(near 0) M167 WL(3)
AFLAGS = SET(SLOT1) XR SG CA DB M167
LINK = L166 @link1db.lk
!else
CFLAGS = DF(SLOT1,DEMUX) SB DB CD LA HL(near 0) M167 WL(3)
AFLAGS = SET(SLOT1) XR SG CA DB M167
LINK = L166 @link1.lk
!endif
!endif
!if "$(VERSION)" == "2"
!if "$(DEBUG)" == "1"
CFLAGS = DF(SLOT2,DEMUX,DEBUG) SB DB CD LA HL(near 0) M167 WL(3)
LINK = L166 @link2db.lk
AFLAGS = SET(SLOT2) XR SG CA DB M167
!else
CFLAGS = DF(SLOT2,DEMUX) SB DB CD LA HL(near 0) M167 WL(3)
LINK = L166 @link2.lk
AFLAGS = SET(SLOT2) XR SG CA DB M167
!endif
!endif
# set commands
CC = C166 $(@B).c OJ($(OBJ)$(@B).o66) PR($(LST)$(@B).l66) $(CFLAGS)
AA = A166 $(@B).src OJ($(OBJ)$(@B).o66) PR($(LST)$(@B).l66) $(AFLAGS)
HEX = OH166
all: temp.h86
$(OBJ)debug.o66 : debug.c sysdef.h dds.h sysvar.h sysfunc.h \
modid.h makefile
$(CC)
$(OBJ)socrat_b.o66 : socrat_b.c sysdef.h dds.h sysvar.h sysfunc.h \
modid.h makefile
$(CC)
$(OBJ)soc_ini.o66 : soc_ini.c sysdef.h dds.h sysvar.h sysfunc.h \
modid.h makefile
$(CC)
$(OBJ)soc_hdlc.o66 : soc_hdlc.c sysdef.h dds.h sysvar.h sysfunc.h \
modid.h makefile
$(CC)
$(OBJ)soc_eoc.o66 : soc_eoc.c sysdef.h dds.h sysvar.h sysfunc.h \
modid.h makefile
$(CC)
$(OBJ)soc_int.o66 : soc_int.c sysdef.h dds.h sysvar.h sysfunc.h \
modid.h makefile
$(CC)
$(OBJ)epic.o66 : epic.c sysdef.h dds.h sysvar.h sysfunc.h \
modid.h makefile
$(CC)
$(OBJ)falc.o66 : falc.c sysdef.h dds.h sysvar.h sysfunc.h \
modid.h makefile
$(CC)
$(OBJ)main.o66 : main.c sysdef.h dds.h sysvar.h sysfunc.h \
reg165.h makefile
$(CC)
$(OBJ)config.o66 : config.c sysdef.h dds.h sysvar.h sysfunc.h \
modid.h reg165.h makefile
$(CC)
$(OBJ)custom.o66 : custom.c sysdef.h dds.h sysvar.h sysfunc.h \
modid.h makefile
$(CC)
$(OBJ)flash.o66 : flash.c sysdef.h dds.h sysvar.h sysfunc.h \
reg165.h makefile
$(CC)
$(OBJ)soc_load.o66 : soc_load.c sysdef.h dds.h sysvar.h sysfunc.h \
reg165.h makefile
$(CC)
!if "$(DEBUG)" == "1"
$(OBJ)debug_if.o66 : debug_if.c sysdef.h dds.h sysvar.h sysfunc.h \
reg165.h makefile
$(CC)
temp.abs : $(OBJ)socrat_b.o66 $(OBJ)soc_ini.o66 $(OBJ)soc_hdlc.o66 \
$(OBJ)soc_eoc.o66 $(OBJ)soc_int.o66 \
$(OBJ)epic.o66 $(OBJ)falc.o66 $(OBJ)custom.o66 \
$(OBJ)debug.o66 $(OBJ)main.o66 $(OBJ)config.o66 $(OBJ)flash.o66 \
$(OBJ)soc_load.o66 $(OBJ)debug_if.o66 \
makefile link1.lk link2.lk
$(LINK)
!else
temp.abs : $(OBJ)socrat_b.o66 $(OBJ)soc_ini.o66 $(OBJ)soc_hdlc.o66 \
$(OBJ)soc_eoc.o66 $(OBJ)soc_int.o66 \
$(OBJ)epic.o66 $(OBJ)falc.o66 $(OBJ)custom.o66 \
$(OBJ)debug.o66 $(OBJ)main.o66 $(OBJ)config.o66 $(OBJ)flash.o66 \
$(OBJ)soc_load.o66 \
makefile link1db.lk link2db.lk
$(LINK)
!endif
temp.h86 : temp.abs makefile
$(HEX) temp.abs H167
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -