2019-12-06 23:26:13 -07:00
|
|
|
OBJS=main.o sysinput.o fbinit.o fbprimitive.o log.o gpio.o msg_queue.o time_func.o config.o splash.o
|
2019-12-01 14:18:31 -07:00
|
|
|
LIBS=-lbcm2835 -lpthread
|
2019-12-06 23:46:21 -07:00
|
|
|
CFLAGS=-g -O -DDEBUG_ASSERT
|
2019-11-29 02:05:30 -07:00
|
|
|
|
|
|
|
upiwin: $(OBJS)
|
|
|
|
gcc -o upiwin $(OBJS) $(LIBS)
|
|
|
|
|
|
|
|
.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-06 20:51:41 -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 *~
|