mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
reorg share directory, split each lib into its own dir
This commit is contained in:
@@ -1,42 +0,0 @@
|
||||
#
|
||||
# GNU makefile
|
||||
#
|
||||
|
||||
topdir = ../..
|
||||
|
||||
LIB_NAME = libgetopt
|
||||
INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
|
||||
|
||||
OBJS = \
|
||||
getopt.o \
|
||||
getopt1.o
|
||||
|
||||
include $(topdir)/build/lib.mk
|
||||
|
||||
# Our lame Makefile.lite system has no provision for building multiple libs in
|
||||
# a directory, so we hack it:
|
||||
UTF8_LIB_NAME = libutf8
|
||||
UTF8_OBJS = charset.o iconvert.o utf8.o
|
||||
UTF8_STATIC_LIB = $(LIBPATH)/$(UTF8_LIB_NAME).$(STATIC_LIB_SUFFIX)
|
||||
UTF8_DYNAMIC_LIB = $(LIBPATH)/$(UTF8_LIB_NAME).$(DYNAMIC_LIB_SUFFIX)
|
||||
|
||||
debug: $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
|
||||
|
||||
release: $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
|
||||
|
||||
clean: utf8_clean
|
||||
|
||||
utf8_clean:
|
||||
rm -f $(UTF8_OBJS) $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
|
||||
|
||||
$(UTF8_STATIC_LIB): $(UTF8_OBJS)
|
||||
$(LINK) $@ $(UTF8_OBJS) && ranlib $@
|
||||
|
||||
$(UTF8_DYNAMIC_LIB): $(UTF8_OBJS)
|
||||
ifeq ($(DARWIN_BUILD),yes)
|
||||
$(LINKD) -o $@ $(UTF8_OBJS) $(LFLAGS) $(LIBS) -lc
|
||||
else
|
||||
$(LINKD) -o $@ $(UTF8_OBJS) $(LFLAGS) $(LIBS)
|
||||
endif
|
||||
|
||||
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
||||
Reference in New Issue
Block a user