aboutsummaryrefslogtreecommitdiff
blob: 846209a9456b8f3ed9c08f3d593f577a65691958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- Makefile	2005-08-25 22:18:31.000000000 +0200
+++ Makefile.new	2009-03-21 15:11:55.000000000 +0100
@@ -4,8 +4,8 @@
 # You'll probably have to tweak this for your platform.
 
 
-CC = cc
-CFLAGS = -c -g -ansi -I/usr/local/include
+CC ?= gcc
+CFLAGS += -c -ansi -I/usr/include
 LIBS = -L/usr/X11R6/lib -lglut -lGLU -lGL -lX11 -lXmu -lXext -lm
 
 
@@ -19,13 +19,13 @@
 	$(CC) $(CFLAGS) tr.c
 
 trdemo1: trdemo1.o tr.o
-	$(CC) trdemo1.o tr.o $(LIBS) -o $@
+	$(CC) $(LDFLAGS) trdemo1.o tr.o $(LIBS) -o $@
 
 trdemo1.o: trdemo1.c tr.h
 	$(CC) $(CFLAGS) trdemo1.c
 
 trdemo2: trdemo2.o tr.o
-	$(CC) trdemo2.o tr.o $(LIBS) -o $@
+	$(CC) $(LDFLAGS) trdemo2.o tr.o $(LIBS) -o $@
 
 trdemo2.o: trdemo2.c tr.h
 	$(CC) $(CFLAGS) trdemo2.c