Skip to content

Commit

Permalink
Bugzilla bug 128955: support Netscape's uname, MKS's uname, and Cygwin's
Browse files Browse the repository at this point in the history
uname.  Since CPU_ARCH is already defined in arch.mk, removed the redundant
definition in WIN*.mk.  Removed the unnecessary internal variable
PROCESSOR.  r=cls.
Modified Files: WIN954.0.mk WINNT3.51.mk WINNT4.0.mk WINNT5.0.mk
                WINNT5.1.mk arch.mk
  • Loading branch information
wtc%netscape.com committed Mar 23, 2002
1 parent c333ed0 commit acaf5e7
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 55 deletions.
15 changes: 4 additions & 11 deletions security/coreconf/WIN954.0.mk
Expand Up @@ -35,29 +35,22 @@
# Config stuff for WIN95
#
# This makefile defines the following variables:
# CPU_ARCH, OS_CFLAGS, and OS_DLLFLAGS.
# PROCESSOR is an internal variable.
# OS_CFLAGS and OS_DLLFLAGS.

include $(CORE_DEPTH)/coreconf/WIN32.mk

PROCESSOR := $(shell uname -p)
ifeq ($(PROCESSOR), I386)
CPU_ARCH = x386
ifeq ($(CPU_ARCH), x386)
OS_CFLAGS += -W3 -nologo
DEFINES += -D_X86_
else
ifeq ($(PROCESSOR), MIPS)
CPU_ARCH = MIPS
ifeq ($(CPU_ARCH), MIPS)
#OS_CFLAGS += -W3 -nologo
#DEFINES += -D_MIPS_
OS_CFLAGS += -W3 -nologo
else
ifeq ($(PROCESSOR), ALPHA)
CPU_ARCH = ALPHA
ifeq ($(CPU_ARCH), ALPHA)
OS_CFLAGS += -W3 -nologo
DEFINES += -D_ALPHA_=1
else
CPU_ARCH = processor_is_undefined
endif
endif
endif
Expand Down
14 changes: 4 additions & 10 deletions security/coreconf/WINNT3.51.mk
Expand Up @@ -35,26 +35,20 @@
# Config stuff for WINNT 3.51
#
# This makefile defines the following variables:
# CPU_ARCH, OS_CFLAGS, and OS_DLLFLAGS.
# OS_CFLAGS and OS_DLLFLAGS.
# It has the following internal variables:
# OS_PROC_CFLAGS and OS_WIN_CFLAGS.

include $(CORE_DEPTH)/coreconf/WIN32.mk

PROCESSOR := $(shell uname -p)
ifeq ($(PROCESSOR), I386)
CPU_ARCH = x386
ifeq ($(CPU_ARCH), x386)
OS_PROC_CFLAGS += -D_X86_
else
ifeq ($(PROCESSOR), MIPS)
CPU_ARCH = MIPS
ifeq ($(CPU_ARCH), MIPS)
OS_PROC_CFLAGS += -D_MIPS_
else
ifeq ($(PROCESSOR), ALPHA)
CPU_ARCH = ALPHA
ifeq ($(CPU_ARCH), ALPHA)
OS_PROC_CFLAGS += -D_ALPHA_
else
CPU_ARCH = processor_is_undefined
endif
endif
endif
Expand Down
15 changes: 4 additions & 11 deletions security/coreconf/WINNT4.0.mk
Expand Up @@ -35,29 +35,22 @@
# Config stuff for WINNT 4.0
#
# This makefile defines the following variables:
# CPU_ARCH, OS_CFLAGS, and OS_DLLFLAGS.
# PROCESSOR is an internal variable.
# OS_CFLAGS and OS_DLLFLAGS.

include $(CORE_DEPTH)/coreconf/WIN32.mk

