~ubuntu-branches/ubuntu/intrepid/libgtkada2/intrepid

« back to all changes in this revision

Viewing changes to testgtk/testgtk.mak

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2008-08-11 09:46:51 UTC
  • mfrom: (6.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20080811094651-9mjd6acwa98ffw5c
Tags: 2.12.0-2ubuntu1
Add lpia to supported architectures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- Makefile -*- to build testgtk
2
 
# Copyright (c) 2004 Ludovic Brenta <ludovic.brenta@insalien.org>
3
 
 
4
 
# This program is free software; you can redistribute it and/or modify
5
 
# it under the terms of the GNU General Public License as published by
6
 
# the Free Software Foundation; either version 2 of the License, or
7
 
# (at your option) any later version.
8
 
 
9
 
# This program is distributed in the hope that it will be useful, but
10
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 
# General Public License for more details.
13
 
 
14
 
# You should have received a copy of the GNU General Public License
15
 
# along with this program; if not, write to the Free Software
16
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17
 
# USA
18
 
 
19
 
 
20
 
 
21
 
# On Debian GNU/Linux, the preferred way to build Ada software is to
22
 
# use GNAT project files.  This simple Makefile compiles the C portion
23
 
# of testgtk and delegates the rest of processing to such a project
24
 
# file.
25
 
 
26
 
# The Makefile in this directory is unchanged from the upstream
27
 
# sources; however, it will not work because it assumes that it
28
 
# resides in the GtkAda source directory.  Use this file instead.
29
 
 
30
 
.SUFFIXES:
31
 
 
32
 
C_OBJECTS=$(patsubst opengl/%.c,obj/%.o,$(wildcard opengl/*.c))
33
 
CFLAGS=-g -O2
34
 
 
35
 
all: obj $(C_OBJECTS) opengl/view_gl.adb force
36
 
        gnatmake -Ptestgtk.gpr
37
 
 
38
 
obj:
39
 
        -mkdir -p obj
40
 
 
41
 
obj/%.o: opengl/%.c
42
 
        gcc -c $(CFLAGS) -o $@ $< `pkg-config --cflags glib-2.0`
43
 
 
44
 
opengl/%.adb: opengl/%.gpb
45
 
        gnatprep -r -c -DHAVE_GL=True -DWIN32=False $< $@
46
 
 
47
 
.PHONY: force