upiwin/src/Makefile

18 lines
428 B
Makefile
Raw Normal View History

OBJS=main.o sysinput.o fbinit.o log.o gpio.o msg_queue.o time_func.o splash.o
LIBS=-lbcm2835 -lpthread
2019-11-29 02:05:30 -07:00
upiwin: $(OBJS)
gcc -o upiwin $(OBJS) $(LIBS)
.c.o:
gcc -c $(CFLAGS) $<
splash.o: splash.bin
ld -r -b binary --rename-section .data=.rodata,alloc,load,readonly,data,contents -o splash.o splash.bin
splash.bin: splash.png ../buildutils/mksplash
../buildutils/mksplash splash.png splash.bin
clean:
rm -f upiwin *.o *~