# $Id: Makefile,v 1.8 1993/12/15 16:50:00 genek Exp $
#
# 	Tripwire aux program build
#

BORDER	= ../include/byteorder.h
INODE	= ../include/inode.h

all:	$(BORDER) $(INODE)

$(BORDER): byteorder.c ntohl.h
	@echo "###"
	@echo "### Ignore warnings about shift count negative/too large on line 36"
	@echo "###"
	$(CC) $(CFLAGS) $(LDFLAGS) byteorder.c -o byteorder
	(./byteorder; cat ./ntohl.h) > $(BORDER)

$(INODE): types.sh types.c types
	$(SHELL) ./types.sh "$(CPP)" > $(INODE)

types:	types.c
	$(CC) $(CFLAGS) $(LDFLAGS) types.c -o types

clean:	
	rm -f types byteorder *.o core ourtypes.h $(BORDER) $(INODE)

