2010-11-26 18:02:39 +08:00
|
|
|
|
|
|
|
all: abootimg
|
|
|
|
|
|
|
|
abootimg: abootimg.c bootimg.h
|
2011-05-04 05:40:07 +08:00
|
|
|
echo '#define VERSION_STR "$(shell git describe --tags --abbrev=0)"' > version.h
|
2010-11-26 18:02:39 +08:00
|
|
|
gcc -g -O2 -Wno-unused-result -o abootimg abootimg.c -DHAS_BLKID -lblkid
|
|
|
|
|
|
|
|
clean:
|
2011-05-04 05:40:07 +08:00
|
|
|
rm -f abootimg version.h
|
2010-11-26 18:02:39 +08:00
|
|
|
|
|
|
|
archive: clean
|
2010-11-29 05:50:44 +08:00
|
|
|
cd ..; tar cvzf abootimg.tar.gz abootimg --exclude tests --exclude tmp\* --exclude .git
|
2010-11-26 18:02:39 +08:00
|
|
|
|
2011-05-04 05:43:48 +08:00
|
|
|
.PHONY: clean archive all
|
2010-11-26 18:02:39 +08:00
|
|
|
|