H=	../src/config.h\
	../src/object.h\
	../src/extern.h\
	../src/macros.h\
	util/string.h

C=	string.c\
	when.c\
	chdir.c\
	hunk.c\
	monitor.c\
	struct.c\
	hack.c\
	debug.c\
	unix.c\
	c++.c

O=	string.o\
	when.o\
	chdir.o\
	hunk.o\
	monitor.o\
	struct.o\
	hack.o\
	debug.o\
	unix.o\
	c++.o

all:		$(O)

string.o:	$(H)
when.o:		$(H)
chdir.o:	$(H)
hunk.o:		$(H)
struct.o:	$(H)
hack.o:		$(H)
debug.o:	$(H)
unix.o:		$(H)
c++.o:		$(H)

lint:
	lint $(LINTFLAGS) -abxh $(C) | egrep -v '\?\?\?'

clean:
	rm -f *.o core a.out
