2019-12-07 21:18:27 -07:00
|
|
|
OBJS=main.o sysinput.o ep_init.o ep_upiwin.o ep_backlight.o ep_upiwin_tmp.o ep_util.o fbinit.o fbprimitive.o \
|
|
|
|
log.o gpio.o msg_queue.o time_func.o config.o splash.o
|
2019-12-07 19:43:45 -07:00
|
|
|
LIBS=-lpython3.7m -lcrypt -lbcm2835 -lpthread -ldl -lutil -lm
|
|
|
|
CFLAGS=-I/usr/include/python3.7m -Wall -fstack-protector -fwrapv -fno-PIE -g -O3 -DDEBUG_ASSERT
|
|
|
|
LDFLAGS=-L/usr/lib/python3.7/config-3.7m-arm-linux-gnueabihf -Xlinker -export-dynamic -Wl,-O1 \
|
|
|
|
-Wl,-Bsymbolic-functions
|
2019-11-29 02:05:30 -07:00
|
|
|
|
2019-12-07 13:11:46 -07:00
|
|
|
all: upiwin
|
|
|
|
|
2019-11-29 02:05:30 -07:00
|
|
|
upiwin: $(OBJS)
|
2019-12-07 19:43:45 -07:00
|
|
|
gcc -o upiwin $(LDFLAGS) $(OBJS) $(LIBS)
|
2019-11-29 02:05:30 -07:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
gcc -c $(CFLAGS) $<
|
2019-12-02 23:30:46 -07:00
|
|
|
|
2019-12-06 20:41:26 -07:00
|
|
|
splash.o: splash.bin
|
2019-12-07 19:43:45 -07:00
|
|
|
objcopy -I binary -O elf32-littlearm -B arm --rename-section \
|
|
|
|
.data=.rodata,alloc,load,readonly,data,contents splash.bin splash.o
|
2019-12-06 20:41:26 -07:00
|
|
|
|
|
|
|
splash.bin: splash.png ../buildutils/mksplash
|
|
|
|
../buildutils/mksplash splash.png splash.bin
|
|
|
|
|
2019-12-02 23:30:46 -07:00
|
|
|
clean:
|
2019-12-06 20:51:41 -07:00
|
|
|
rm -f upiwin *.o splash.bin *~
|