add comments for diet.h (auto-gen from Makefile)

This commit is contained in:
Nguyen Anh Quynh 2014-02-28 10:23:14 +08:00
parent 1419d747eb
commit a4f37e075a

View File

@ -148,14 +148,16 @@ $(LIBOBJ): diet
# generate include/diet.h
diet:
@echo "#ifndef CAPSTONE_DIET_H" > include/diet.h
@echo "// File auto-generated by Makefile for Capstone framework. DO NOT MODIFY!" > include/diet.h
@echo "#ifndef CAPSTONE_DIET_H" >> include/diet.h
@echo "#define CAPSTONE_DIET_H" >> include/diet.h
@echo "" >> include/diet.h
@echo "// File auto-generated by Makefile for Capstone framework. DO NOT MODIFY!" >> include/diet.h
@echo "" >> include/diet.h
ifneq (,$(findstring yes,$(CAPSTONE_DIET)))
@echo "// Capstone is in DIET mode" >> include/diet.h
@echo "#define CAPSTONE_DIET" >> include/diet.h
else
@echo "// Capstone is in standard mode (NOT diet)" >> include/diet.h
@echo "#undef CAPSTONE_DIET" >> include/diet.h
endif
@echo "" >> include/diet.h