2009-06-09 22:16:39 +03:00
|
|
|
AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb -lconfuse
|
|
|
|
|
2009-06-28 12:42:34 +03:00
|
|
|
BUILD_BRANCH := $(shell git branch | grep ^\* | cut -d' ' -f2)
|
|
|
|
BUILD_HEAD := $(shell git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-16)
|
|
|
|
BUILD_VERSION := ${BUILD_BRANCH}_${BUILD_HEAD}
|
|
|
|
|
2009-06-09 22:16:39 +03:00
|
|
|
inflash_version.h:
|
|
|
|
echo -e '#ifndef INFLASH_VERSION' \
|
2009-06-28 12:42:34 +03:00
|
|
|
'\n#define INFLASH_VERSION "20090628-1"' \
|
2009-06-09 22:16:39 +03:00
|
|
|
'\n#endif' > inflash_version.h
|
|
|
|
BUILT_SOURCES = inflash_version.h
|
|
|
|
|
|
|
|
bin_PROGRAMS = inflash
|
|
|
|
inflash_SOURCES = cmd.c command_line.c ingenic_cfg.c \
|
|
|
|
ingenic_usb.c main.c
|
2009-06-24 03:58:23 +03:00
|
|
|
|
2009-06-28 10:35:20 +03:00
|
|
|
prefix = /usr
|
2009-06-24 03:58:23 +03:00
|
|
|
datadir = /usr/share/inflash
|
2009-06-28 10:35:20 +03:00
|
|
|
data_DATA = ../xburst_stage1/xburst_stage1.bin \
|
|
|
|
../xburst_stage2/xburst_stage2.bin \
|
2009-06-25 07:40:46 +03:00
|
|
|
inflash.cfg
|
2009-06-25 04:52:33 +03:00
|
|
|
EXTRA_DIST = $(datadir)
|
2009-06-25 06:22:41 +03:00
|
|
|
|
|
|
|
../xburst_stage1/xburst_stage1.bin:
|
|
|
|
$(MAKE) -C ../xburst_stage1
|
|
|
|
|
|
|
|
../xburst_stage2/xburst_stage2.bin:
|
|
|
|
$(MAKE) -C ../xburst_stage2
|