MACHINE=MAC_OS_X
LIBPATH= -Llibapat -LlibecoPCR -Llibthermo
MAKEDEPEND = gcc -D$(MACHINE) -M $(CPPFLAGS) -o $*.d $<

CC=gcc
CFLAGS= -W -Wall -O2 -g

default: all

%.o: %.c
	$(CC) -D$(MACHINE) $(CFLAGS) -c -o $@ $<

%.P : %.c
	$(MAKEDEPEND)
	@sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' < $*.d > $@; \
	rm -f $*.d; [ -s $@ ] || rm -f $@

include $(SRCS:.c=.P)