mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 20:20:00 +00:00
make UNIX build and run
This commit is contained in:
parent
61a437bcd2
commit
8d41d4b0cc
@ -24,6 +24,10 @@ include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DIRS = public src
|
||||
|
||||
DIRS += ucvja
|
||||
|
||||
DIRS += ucvlatin
|
||||
|
||||
DIRS += tests
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
@ -23,11 +23,14 @@ include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = uconv
|
||||
|
||||
EXPORTS = nsConverterCID.h \
|
||||
EXPORTS = \
|
||||
nsICharsetConverterInfo.h \
|
||||
nsICharsetConverterManager.h \
|
||||
nsIUnicodeDecoder.h \
|
||||
nsIUnicodeDecodeUtil.h \
|
||||
nsIUnicodeEncoder.h \
|
||||
nsConverterCID.h \
|
||||
uconvutil.h \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
||||
|
@ -25,10 +25,14 @@ MODULE = uconv
|
||||
LIBRARY_NAME = uconv
|
||||
|
||||
CSRCS = \
|
||||
ugen.c \
|
||||
uscan.c \
|
||||
umap.c \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = nsAscii2Unicode.cpp \
|
||||
CPPSRCS = \
|
||||
nsCharsetConverterManager.cpp \
|
||||
nsUnicodeDecodeUtil.cpp \
|
||||
nsUConvDll.cpp \
|
||||
$(NULL)
|
||||
|
||||
@ -39,3 +43,6 @@ CFLAGS += -DUSE_NSREG -D__STDC__
|
||||
REQUIRES = $(MODULE) libxpcom libraptorbase
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
INCLUDES += -I$(srcdir)/../ucvlatin \
|
||||
-I$(srcdir)/../ucvja
|
||||
|
@ -21,30 +21,37 @@ VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
EX_LIBS = -L$(DIST)/bin/ -lxpcom -lraptorbase -luconv
|
||||
|
||||
CPPSRCS = nsTestUConv.cpp
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
#DEFINES += -DUSE_NSREG
|
||||
INCLUDES += -I$(srcdir)/../public -I$(DIST)/include
|
||||
|
||||
EX_LIBS = $(DIST)/lib/libxpcom.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/libraptorbase.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
OBJS = $(CPPSRCS:.cpp=.o)
|
||||
|
||||
PROGS = $(addprefix $(OBJDIR)/, $(CPPSRCS:.cpp=))
|
||||
|
||||
TARGETS = $(PROGS)
|
||||
|
||||
ifeq ($(OS_ARCH),Rhapsody)
|
||||
$(PROGS):$(OBJDIR)/%: $(OBJDIR)/%.o $(EX_LIBS)
|
||||
@$(MAKE_OBJDIR)
|
||||
$(CC) -o $@ $@.o $(LDFLAGS) $(EX_LIBS) $(NSPR_LIBS) $(OS_LIBS)
|
||||
else
|
||||
$(PROGS):$(OBJDIR)/%: $(OBJDIR)/%.o $(EX_LIBS)
|
||||
@$(MAKE_OBJDIR)
|
||||
$(CCC) -o $@ $@.o $(LDFLAGS) $(EX_LIBS) $(NSPR_LIBS) $(OS_LIBS)
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
INCLUDES += -I$(srcdir)/../ucvlatin \
|
||||
-I$(srcdir)/../ucvja
|
||||
|
||||
|
||||
# needed for mac linux
|
||||
ifeq ($(OS_ARCH),Linux)
|
||||
ifneq ($(OS_RELEASE),1.2)
|
||||
OS_LIBS += /usr/lib/libdl.so
|
||||
endif
|
||||
endif
|
||||
|
||||
install:: $(PROGS)
|
||||
$(OBJDIR)/%.o: %.cpp
|
||||
@$(MAKE_OBJDIR)
|
||||
$(CCC) -o $@ $(CFLAGS) -c $<
|
||||
|
||||
$(PROGS):$(OBJDIR)/%: $(OBJDIR)/%.o #$(EX_LIBS)
|
||||
@$(MAKE_OBJDIR)
|
||||
$(CCC) -o $@ $(LDFLAGS) $^ $(NSPR_LIBS) $(EX_LIBS) $(OS_LIBS)
|
||||
|
||||
install:: $(TARGETS)
|
||||
$(INSTALL) $(PROGS) $(DIST)/bin
|
||||
|
||||
|
41
intl/uconv/ucvja/Makefile.in
Normal file
41
intl/uconv/ucvja/Makefile.in
Normal file
@ -0,0 +1,41 @@
|
||||
#!gmake
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = ucvja
|
||||
LIBRARY_NAME = ucvja
|
||||
|
||||
CSRCS = \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
nsSJIS2Unicode.cpp \
|
||||
nsUCVJADll.cpp \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
||||
|
||||
CFLAGS += -DUSE_NSREG -D__STDC__
|
||||
|
||||
REQUIRES = $(MODULE) libxpcom libraptorbase
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
44
intl/uconv/ucvlatin/Makefile.in
Normal file
44
intl/uconv/ucvlatin/Makefile.in
Normal file
@ -0,0 +1,44 @@
|
||||
#!gmake
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = ucvlatin
|
||||
LIBRARY_NAME = ucvlatin
|
||||
|
||||
CSRCS = \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
ns1ByteToUnicodeBase.cpp \
|
||||
nsCP1253ToUnicode.cpp \
|
||||
nsISO88597ToUnicode.cpp \
|
||||
nsLatin1ToUnicode.cpp \
|
||||
nsUCvLatinDll.cpp \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
||||
|
||||
CFLAGS += -DUSE_NSREG -D__STDC__
|
||||
|
||||
REQUIRES = $(MODULE) libxpcom libraptorbase
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
Loading…
x
Reference in New Issue
Block a user