LEGACY_INCLUDE = $(ICU_LEGACY)/include
ICU_INC=$(ICU_PREFIX)/lib/icu/Makefile.inc
ICUPATH=
-include $(ICU_INC)
TARGET=legacy
OBJECTS=legacy.o newcol.o oldcol.o
CLEANFILES=*~ $(TARGET).out
DEPS=$(OBJECTS:.o=.d)
all: $(TARGET) $(ICU_INC)
.PHONY: all clean distclean check report
oldcol.o : oldcol.cpp $(LEGACY_INCLUDE)/unicode/ucol.h
$(CXX) -I$(LEGACY_INCLUDE) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -c oldcol.cpp
distclean clean:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-$(RMV) $(OBJECTS) $(TARGET)
-$(RMV) $(DEPS)
$(TARGET): $(OBJECTS)
$(LINK.cc) -o $@ $^ $(ICULIBS) $(ICU_PREFIX)/lib/libicuuc.so.18 $(ICU_PREFIX)/lib/libicui18n.so.18
check: $(TARGET)
$(INVOKE) ./$(TARGET) | tee $(TARGET).out
report: $(TARGET).report
$(TARGET).report: check $(TARGET).cpp
more $(TARGET).cpp $(TARGET).out > $@
$(ICU_INC):
@echo ICU_PREFIX variable is not set correctly
@echo "Please read the directions at the top of this file (Makefile)"
@echo "And the README"
@echo "Can't open $(ICU_INC)"
@false
$(LEGACY_INCLUDE)/unicode/ucol.h:
@echo ICU_LEGACY variable is not set correctly.
@echo "Please read the directions at the top of this file (Makefile)"
@echo "And the README"
@echo "Can't open $@"
@false
ifneq ($(MAKECMDGOALS),distclean)
-include $(DEPS)
endif