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

« back to all changes in this revision

Viewing changes to progs/slang/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
 
# progs/slang/Makefile
2
 
 
3
 
TOP = ../..
4
 
 
5
 
include $(TOP)/configs/current
6
 
 
7
 
INCDIR = $(TOP)/include
8
 
 
9
 
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
10
 
 
11
 
#
12
 
# targets
13
 
#
14
 
 
15
 
.PHONY: default tests clean
16
 
 
17
 
default: cltest sotest vstest
18
 
 
19
 
tests: default
20
 
        ! ./sotest 2> /dev/null | (grep -e ^[*][*][*])
21
 
        ! ./vstest 2> /dev/null | (grep -e ^[*][*][*])
22
 
        ! ./cltest 2> /dev/null | (grep -e ^[*][*][*])
23
 
 
24
 
clean:
25
 
        rm -f cltest.o sotest.o vstest.o framework.o cltest sotest vstest
26
 
 
27
 
#
28
 
# executables
29
 
#
30
 
 
31
 
cltest: cltest.o framework.o $(LIB_DEP)
32
 
        $(CC) cltest.o framework.o $(APP_LIB_DEPS) -o cltest
33
 
 
34
 
sotest: sotest.o framework.o $(LIB_DEP)
35
 
        $(CC) sotest.o framework.o $(APP_LIB_DEPS) -o sotest
36
 
 
37
 
vstest: vstest.o framework.o $(LIB_DEP)
38
 
        $(CC) vstest.o framework.o $(APP_LIB_DEPS) -o vstest
39
 
 
40
 
#
41
 
# objects
42
 
#
43
 
 
44
 
framework.o: framework.c framework.h
45
 
        $(CC) -c -I$(INCDIR) framework.c -o framework.o
46
 
 
47
 
cltest.o: cltest.c framework.h
48
 
        $(CC) -c -I$(INCDIR) cltest.c -o cltest.o
49
 
 
50
 
sotest.o: sotest.c framework.h
51
 
        $(CC) -c -I$(INCDIR) sotest.c -o sotest.o
52
 
 
53
 
vstest.o: vstest.c framework.h
54
 
        $(CC) -c -I$(INCDIR) vstest.c -o vstest.o
55