45 lines
1010 B
Makefile
Executable File
45 lines
1010 B
Makefile
Executable File
CFLAGS := -Wall -fstack-protector -g -O -fPIC
|
|
INCLUDE_DIRS := ./src/ ./src/ui_picture_data
|
|
|
|
TARGET := charge
|
|
|
|
|
|
LIBS = -lpthread -liniparser -lSDL2 -lm -llvdrv -llvgl -lfreetype -ldrm -lled-util -lwayland-client -lwayland-cursor -lxkbcommon
|
|
|
|
OBJS = battery.o \
|
|
events.o \
|
|
charge.o \
|
|
ui_show_charge.o \
|
|
power0.o \
|
|
power1.o \
|
|
power2.o \
|
|
power3.o \
|
|
power4.o \
|
|
power5.o \
|
|
power6.o
|
|
|
|
SRCS = src/battery.c \
|
|
src/events.c \
|
|
src/charge.c \
|
|
src/ui_show_charge.c \
|
|
src/ui_picture_data/power0.c \
|
|
src/ui_picture_data/power1.c \
|
|
src/ui_picture_data/power2.c \
|
|
src/ui_picture_data/power3.c \
|
|
src/ui_picture_data/power4.c \
|
|
src/ui_picture_data/power5.c \
|
|
src/ui_picture_data/power6.c
|
|
|
|
all:$(OBJS)
|
|
$(CC) -o $(TARGET) $(OBJS) $(LIBPATH) $(LIBS)
|
|
|
|
$(OBJS):$(SRCS)
|
|
$(CC) $(CFLAGS) $(INCLUDE_DIRS) -c $^
|
|
|
|
install:
|
|
cp $(TARGET) $(INSTALL_MOD_PATH)/sbin
|
|
|
|
clean:
|
|
rm -f *.o
|
|
rm -f $(TARGET)
|