CC=xx-gcc
CFLAGS := -Wall
CFLAGS += -g
CFLAGS += -I./include
CFLAGS +=-L.lib
CFLAGS +=-lpthread
CFLAGS +=-lxx
SRC_FILES := $(PATH)/srcfile1.c
SRC_FILES += $(PATH) /srcfile2.c
SRC_OBJS := $(SRC_FILES:%.c=%.o)
%.o: %.c
@$(CC) -o $@ -c $< $(CFLAGS)
.PHONY: all
all:$(SRC_OBJS)
$(CC) -o $(OBJ_NAME) $^ $(CFLAGS)
clean:
rm $(CUR_DIR)/src/*.o