Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
0aaf496f
Commit
0aaf496f
authored
Aug 14, 2002
by
Josh Coalson
Browse files
add support for building utf8 library
parent
f8e6b095
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/share/Makefile.lite
View file @
0aaf496f
...
...
@@ -3,7 +3,7 @@
#
LIB_NAME
=
libgetopt
INCLUDES
=
-I
../../include
INCLUDES
=
-I
../../include
-I
../../include/share
OBJS
=
\
getopt.o
\
...
...
@@ -11,4 +11,30 @@ OBJS = \
include
../../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.
src/share/Makefile.vc
View file @
0aaf496f
...
...
@@ -14,11 +14,17 @@ C_FILES= \
OBJS
=
$(C_FILES:.c=.obj)
all
:
getopt.lib
UTF8_OBJS
=
charset.o iconvert.o utf8.o
all
:
getopt.lib utf8.lib
getopt.lib
:
$(OBJS)
link.exe
-lib
/nodefaultlib
-out
:../../obj/lib/
$*
.lib
$(OBJS)
utf8.lib
:
$(UTF8_OBJS)
link.exe
-lib
/nodefaultlib
-out
:../../obj/lib/
$*
.lib
$(UTF8_OBJS)
clean
:
-
del
*
.obj
*
.pch
-
del ..
\.
.
\o
bj
\l
ib
\g
etopt.lib ..
\.
.
\o
bj
\l
ib
\g
etopt.pdb
-
del ..
\.
.
\o
bj
\l
ib
\u
tf8.lib ..
\.
.
\o
bj
\l
ib
\u
tf8.pdb
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment