## ****************************************************************************** ## * ## * Copyright (C) 1999-2006, International Business Machines ## * Corporation and others. All Rights Reserved. ## * ## ******************************************************************************* ## Makefile.in for ICU - ubrowse ## Steven R. Loomis srcdir=@srcdir@ top_srcdir=@top_srcdir@ ## Build directory information top_builddir = .. subdir = ubrowse # srcdir must be set before this is included include $(top_builddir)/icuapps.mk ## Extra files to remove for 'make clean' CLEANFILES = *~ README_$(PKG).txt $(PKG).* icons.txt *.res ## Target information TARGET = ubrowse LDFLAGS += -L../apputil -lapputil -L../locexp/util -liculxutil $(LDFLAGS_ICUIO) CPPFLAGS += -I$(top_srcdir)/apputil ITMP=icontmp ICONS=icons # ICULIBS includes all standard ICU libraries. # if we wanted only part of the ICU, we could use (for example) just '$(LIBS) -licuuc -lusort' ... # -ldl is needed for DLL version #ICULIBS += -lustdio # Want to make sure the usort.h dependency is not on the installed version .. CPPFLAGS += -I../locexp/util OBJECTS = ubrowse.o icons.o $(PKG)_dat.o PKG=ubrowseres PKGMODE=static OUT=. ## List of standard targets all: all-local install: install-local clean: clean-local distclean : distclean-local dist: dist-local check: check-local all-local: $(TARGET) install-local: all-local install-target install-target: all-local $(MKINSTALLDIRS) $(BINDIR) $(BINDIR)/data $(INSTALL) $(TARGET) $(BINDIR)/$(TARGET) $(INSTALL) ubrowse-header.html $(BINDIR)/data $(INVOKE) $(PKGDATA) -I $(BINDIR)/../lib -p $(PKG) -m $(PKGMODE) -c -d $(OUT) -T $(OUT) $(PKG).lst dist-local: clean-local: @echo Calling pkgdata to cleanup. Ignore any errors. @-$(INVOKE) $(PKGDATA) -k -p $(PKG) -m $(PKGMODE) -c -d $(OUT) -T $(OUT) $(PKG).lst 2>/dev/null test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) rm -f $(OBJECTS) $(TARGET) $(ITMP) distclean-local: clean-local rm -f Makefile $(DEPS) check-local: Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status # ICULIBS includes all standard ICU libraries. # if we wanted only part of the ICU, we could use (for example) just # '$(LIBS) -licuuc -lusort' ... -include local.mk # Run against HTMLTidy tidy: $(TARGET) $(UBROWSEOPTS) $(INVOKE) ./$(TARGET) | tail +3 > ubrowse.html tidy -utf8 -q ubrowse.html 2>&1 | sed -e "s%^ubrowse.html%"`pwd`"/ubrowse.html%g" $(TARGET) : $(OBJECTS) $(LINK.c) -o $@ $^ $(ICULIBS) icons.res: icons.txt $(INVOKE) $(GENRB) -d. $< icons.txt: $(ICONS)/*.gif echo creating $@ @echo "icons : table(nofallback) { " > $@ @for file in `cd $(ICONS) ; ls *.gif`; do \ echo " $$file:import { $(ICONS)/$$file } " >> $@; \ done; @echo "}" >> $@ $(PKG).lst: Makefile.in echo "icons.res" > $@ $(PKG)_dat.o: $(PKG).lst icons.res -rm -f $@ -$(INVOKE) $(PKGDATA) -p $(PKG) -m $(PKGMODE) -v -c -d $(OUT) -T $(OUT) $(PKG).lst