36de6e28cf20fe2ee28680c7733261fdeccb500d
[profile/ivi/mesa.git] / progs / samples / Makefile
1 # progs/samples/Makefile
2
3 TOP = ../..
4 include $(TOP)/configs/current
5
6 INCDIR = $(TOP)/include
7
8 LIB_DEP = $(LIB_DIR)/$(GL_LIB_NAME) $(LIB_DIR)/$(GLU_LIB_NAME) $(LIB_DIR)/$(GLUT_LIB_NAME)
9
10 PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
11         font line logo nurb olympic overlay point prim quad select \
12         shape sphere star stencil stretch texture tri wave
13
14
15 ##### RULES #####
16
17 .SUFFIXES:
18 .SUFFIXES: .c
19
20 .c: $(LIB_DEP)
21         $(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
22
23
24
25 ##### TARGETS #####
26
27 default: $(PROGS)
28
29
30 clean:
31         -rm -f $(PROGS)
32         -rm -f *.o *~