blob: c06beda1a59b3ee08917049c4ebb2dace0ce34bf [file] [log] [blame]
Josh Coalsonfda98fb2002-05-17 06:33:39 +00001#
2# GNU makefile
3#
4
5LIB_NAME = libgetopt
Josh Coalson0aaf4962002-08-14 00:52:00 +00006INCLUDES = -I../../include -I../../include/share
Josh Coalsonfda98fb2002-05-17 06:33:39 +00007
8OBJS = \
9 getopt.o \
10 getopt1.o
11
12include ../../build/lib.mk
13
Josh Coalson0aaf4962002-08-14 00:52:00 +000014# Our lame Makefile.lite system has no provision for building multiple libs in
15# a directory, so we hack it:
16UTF8_LIB_NAME = libutf8
17UTF8_OBJS = charset.o iconvert.o utf8.o
18UTF8_STATIC_LIB = $(LIBPATH)/$(UTF8_LIB_NAME).$(STATIC_LIB_SUFFIX)
19UTF8_DYNAMIC_LIB = $(LIBPATH)/$(UTF8_LIB_NAME).$(DYNAMIC_LIB_SUFFIX)
20
21debug: $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
22
23release: $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
24
25clean: utf8_clean
26
27utf8_clean:
28 rm -f $(UTF8_OBJS) $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
29
30$(UTF8_STATIC_LIB): $(UTF8_OBJS)
31 $(LINK) $@ $(UTF8_OBJS) && ranlib $@
32
33$(UTF8_DYNAMIC_LIB): $(UTF8_OBJS)
34ifeq ($(DARWIN_BUILD),yes)
35 $(LINKD) -o $@ $(UTF8_OBJS) $(LFLAGS) $(LIBS) -lc
36else
37 $(LINKD) -o $@ $(UTF8_OBJS) $(LFLAGS) $(LIBS)
38endif
39
Josh Coalsonfda98fb2002-05-17 06:33:39 +000040# DO NOT DELETE THIS LINE -- make depend depends on it.