abootimg/Makefile
2011-07-14 01:32:16 +02:00

24 lines
370 B
Makefile

CPPFLAGS=-DHAS_BLKID
CFLAGS=-O3
LDLIBS=-lblkid
all: abootimg
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
abootimg.o: bootimg.h version.h
clean:
rm -f abootimg *.o version.h
.PHONY: clean all