aboutsummaryrefslogtreecommitdiffstats
path: root/demos/natives/x11/makefile
blob: d4e03bba052d472a203f58b3365474c8017fa97e (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
30
#
# Uses: Linux2.0X-glibc-pthreads-mesa3.0pthreads
#

CC = cc 

CCINCL = -I/usr/local/include -I/usr/X11/include -I/usr/X11R6/include
CCLIBS = -L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11/lib \
         -lGL -lGLU -lglut \
	 -lXmu -lXt -lSM -lICE -lXext -lX11 -lXi -lXext -lX11 -lm -lpthread


C_APPL_FILES		= cube.c olympic.c testGL1.c testGL2.c wave.c


.SUFFIXES 		: .c .o

.c.o:
	$(CC) -c -o $@ $< $(CCINCL) 2>&1 | tee -a errors
	$(CC) -o ${@:.o=} $@ $(CCINCL) $(CCLIBS) 2>&1 | tee -a errors

all: ${C_APPL_FILES:.c=.o}


clean: 
	rm -f *.o *~ errors

cleanall: clean
	rm -f ${C_APPL_FILES:.c=}