#Makefile for CamouflageFS userland utilities
#Sept 5, 2003
#Michael Locasto
#
#

CC=gcc
GCC_OPTS= -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE

all: test64 testkey cinfo cmark readfile writefile

testkey:
	$(CC) -Wall -o ../binutils/testkey testkey.c
test64:
	$(CC) $(GCC_OPTS) -o ../binutils/test64 test64.c
cinfo:
	$(CC) $(GCC_OPTS) -o ../binutils/cinfo cinfo.c
cmark:
	$(CC) $(GCC_OPTS) -o ../binutils/cmark cmark.c
readfile:
	$(CC) $(GCC_OPTS) -o ../binutils/readfile readfile.c
writefile:
	$(CC) $(GCC_OPTS) -o ../binutils/writefile writefile.c

clean:
	/bin/rm ../binutils/cinfo
	/bin/rm ../binutils/cmark
	/bin/rm ../binutils/readfile
	/bin/rm ../binutils/writefile
	/bin/rm ../binutils/test64
	/bin/rm ../binutils/testkey

