~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to progs/fbdev/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for miniglx demo programs
2
 
 
3
 
TOP = ../..
4
 
 
5
 
include $(TOP)/configs/current
6
 
 
7
 
 
8
 
SOURCES = glfbdevtest.c
9
 
 
10
 
OBJECTS = $(SOURCES:.c=.o)
11
 
 
12
 
PROGS = $(SOURCES:%.c=%)
13
 
 
14
 
INCLUDES = \
15
 
        -I. \
16
 
        -I$(TOP)/include
17
 
 
18
 
 
19
 
##### RULES #####
20
 
 
21
 
.SUFFIXES:
22
 
.SUFFIXES: .c
23
 
 
24
 
.c:
25
 
        $(CC) $(INCLUDES) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
26
 
 
27
 
.c.o:
28
 
        $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
29
 
 
30
 
.S.o:
31
 
        $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
32
 
 
33
 
 
34
 
##### TARGETS #####
35
 
 
36
 
default:  depend $(PROGS)
37
 
 
38
 
clean:
39
 
        rm -f $(PROGS)
40
 
        rm -f *.o
41
 
 
42
 
 
43
 
depend: $(SOURCES)
44
 
        touch depend
45
 
        $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) > /dev/null 
46
 
 
47
 
 
48
 
# Emacs tags
49
 
tags:
50
 
        etags `find . -name \*.[ch]` `find ../include`
51
 
 
52
 
 
53
 
include depend