include ../config.mk

CFLAGS += -xO4 -DSVR4 -I../sunsort_src
CC = cc
TARGET  = make_sort
OBJECTS = make_sort.o
DIR:sh = dirname `pwd`

all: $(TARGET)
	@echo made $(TARGET)

clean:		
	-rm -f $(TARGET) *.o *~ *%

$(TARGET) : $(OBJECTS)
	$(LINK.c) -o $@ $(OBJECTS)

install: $(TARGET)
	-rm ../$(TARGET)$(VERS) ../makesort
	mv $(TARGET) ../$(TARGET)$(VERS)
	sed -e s/SORT_VERS=/SORT_VERS=$(VERS)/  makesort > ../makesort
	chmod 755 ../makesort
	@echo "install $(TARGET)$(VERS) completed ... "


