CFLAGS += -Wall -g -Werror
CPPFLAGS += -I$(OSKADIR)/posix/include -I$(OSKADIR)/include -I$(SDIOEMBDIR)/include -I../../include -I../../../common/interface/gen/host

all: libhydra_user.a

hydra_user_sources := \
	../../lib/mbuf.c \
	../../userspace/isp_client_user_space.c \
	../../userspace/service_driver_user_space.c \
	libptap.c

%.d: %.c
	@$(CC) $(CPPFLAGS) -M  -MF $@ -MT "$(@:.d=.o) $@" $<

libhydra_user.a: $(hydra_user_sources:.c=.o)
	$(AR) r $@ $^

clean:	
	rm -f *.o libhydra_user.a ../../lib/mbuf.o ../../userspace/isp_client_user_space.o  ../../userspace/service_driver_user_space.o
