1
# -*- Makefile -*- to build testgtk
2
# Copyright (c) 2004 Ludovic Brenta <ludovic.brenta@insalien.org>
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.
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.
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
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
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.
32
C_OBJECTS=$(patsubst opengl/%.c,obj/%.o,$(wildcard opengl/*.c))
35
all: obj $(C_OBJECTS) opengl/view_gl.adb force
36
gnatmake -Ptestgtk.gpr
42
gcc -c $(CFLAGS) -o $@ $< `pkg-config --cflags glib-2.0`
44
opengl/%.adb: opengl/%.gpb
45
gnatprep -r -c -DHAVE_GL=True -DWIN32=False $< $@