# sample makefile
CC=cc

targets: default

# this target creates a bin-directory
bindir:
	if test ! -d bin;  then mkdir bin;  fi
	if test ! -d bin/i386;  then mkdir bin/i386;  fi


default: bindir src/hello.c
	$(CC) -o bin/i386/hello src/hello.c

clean:
	rm -rf bin Makefile
