2010-11-26 18:02:39 +08:00
|
|
|
|
2011-07-14 07:27:11 +08:00
|
|
|
CPPFLAGS=-DHAS_BLKID
|
2011-07-15 03:12:40 +08:00
|
|
|
CFLAGS=-O3 -Wall
|
2011-07-14 07:27:11 +08:00
|
|
|
LDLIBS=-lblkid
|
|
|
|
|
2010-11-26 18:02:39 +08:00
|
|
|
all: abootimg
|
|
|
|
|
2011-07-04 19:12:55 +08:00
|
|
|
version.h:
|
|
|
|
if [ ! -f version.h ]; then \
|
|
|
|
if [ -d .git ]; then \
|
|
|
|
echo '#define VERSION_STR "$(shell git describe --tags --abbrev=0)"' > version.h; \
|
|
|
|
else \
|
|
|
|
echo '#define VERSION_STR ""' > version.h; \
|
|
|
|
fi \
|
|
|
|
fi
|
|
|
|
|
2011-07-14 07:27:11 +08:00
|
|
|
abootimg.o: bootimg.h version.h
|
2010-11-26 18:02:39 +08:00
|
|
|
|
|
|
|
clean:
|
2011-07-14 07:27:11 +08:00
|
|
|
rm -f abootimg *.o version.h
|
2010-11-26 18:02:39 +08:00
|
|
|
|
2011-07-14 07:27:11 +08:00
|
|
|
.PHONY: clean all
|
2010-11-26 18:02:39 +08:00
|
|
|
|