| BUILD_ROOT = $(shell pwd)/.. |
| include $(BUILD_ROOT)/Make.defines |
| |
| #ifeq ($(MBTK_DEV_INFO_VERSION), 2) |
| #DEFINE = -DMBTK_DEV_INFO_VERSION_2 |
| #endif |
| |
| #INC_DIR += \ |
| # -I$(LOCAL_PATH) |
| |
| CC=gcc |
| |
| LOCAL_SRC_FILES = $(wildcard *.c) $(wildcard *.cpp) |
| |
| $(info LOCAL_SRC_FILES = $(LOCAL_SRC_FILES)) |
| |
| OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(LOCAL_SRC_FILES))) |
| BINS = $(patsubst %.o,%,$(OBJS)) |
| |
| all: $(BINS) |
| |
| $(BINS):$(OBJS) |
| @echo " BIN $@" |
| $(CC) $@.o $(DEFINE) -o $(OUT_DIR)/bin/$@ |
| |
| %.o:%.c |
| $(CC) $(INC_DIR) $(DEFINE) -c $< -o $@ |
| |
| %.o:%.cpp |
| $(CC) $(INC_DIR) $(DEFINE) -c $< -o $@ |
| |
| clean: |
| rm -f $(OBJS) $(BINS) |
| |