3ac74d05514b8ca4d8d0a9b501ca794cc9b7b7a3
[platform/upstream/flac.git] / src / share / Makefile.lite
1 #
2 # GNU makefile
3 #
4
5 topdir = ../..
6
7 LIB_NAME = libgetopt
8 INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
9
10 OBJS = \
11         getopt.o \
12         getopt1.o
13
14 include $(topdir)/build/lib.mk
15
16 # Our lame Makefile.lite system has no provision for building multiple libs in
17 # a directory, so we hack it:
18 UTF8_LIB_NAME = libutf8
19 UTF8_OBJS = charset.o iconvert.o utf8.o
20 UTF8_STATIC_LIB = $(LIBPATH)/$(UTF8_LIB_NAME).$(STATIC_LIB_SUFFIX)
21 UTF8_DYNAMIC_LIB = $(LIBPATH)/$(UTF8_LIB_NAME).$(DYNAMIC_LIB_SUFFIX)
22
23 debug: $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
24
25 release: $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
26
27 clean: utf8_clean
28
29 utf8_clean:
30         rm -f $(UTF8_OBJS) $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
31
32 $(UTF8_STATIC_LIB): $(UTF8_OBJS)
33         $(LINK) $@ $(UTF8_OBJS) && ranlib $@
34
35 $(UTF8_DYNAMIC_LIB): $(UTF8_OBJS)
36 ifeq ($(DARWIN_BUILD),yes)
37         $(LINKD) -o $@ $(UTF8_OBJS) $(LFLAGS) $(LIBS) -lc
38 else
39         $(LINKD) -o $@ $(UTF8_OBJS) $(LFLAGS) $(LIBS)
40 endif
41
42 # DO NOT DELETE THIS LINE -- make depend depends on it.