make UNIX build and run

This commit is contained in:
ftang%netscape.com 1999-01-14 10:28:18 +00:00
parent 61a437bcd2
commit 8d41d4b0cc
6 changed files with 125 additions and 19 deletions

View File

@ -24,6 +24,10 @@ include $(DEPTH)/config/autoconf.mk
DIRS = public src
DIRS += ucvja
DIRS += ucvlatin
DIRS += tests
include $(topsrcdir)/config/rules.mk

View File

@ -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))

View File

@ -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

View File

@ -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

View 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

View 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