#CC = gcc -g -pg -a	# profiling flags
#CC = gcc -O5
CC = gcc -g -Wall

ifeq (${OSTYPE},cygwin32)
EXT=.exe
endif

all:
	cd src && make

clean:
	cd src && make clean
	cd util && make clean
	rm -f test.o test${EXT} *.core
	rm -f libming.a

.c.o: .c .h
	${CC} ${FLAGS} -c $<

test: test.o
	${CC} test.o -o test -Lsrc/ -lming -lm
