ICU-9441 changes made to makefiles to enable static build of /source/samples
X-SVN-Rev: 32060
This commit is contained in:
parent
cff6206277
commit
540194df06
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2002-2011 IBM, Inc. and others
|
||||
# Copyright (c) 2002-2012 IBM, Inc. and others
|
||||
# Sample code makefile definitions
|
||||
|
||||
CLEANFILES=*~ $(TARGET).out
|
||||
@ -10,7 +10,7 @@ CXX=$(shell icu-config --cxx)
|
||||
CPPFLAGS=$(shell icu-config --cppflags)
|
||||
CFLAGS=$(shell icu-config --cflags)
|
||||
CXXFLAGS=$(shell icu-config --cxxflags)
|
||||
LDFLAGS =$(shell icu-config --ldflags)
|
||||
LDFLAGS =$^ $(shell icu-config --ldflags)
|
||||
LDFLAGS_USTDIO =$(shell icu-config --ldflags-icuio)
|
||||
INVOKE=$(shell icu-config --invoke)
|
||||
GENRB=$(shell icu-config --invoke=genrb)
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2002-2010 IBM, Inc. and others
|
||||
# Copyright (c) 2002-2012 IBM, Inc. and others
|
||||
# sample code rules for a single-target simple sample
|
||||
|
||||
# list of targets that aren't actually created
|
||||
@ -7,7 +7,7 @@
|
||||
all: $(ALL_SUBDIR) $(RESTARGET) $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJECTS)
|
||||
$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(XTRALIBS)
|
||||
$(LINK.cc) $(LOADLIBES) $(LDLIBS) -o $@ $(XTRALIBS) -licui18n -licuuc
|
||||
|
||||
$(RESTARGET): $(RESFILES)
|
||||
$(PKGDATA) --name $(RESNAME) --mode $(RESMODE) $(PKGDATAOPTS) $(RESLIST)
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2000-2010 IBM, Inc. and others
|
||||
# Copyright (c) 2000-2012 IBM, Inc. and others
|
||||
# udata sample code
|
||||
# Usage:
|
||||
# - configure, build, install ICU
|
||||
@ -56,10 +56,10 @@ distclean clean:
|
||||
# Can change this to LINK.c if it is a C only program
|
||||
# Can add more libraries here.
|
||||
$(TARGET1): $(OBJECTS1)
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
$(CXX) -o $@ $(LDFLAGS)
|
||||
|
||||
$(TARGET2): $(OBJECTS2)
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
$(CXX) -o $@ $(LDFLAGS) -licui18n -licuuc
|
||||
|
||||
# Make check: simply runs the sample, logged to a file
|
||||
check: $(TARGET1) $(TARGET2)
|
||||
|
Loading…
Reference in New Issue
Block a user