ICU-212 out-of-source build

X-SVN-Rev: 753
This commit is contained in:
Steven R. Loomis 2000-02-12 05:54:43 +00:00
parent 77749b5b8d
commit ab4ac6063a
2 changed files with 11 additions and 5 deletions

View File

@ -15,7 +15,7 @@ exec_prefix = @exec_prefix@
CC = @CC@
CXX = @CXX@
CPPFLAGS = @CPPFLAGS@ -I$(top_srcdir)/common
CPPFLAGS = @CPPFLAGS@ -I$(top_srcdir)/common -I$(top_builddir)/common
CFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@

View File

@ -52,11 +52,11 @@ CPPFLAGS = @CPPFLAGS@ -I$(top_builddir)/common -I$(top_srcdir)/common -I$(top_sr
CFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@
LDFLAGS = @LDFLAGS@ \
$(LD_RPATH)$(LD_RPATH_PRE)$(libdir)@ld_rpath_suf@$(LD_RPATH_PRE)$(top_builddir)/common@ld_rpath_suf@$(LD_RPATH_PRE)$(top_builddir)/i18n@ld_rpath_suf@$(LD_RPATH_PRE)$(top_builddir)/tools/toolutil
LIBS = $(LIBICU-UC) $(LIBICU-I18N) @LIBS@ @LIB_M@ $(LIBICU-TOOLUTIL)
$(LD_RPATH)$(LD_RPATH_PRE)$(libdir)@ld_rpath_suf@$(LD_RPATH_PRE)$(top_builddir)/common@ld_rpath_suf@$(LD_RPATH_PRE)$(top_builddir)/i18n@ld_rpath_suf@$(LD_RPATH_PRE)$(top_builddir)/tools/toolutil@ld_rpath_suf@$(LD_RPATH_PRE)$(top_builddir)/extra/ustdio
LIBS = $(LIBICU-UC) $(LIBICU-I18N) @LIBS@ @LIB_M@ $(LIBICU-TOOLUTIL) -L$(top_builddir)/extra/ustdio -lustdio
OBJECTS = error.o genrb.o ustr.o parse.o read.o write.o list.o \
rblist.o ufile.o ustdio.o util.o
rblist.o util.o
DEPS = $(OBJECTS:.o=.d)
@ -147,13 +147,19 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
$(TARGET) : $(OBJECTS)
$(LINK.c) -o $@ $^ $(LIBS)
$(LINK.c) -o $@ $^ $(LIBS)
## Rule to build a compiled cnv file
$(top_builddir)/data/%.res : $(top_srcdir)/../data/%.txt
@echo "Creating compiled resource file for $<"
@ICU_DATA=$(top_builddir)/data/ ./genrb $< > /dev/null 2>&1
# $(top_srcdir)/test/testdata/default.res
$(top_srcdir)/test/testdata/%.res : $(top_srcdir)/test/testdata/%.txt
@echo "Creating compiled resource file for $<"
@ICU_DATA=$(top_builddir)/data/ ./genrb $< > /dev/null 2>&1
ifneq ($(MAKECMDGOALS),distclean)
-include $(DEPS)
endif