# makefile for gnss-ota ifdef CROSS_COMPILE CC = $(CROSS_COMPILE)gcc endif FLAGS = -Wall -g -O CFLAGS += -fPIC TARGET = gnss-ota SYS_ROOT = $(WORKDIR)/recipe-sysroot INCULED_FILE = -I$(SYS_ROOT)/usr/include \ -I$(SYS_ROOT)/usr/include/dbus-1.0 \ -I$(SYS_ROOT)/usr/lib/dbus-1.0/include \ LIBS = -lpthread -ldbushelper #remove later SRCS := $(wildcard ./*.c) OBJS := $(notdir $(patsubst %.c,%.o,$(SRCS))) all:$(OBJS) $(CC) -o $(TARGET) $(OBJS) $(LIBS) $(OBJS):$(SRCS) $(CC) $(CFLAGS) $(FLAGS) $(INCULED_FILE) -c $^ install: @echo "gnss-ota install do nothing" clean: -rm *.o -rm ${TARGET}