FreeCalypso > hg > freecalypso-tools
comparison target-utils/lunadrv/Makefile @ 739:de5e16cea79f
target-utils/lunadrv/Makefile: install added
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 11 Oct 2020 03:05:29 +0000 |
parents | 36e6a1ff9608 |
children | 21e0e6492cda |
comparison
equal
deleted
inserted
replaced
738:f19d12f5756f | 739:de5e16cea79f |
---|---|
1 CC= arm-elf-gcc | 1 CC= arm-elf-gcc |
2 CFLAGS= -Os -fno-builtin | 2 CFLAGS= -Os -fno-builtin |
3 CPPFLAGS=-I../include | 3 CPPFLAGS=-I../include |
4 LD= arm-elf-ld | 4 LD= arm-elf-ld |
5 OBJCOPY=arm-elf-objcopy | 5 OBJCOPY=arm-elf-objcopy |
6 | |
7 INSTDIR=/opt/freecalypso/target-bin | |
6 | 8 |
7 PROG= lunadrv | 9 PROG= lunadrv |
8 OBJS= crt0.o backlight.o cmdtab.o haoran.o lcdout.o main.o regcmd.o | 10 OBJS= crt0.o backlight.o cmdtab.o haoran.o lcdout.o main.o regcmd.o |
9 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a \ | 11 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a \ |
10 ../libc/libc.a | 12 ../libc/libc.a |
21 -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC} | 23 -T ${LDS} -o $@ ${OBJS} ${LIBS} ${LIBGCC} |
22 | 24 |
23 ${PROG}.srec: ${PROG}.elf | 25 ${PROG}.srec: ${PROG}.elf |
24 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ | 26 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ |
25 | 27 |
28 install: | |
29 mkdir -p ${INSTDIR} | |
30 install -c -m 644 ${PROG}.srec ${INSTDIR} | |
31 | |
26 clean: | 32 clean: |
27 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S | 33 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S |
28 | 34 |
29 FRC: | 35 FRC: |