Merge branch '7.8' into master
[mesa.git] / progs / fpglsl / Makefile
1 # progs/tests/Makefile
2
3
4 # These programs aren't intended to be included with the normal distro.
5 # They're not too interesting but they're good for testing.
6
7 TOP = ../..
8 include $(TOP)/configs/current
9
10 LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLEW_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
11
12 SOURCES = \
13 fp-tri.c
14
15
16
17 PROGS = $(SOURCES:%.c=%)
18
19 INCLUDES = -I. -I$(TOP)/include -I../samples
20
21
22 ##### RULES #####
23
24 .SUFFIXES:
25 .SUFFIXES: .c
26
27 .c:
28 $(CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
29
30 .c.o:
31 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
32
33 .S.o:
34 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
35
36
37 ##### TARGETS #####
38
39 default: $(PROGS)
40
41 clean:
42 rm -f $(PROGS)
43 rm -f *.o
44 rm -f getproclist.h
45
46
47
48
49
50 # Emacs tags
51 tags:
52 etags `find . -name \*.[ch]` `find ../include`