CUR_REL_PATH := iris/pipesup_lib
PACKAGE := iris-pipesup_lib

include ../../config.mk

#PRE_CPPFLAGS += -I../user_lib

LIB = libpipesup.a

OBJS =	pipe_popt_functions.o

DEPS = $(patsubst %.o,%.d,$(OBJS))

all: $(LIB_DIR)/$(LIB)
	$(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@;)

clean:
	$(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@;)
	rm -f *.o *~ *.a *.d core $(LIB_DIR)/$(LIB)

install: all
	$(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@;)

test:
	$(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@;)

uninstall:
	$(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@;)

$(LIB): $(OBJS)
	rm -f $@; $(AR) -rsc $@ $^

$(OBJS): Makefile

-include $(DEPS)