PROCESSOR := $(shell uname -p)
ifeq ($(PROCESSOR), I386)
CPU_ARCH = x386
ifeq ($(CPU_ARCH), x386)
OS_CFLAGS += -W3 -nologo
DEFINES += -D_X86_
else
ifeq ($(PROCESSOR), MIPS)
CPU_ARCH = MIPS
ifeq ($(CPU_ARCH), MIPS)
#OS_CFLAGS += -W3 -nologo
#DEFINES += -D_MIPS_
OS_CFLAGS += -W3 -nologo
else
ifeq ($(PROCESSOR), ALPHA)
CPU_ARCH = ALPHA
ifeq ($(CPU_ARCH), ALPHA)
OS_CFLAGS += -W3 -nologo
DEFINES += -D_ALPHA_=1
else
CPU_ARCH = processor_is_undefined
endif
endif
endif
Expand Down
15 changes: 4 additions & 11 deletions security/coreconf/WINNT5.0.mk
Expand Up @@ -35,29 +35,22 @@
# Config stuff for WINNT 5.0 (Windows 2000)
#
# This makefile defines the following variables:
# CPU_ARCH, OS_CFLAGS, and OS_DLLFLAGS.
# PROCESSOR is an internal variable.
# OS_CFLAGS and OS_DLLFLAGS.

include $(CORE_DEPTH)/coreconf/WIN32.mk

PROCESSOR := $(shell uname -p)
ifeq ($(PROCESSOR), I386)
CPU_ARCH = x386
ifeq ($(CPU_ARCH), x386)
OS_CFLAGS += -W3 -nologo
DEFINES += -D_X86_
else
ifeq ($(PROCESSOR), MIPS)
CPU_ARCH = MIPS
ifeq ($(CPU_ARCH), MIPS)
#OS_CFLAGS += -W3 -nologo
#DEFINES += -D_MIPS_
OS_CFLAGS += -W3 -nologo
else
ifeq ($(PROCESSOR), ALPHA)
CPU_ARCH = ALPHA
ifeq ($(CPU_ARCH), ALPHA)
OS_CFLAGS += -W3 -nologo
DEFINES += -D_ALPHA_=1
else
CPU_ARCH = processor_is_undefined
endif
endif
endif
Expand Down
15 changes: 4 additions & 11 deletions security/coreconf/WINNT5.1.mk
Expand Up @@ -35,29 +35,22 @@
# Config stuff for WINNT 5.1 (Windows XP)
#
# This makefile defines the following variables:
# CPU_ARCH, OS_CFLAGS, and OS_DLLFLAGS.
# PROCESSOR is an internal variable.
# OS_CFLAGS and OS_DLLFLAGS.

include $(CORE_DEPTH)/coreconf/WIN32.mk

PROCESSOR := $(shell uname -p)
ifeq ($(PROCESSOR), I386)
CPU_ARCH = x386
ifeq ($(CPU_ARCH), x386)
OS_CFLAGS += -W3 -nologo
DEFINES += -D_X86_
else
ifeq ($(PROCESSOR), MIPS)
CPU_ARCH = MIPS
ifeq ($(CPU_ARCH), MIPS)
#OS_CFLAGS += -W3 -nologo
#DEFINES += -D_MIPS_
OS_CFLAGS += -W3 -nologo
else
ifeq ($(PROCESSOR), ALPHA)
CPU_ARCH = ALPHA
ifeq ($(CPU_ARCH), ALPHA)
OS_CFLAGS += -W3 -nologo
DEFINES += -D_ALPHA_=1
else
CPU_ARCH = processor_is_undefined
endif
endif
endif
Expand Down
2 changes: 1 addition & 1 deletion security/coreconf/arch.mk
Expand Up @@ -252,7 +252,7 @@ ifeq (CYGWIN_NT,$(findstring CYGWIN_NT,$(OS_ARCH)))
# Cygwin's uname -m returns "i686" on a Pentium Pro machine.
#
ifneq (,$(findstring 86,$(CPU_ARCH)))
CPU_ARCH = x86
CPU_ARCH = x386
endif
endif
endif
Expand Down

0 comments on commit acaf5e7

Please sign in to comment.