15 lines
403 B
Makefile
15 lines
403 B
Makefile
|
|
cur_dir := $(dir $(lastword $(MAKEFILE_LIST)))
|
|
|
|
obj_s := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.s))
|
|
obj_c := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.c))
|
|
obj_cpp := $(patsubst $(cur_dir)%,%,$(wildcard $(cur_dir)*.cpp))
|
|
|
|
obj-y := $(obj_c:.c=.o) $(obj_s:.S=.o) $(obj_cpp:.cpp=.o)
|
|
|
|
ccflags-y += -Iapps/common -Iutils/cqueue
|
|
|
|
ifeq ($(CP_ACCEL_DEBUG),1)
|
|
ccflags-y += -DCP_ACCEL_DEBUG
|
|
endif
|
|
|