r121 - trunk/code/unix

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Sep 27 13:45:16 EDT 2005


Author: tma
Date: 2005-09-27 13:45:16 -0400 (Tue, 27 Sep 2005)
New Revision: 121

Modified:
   trunk/code/unix/Makefile
Log:
* Assorted Makefile cleanups/cruft removal


Modified: trunk/code/unix/Makefile
===================================================================
--- trunk/code/unix/Makefile	2005-09-27 16:35:25 UTC (rev 120)
+++ trunk/code/unix/Makefile	2005-09-27 17:45:16 UTC (rev 121)
@@ -24,9 +24,9 @@
 #############################################################################
 #
 # If you require a different configuration from the defaults below, create a
-# new file name "Makefile.local" in the same directory as this file and define
-# your parameters there. This allows you change configuration without causing
-# problems with keeping up to date with the repository.
+# new file named "Makefile.local" in the same directory as this file and define
+# your parameters there. This allows you to change configuration without
+# causing problems with keeping up to date with the repository.
 #
 #############################################################################
 -include Makefile.local
@@ -116,22 +116,20 @@
   endif
   endif
 
-  # bk001205: no mo'  -I/usr/include/glide, no FX
-  # bk001205: no mo'  -Dstricmp=strcasecmp, see q_shared.h
   BASE_CFLAGS =  -pipe -Wall -Wimplicit -Wstrict-prototypes
-  #BASE_CFLAGS += -Werror # Disabled due to #warning usage.
+
   # rcg010216: DLL_ONLY for PPC
   ifeq ($(strip $(DLL_ONLY)),true)
     BASE_CFLAGS += -DDLL_ONLY
   endif
 
-  # !!! FIXME: make this a build option? Make it coexist with X11 glimp?
   ifeq ($(strip $(USE_SDL)),true)
     BASE_CFLAGS += -DUSE_SDL=1 $(shell sdl-config --cflags)
+    GL_CFLAGS =
+  else
+    GL_CFLAGS = -I/usr/X11R6/include
   endif
 
-  GL_CFLAGS = -I/usr/X11R6/include
-
   OPTIMIZE = -O3 -ffast-math -funroll-loops -fomit-frame-pointer \
     -fno-strict-aliasing
 
@@ -153,24 +151,14 @@
   endif
   endif
 
-  # bk001204 - need -O for -Wall for uninitialized
-  # bk001205 - took out -O to get assertions (NDEBUG)
-  # bk001206 - MALLOC_CHECK in addition to ZONE_DEBUG
-  # TTimo 03/30/2001 temporary took out -Werror for initial merge
   DEBUG_CFLAGS = $(BASE_CFLAGS) -g -DNO_MOUSEGRAB -O0
 
   RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE)
 
-  LIBEXT=a
-
   SHLIBEXT=so
   SHLIBCFLAGS=-fPIC
   SHLIBLDFLAGS=-shared $(LDFLAGS)
 
-  AR=ar
-  ARFLAGS=rv
-  RANLIB=ranlib
-
   THREAD_LDFLAGS=-lpthread
   LDFLAGS=-ldl -lm
 
@@ -252,16 +240,10 @@
 
   RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE)
 
-  LIBEXT=lib
-
   SHLIBEXT=dll
   SHLIBCFLAGS=
   SHLIBLDFLAGS=-shared $(LDFLAGS)
 
-  AR=ar
-  ARFLAGS=rv
-  RANLIB=ranlib
-
   LDFLAGS= -mwindows -lwsock32 -lgdi32 -lwinmm -lole32
   GLLDFLAGS=
 
@@ -327,21 +309,14 @@
       -fno-strict-aliasing -fstrength-reduce
   endif
 
-  LIBEXT=a
-
   SHLIBEXT=so
   SHLIBCFLAGS=-fPIC
   SHLIBLDFLAGS=-shared $(LDFLAGS)
 
-  ARFLAGS=ar rv
-  RANLIB=ranlib
-
   THREAD_LDFLAGS=-lpthread
   # don't need -ldl (FreeBSD)
   LDFLAGS=-lm
 
-  #GLLDFLAGS=-L/usr/X11R6/lib -L$(MESADIR)/lib -lGL -lX11 -lXext -lXxf86dga -lXxf86vm
-  #GLLDFLAGS=-L/usr/X11/lib -lGL -lX11 -lXext -lm
   GLLDFLAGS=-L/usr/X11R6/$(LIB) -lGL -lX11 -lXext -lXxf86dga -lXxf86vm
 
   ifeq ($(ARCH),axp)
@@ -375,15 +350,10 @@
   RELEASE_CFLAGS=$(BASE_CFLAGS) -O3
   DEBUG_CFLAGS=$(BASE_CFLAGS) -g
 
-  LIBEXT=a
-
   SHLIBEXT=so
   SHLIBCFLAGS=
   SHLIBLDFLAGS=-shared
 
-  ARFLAGS=ar rv
-  RANLIB=ranlib
-
   LDFLAGS=-ldl -lm
   GLLDFLAGS=-L/usr/X11/$(LIB) -lGL -lX11 -lXext -lm
 
@@ -396,20 +366,15 @@
 # SETUP AND BUILD -- GENERIC
 #############################################################################
 
-#CC=egcs
-#BASE_CFLAGS=-Dstricmp=strcasecmp
-#DEBUG_CFLAGS=$(BASE_CFLAGS) -g
-#RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O3
+  CC=cc
+  BASE_CFLAGS=
+  DEBUG_CFLAGS=$(BASE_CFLAGS) -g
+  RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG -O3
 
-  LIBEXT=a
-
   SHLIBEXT=so
   SHLIBCFLAGS=-fPIC
   SHLIBLDFLAGS=-shared
 
-  ARFLAGS=ar rv
-  RANLIB=ranlib
-
   TARGETS=\
     $(B)/$(PLATFORM)q3ded
 




More information about the quake3-commits mailing list