abootimg/Makefile

24 lines
376 B
Makefile
Raw Permalink Normal View History

2010-11-26 18:02:39 +08:00
2011-07-14 07:27:11 +08:00
CPPFLAGS=-DHAS_BLKID
CFLAGS=-O3 -Wall
2011-07-14 07:27:11 +08:00
LDLIBS=-lblkid
2010-11-26 18:02:39 +08:00
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
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