New Makefile system
[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) $(LIB_DIR)/$(GLU_LIB) $(LIB_DIR)/$(GLUT_LIB)
9
10 PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
11 font line logo nurb oglinfo 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 clean:
30 -rm -f *.o *~
31
32 realclean:
33 -rm -f $(PROGS)
34 -rm -f *.o *~