# $Id: Makefile,v 1.1.1.2 92/11/02 18:16:34 genek Exp $
#
# 	Tripwire aux program build
#

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

all:	$(BORDER) $(INODE)

$(BORDER): byteorder.c ntohl.h
	$(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

