Fix MAKE_OBJDIR and use ar under emx OS2_BRANCH
authorlaw
Wed, 08 Apr 1998 04:35:18 +0000
branchOS2_BRANCH
changeset 14 f6f203ac0be2bbae6c372b54b3b7a4ff5178a830
parent 13 d9af9428853b33769372eefe6225dc1cec03a0c3
child 15 822bf602d23ff5c4882f57ceabdbd626b5181a6f
push idunknown
push userunknown
push dateunknown
Fix MAKE_OBJDIR and use ar under emx
config/OS2.mk
--- a/config/OS2.mk
+++ b/config/OS2.mk
@@ -41,17 +41,17 @@ SHELL = GBASH.EXE
 CC			= icc -q -DXP_OS2 -N10
 CCC			= icc -q -DXP_OS2 -DOS2=4 -N10
 LINK			= flipper ilink
 AR			= flipper ilibo //noignorecase //nologo $@
 RANLIB = echo
 BSDECHO = echo
 NSINSTALL = nsinstall
 INSTALL	= $(NSINSTALL)
-MAKE_OBJDIR = -mkdir $(OBJDIR)
+MAKE_OBJDIR = if test ! -d $(OBJDIR); then mkdir $(OBJDIR); fi
 IMPLIB = flipper implib -nologo -noignorecase
 FILTER = flipper cppfilt -q
 RC = rc.exe
 
 GARBAGE =
 
 XP_DEFINE = -DXP_PC
 LIB_SUFFIX = lib
@@ -95,25 +95,27 @@ ifdef XP_OS2_VACPP
 
 DEFINES += -DXP_OS2_VACPP
 
 else
 
 CC		= gcc
 CCC		= gcc
 LINK	= gcc
-AR      = gcc
+AR      = ar -q $@
 RC 		= rc.exe
 
 DEFINES += -DXP_OS2_EMX
 
 ifdef BUILD_OPT
 OPTIMIZER	= -O3
 else
 OPTIMIZER	= -g
 endif
 
 OS_CFLAGS     = -I. -Wall -Zmt $(DEFINES)
 OS_EXE_CFLAGS = -I. -Wall -Zmt $(DEFINES)
 
+AR_EXTRA_ARGS =
+
 endif