ifndef prefix
    export prefix=$(shell cd ../..;pwd)
endif

TARGET = libpsDataManip.a

all: $(TARGET)

include ../Makefile.Globals

SRC_OBJS = psSort.o 

%.o: %.c
	@echo "    Compiling $<. "
	$(CC) $(CFLAGS) -I$(includedir) -c $< -o $@

libpsDataManip.a: $(SRC_OBJS)
	$(AR) -r libpsDataManip.a $(SRC_OBJS)

install: $(TARGET)
	install *.h $(includedir)
	install $(TARGET) $(libexecdir)

distclean:	clean
	$(RM) $(TARGET)

clean:
	@echo "    Deleting intermediate files for 'utilities - $(CFG)'"
	$(RM) $(SRC_OBJS) *.lint

%.lint: %.c
	splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@ 
