upiwin/src/Makefile

19 lines
515 B
Makefile

OBJS=main.o sysinput.o fbinit.o fbprimitive.o log.o gpio.o msg_queue.o time_func.o config.o splash.o
LIBS=-lbcm2835 -lpthread
CFLAGS=-g -O -DDEBUG_ASSERT
upiwin: $(OBJS)
gcc -o upiwin $(OBJS) $(LIBS)
.c.o:
gcc -c $(CFLAGS) $<
splash.o: splash.bin
objcopy -I binary -O elf32-littlearm -B arm --rename-section .data=.rodata,alloc,load,readonly,data,contents splash.bin splash.o
splash.bin: splash.png ../buildutils/mksplash
../buildutils/mksplash splash.png splash.bin
clean:
rm -f upiwin *.o splash.bin *~