⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 这是韩国EQUATOR公司提供的DEMO程序
💻
字号:
###
### Copyright (c) 2001 Equator Technologies, Inc.
###

#
# Name of the target output
#
TARGET = chan_swap

all: $(TARGET)

#
# Setup the compilers to use to build this
# application.
#
CC     = ecc

#
# Definitions of object files to be made.
#
OBJS_VLX = vswap_vlx.o 
SRCS_VLX = vswap_vlx.c

OBJS     = \
             input_bits.o    \
             swap_mgr.o

#pio_dbg.o       \

SRCS     = \
             input_bits.c    \
             swap_mgr.c

#pio_dbg.c       \

RUN      = casim

#
# Generate C command line options for include library paths.
#
INCLUDES = vswap_vlx.h

#
# Setup the command-line options
#
DEFINES  = -DDEBUG
LDFLAGS  = -lvlx -lds
CFLAGS   = -g $(INCLUDES)

ifeq ($(MAKECMDGOALS), vasm)
    VLX_DIR = vlx_asm
else
    VLX_DIR = vlx_c
    DEFINES += -D_CONFIG_VLX_C
endif

#
# For regression testing
#
test: $(TARGET)
	$(RUN) $(TARGET) > $(TARGET)_c.log
	@rm -f $(TARGET)
	@make vasm
	$(RUN) $(TARGET) > $(TARGET)_asm.log
	@if grep -q 'PASSED!!' $(TARGET)_c.log && grep -q 'PASSED!!' $(TARGET)_asm.log; then \
		echo TEST PASSED vlx_ca/$(TARGET); \
	fi;

#
# Default target vc uses vlx C, otherwise use vlx ASM
#
vc:  $(TARGET)
vasm:  $(TARGET)

$(TARGET): $(OBJS) $(OBJS_VLX)
	$(CC) -o $(TARGET) $(OBJS) $(OBJS_VLX) $(LIBS) $(LDFLAGS)

#
# Suffix rules.  Which files should be compiled
# or assembled by which compilers/asemblers.
#
$(OBJS) : $(SRCS) $(OBJS_VLX)
	$(CC) -c $(DEFINES) $(CFLAGS) $(SRCS)

$(OBJS_VLX) : $(VLX_TARGET)
	@make -C ./$(VLX_DIR)/ -f makefile
	$(CC) -c $(DEFINES) $(CFLAGS) $(SRCS_VLX)

clean:
	rm -f \
              *.o $(TARGET) vswap_vlx.[ch] \
              ./vlx_asm/vswap_vlx.[ch] ./vlx_c/vswap_vlx.[ch] \
              ./vlx_asm/core ./vlx_c/core \
              ./vlx_asm/*.s ./vlx_c/*.s \
              $(TARGET)_*.log dst *.trace core

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -