Build mesa glsl with make.
[mesa.git] / src / glsl / apps / Makefile
1 # src/glsl/apps/Makefile
2
3 TOP = ../../..
4
5 include $(TOP)/configs/current
6
7 LIBS = \
8 $(TOP)/src/glsl/pp/libglslpp.a \
9 $(TOP)/src/glsl/cl/libglslcl.a
10
11 SOURCES = \
12 compile.c \
13 process.c \
14 purify.c \
15 tokenise.c \
16 version.c
17
18 APPS = $(SOURCES:%.c=%)
19
20 INCLUDES = -I.
21
22
23 ##### RULES #####
24
25 .SUFFIXES:
26 .SUFFIXES: .c
27
28 .c:
29 $(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
30
31 .c.o:
32 $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
33
34
35 ##### TARGETS #####
36
37 default: $(APPS)
38
39 clean:
40 -rm -f $(APPS)
41 -rm -f *.o
42