makefile debug && release 模式

来源:互联网 发布:手机照片整理软件 编辑:程序博客网 时间:2024/06/05 22:52

# fallback defaults
BOARD ?= $(shell uname --n)

POSIX ?= 0

# Build v2xlaunch application
APP = update_test
all: $(BOARD)

# Comment/uncomment the following line to disable/enable debugging
DEBUG = y
ifeq ($(DEBUG),y)
  # "-O" is needed to expand inlines
  EXTRA_CFLAGS += -O -g -DDEBUG
else
  EXTRA_CFLAGS += -O2
endif
0 0