mirror of
https://github.com/adrcs/ip400.git
synced 2025-07-04 11:05:45 +03:00
added utils
This commit is contained in:
parent
a9a3f739b4
commit
a9b13d2c39
85 changed files with 9213 additions and 0 deletions
48
rpi/stm32flash/Makefile
Normal file
48
rpi/stm32flash/Makefile
Normal file
|
@ -0,0 +1,48 @@
|
|||
PREFIX = /usr/local
|
||||
CFLAGS += -Wall -g
|
||||
|
||||
ifndef CC
|
||||
$(error CC is not defined)
|
||||
endif
|
||||
|
||||
ifndef AR
|
||||
$(error AR is not defined)
|
||||
endif
|
||||
|
||||
INSTALL = install
|
||||
|
||||
OBJS = dev_table.o \
|
||||
i2c.o \
|
||||
init.o \
|
||||
main.o \
|
||||
port.o \
|
||||
serial_common.o \
|
||||
serial_platform.o \
|
||||
stm32.o \
|
||||
utils.o
|
||||
|
||||
LIBOBJS = parsers/parsers.a
|
||||
|
||||
all: stm32flash
|
||||
|
||||
serial_platform.o: serial_posix.c serial_w32.c
|
||||
|
||||
parsers/parsers.a: force
|
||||
cd parsers && $(MAKE) parsers.a
|
||||
|
||||
stm32flash: $(OBJS) $(LIBOBJS)
|
||||
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBOBJS)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) stm32flash
|
||||
cd parsers && $(MAKE) $@
|
||||
|
||||
install: all
|
||||
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
||||
$(INSTALL) -m 755 stm32flash $(DESTDIR)$(PREFIX)/bin
|
||||
$(INSTALL) -d $(DESTDIR)$(PREFIX)/share/man/man1
|
||||
$(INSTALL) -m 644 stm32flash.1 $(DESTDIR)$(PREFIX)/share/man/man1
|
||||
|
||||
force:
|
||||
|
||||
.PHONY: all clean install force
|
Loading…
Add table
Add a link
Reference in a new issue