.PHONY: boolops bool boolenum break bstring decl enumbool extension modarray nestext offestof sizeofarray rex struct

LCLINT = lclint

all: boolops bool boolenum break bstring decl enumbool extension modarray nestext offestof sizeofarray rex struct

boolops:
	$(LCLINT) boolops.c -expect 1

bool:
	$(LCLINT) bool.lcl booldef.c -expect 1

boolenum:
	$(LCLINT) boolenum.c -booltype BOOLEAN -expect 1 

break:
	$(LCLINT) break.c -expect 1

bstring:
	$(LCLINT) bstring.c -expect 2 

decl:
	$(LCLINT) decl.c -expect 1 

enumbool:
	$(LCLINT) enumbool.c -expect 2 
	$(LCLINT) enumbool.c -booltrue "true" -boolfalse "false" 

extension:
	-$(LCLINT) extension.c
	-$(LCLINT) -gnuextensions extension.c 

modarray:
	$(LCLINT) modarray.c

nestext:
	$(LCLINT) nestext.c -expect 1

offsetof:
	$(LCLINT) offsetof.c

sizeofarray:
	$(LCLINT) sizeofarray.c -expect 3 

rex:
	$(LCLINT) rex.c -expect 4
### 3 new errors reported

struct:
	$(LCLINT) struct.c -expect 1
