From: molivier Date: Wed, 2 Oct 2002 07:02:14 +0000 (+0000) Subject: Made a few changes to makefile so we can switch compiler more easily X-Git-Tag: RELEASE_0_2_0_RC1~162 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e2ae833554af0a402ae28c4a77451bffaa0cdd43;p=xonotic%2Fdarkplaces.git Made a few changes to makefile so we can switch compiler more easily git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2489 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/makefile b/makefile index 2b2b623c..4693c102 100644 --- 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