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

« back to all changes in this revision

Viewing changes to progs/miniglx/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 = miniglxtest.c \
9
 
        miniglxsample.c \
10
 
        sample_server.c \
11
 
        sample_server2.c \
12
 
        manytex.c \
13
 
        texline.c
14
 
 
15
 
OBJECTS = $(SOURCES:.c=.o)
16
 
 
17
 
PROGS = $(SOURCES:%.c=%)
18
 
 
19
 
INCLUDES = \
20
 
        -I. \
21
 
        -I$(TOP)/include
22
 
 
23
 
 
24
 
##### RULES #####
25
 
 
26
 
.SUFFIXES:
27
 
.SUFFIXES: .c
28
 
 
29
 
.c:
30
 
        $(CC) $(INCLUDES) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
31
 
 
32
 
.c.o:
33
 
        $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
34
 
 
35
 
.S.o:
36
 
        $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
37
 
 
38
 
 
39
 
##### TARGETS #####
40
 
 
41
 
default:  depend $(PROGS)
42
 
 
43
 
clean:
44
 
        rm -f $(PROGS)
45
 
        rm -f *.o
46
 
 
47
 
 
48
 
depend: $(SOURCES)
49
 
        touch depend
50
 
        $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) > /dev/null 
51
 
 
52
 
 
53
 
# Emacs tags
54
 
tags:
55
 
        etags `find . -name \*.[ch]` `find ../include`
56
 
 
57
 
 
58
 
include depend