Josh Coalson | fda98fb | 2002-05-17 06:33:39 +0000 | [diff] [blame] | 1 | # |
| 2 | # GNU makefile |
| 3 | # |
| 4 | |
| 5 | LIB_NAME = libgetopt |
Josh Coalson | 0aaf496 | 2002-08-14 00:52:00 +0000 | [diff] [blame] | 6 | INCLUDES = -I../../include -I../../include/share |
Josh Coalson | fda98fb | 2002-05-17 06:33:39 +0000 | [diff] [blame] | 7 | |
| 8 | OBJS = \ |
| 9 | getopt.o \ |
| 10 | getopt1.o |
| 11 | |
| 12 | include ../../build/lib.mk |
| 13 | |
Josh Coalson | 0aaf496 | 2002-08-14 00:52:00 +0000 | [diff] [blame] | 14 | # Our lame Makefile.lite system has no provision for building multiple libs in |
| 15 | # a directory, so we hack it: |
| 16 | UTF8_LIB_NAME = libutf8 |
| 17 | UTF8_OBJS = charset.o iconvert.o utf8.o |
| 18 | UTF8_STATIC_LIB = $(LIBPATH)/$(UTF8_LIB_NAME).$(STATIC_LIB_SUFFIX) |
| 19 | UTF8_DYNAMIC_LIB = $(LIBPATH)/$(UTF8_LIB_NAME).$(DYNAMIC_LIB_SUFFIX) |
| 20 | |
| 21 | debug: $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB) |
| 22 | |
| 23 | release: $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB) |
| 24 | |
| 25 | clean: utf8_clean |
| 26 | |
| 27 | utf8_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) |
| 34 | ifeq ($(DARWIN_BUILD),yes) |
| 35 | $(LINKD) -o $@ $(UTF8_OBJS) $(LFLAGS) $(LIBS) -lc |
| 36 | else |
| 37 | $(LINKD) -o $@ $(UTF8_OBJS) $(LFLAGS) $(LIBS) |
| 38 | endif |
| 39 | |
Josh Coalson | fda98fb | 2002-05-17 06:33:39 +0000 | [diff] [blame] | 40 | # DO NOT DELETE THIS LINE -- make depend depends on it. |