]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Made a few changes to makefile so we can switch compiler more easily
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 2 Oct 2002 07:02:14 +0000 (07:02 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 2 Oct 2002 07:02:14 +0000 (07:02 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2489 d7cf8633-e32d-0410-b094-e92efae38249

makefile

index 2b2b623c4efabcaa8155a9d356b7483493920fbc..4693c102ba80828a748bd7e4584fefb074068632 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,4 +1,5 @@
-
+#choose the compiler you want here
+CC=gcc
 
 #uncomment these according to your sound driver
 
@@ -62,16 +63,16 @@ builddate:
        touch builddate.c
 
 vid_glx.o: vid_glx.c
-       gcc $(CFLAGS) -c vid_glx.c -I/usr/X11R6/include
+       $(CC) $(CFLAGS) -c vid_glx.c -I/usr/X11R6/include
 
 .c.o:
-       gcc $(CFLAGS) -c $*.c
+       $(CC) $(CFLAGS) -c $*.c
 
 darkplaces-glx:  $(SHAREDOBJECTS) $(CLIENTOBJECTS) $(SERVEROBJECTS) vid_glx.o $(CD) $(SND)
-       gcc -o $@ $^ $(LDFLAGS) -L/usr/X11R6/lib -lX11 -lXext -lXxf86dga -lXxf86vm $(SOUNDLIB)
+       $(CC) -o $@ $^ $(LDFLAGS) -L/usr/X11R6/lib -lX11 -lXext -lXxf86dga -lXxf86vm $(SOUNDLIB)
 
 darkplaces-dedicated: $(SHAREDOBJECTS) $(CLIENTOBJECTS) $(SERVEROBJECTS) vid_null.o cd_null.o snd_null.o
-       gcc -o $@ $^ $(LDFLAGS)
+       $(CC) -o $@ $^ $(LDFLAGS)
 
 clean:
        -rm -f darkplaces-glx darkplaces-dedicated *.o *.d