abootimg/Makefile

16 lines
370 B
Makefile
Raw Normal View History

2010-11-26 18:02:39 +08:00
all: abootimg
abootimg: abootimg.c bootimg.h
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:
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