File: Makefile.in

package info (click to toggle)
libgtkada2 2.8.1-6lenny3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 13,496 kB
  • ctags: 3,886
  • sloc: ada: 103,189; ansic: 45,411; perl: 5,500; sh: 2,812; makefile: 1,169; xml: 19
file content (92 lines) | stat: -rw-r--r-- 2,287 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
SHELL = /bin/sh
@SET_MAKE@

include ../src/Makefile.common
examples=$(prefix)/share/examples/gtkada/testgtk

.SUFFIXES:
.SUFFIXES: .c .o .ads .adb .ali

.PHONY:
.PHONY: clean-generic mostlyclean-generic \
	clean distclean mostlyclean maintainer-clean \
	force

target  = testgtk
src_dir = ../src
opengl_dir = $(src_dir)/opengl

CC = @CC@
GTKADA_CONFIG=gtkada-config
GNATFLAGS = @CFLAGS@ -gnata -gnatws
GNATFLAGS_DEVEL = @CFLAGS@ -g -gnatawu
TARGET_LFLAGS = @TARGET_LFLAGS@

GNATMAKE = gnatmake
GNATMAKELDFLAGS = -largs -L$(src_dir) -L$(opengl_dir) -lgtkada @GTK_LIBS@ \
		  $(TARGET_LFLAGS)

CP = cp -pf
MKDIR = mkdir -p
RMDIR = rmdir
RM = rm -f
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@

## This variable should be set to "True" if the opengl directories
## have been installed on the system.
HAVE_OPENGL=@HAVE_OPENGL@

ifeq ($(HAVE_OPENGL),True)
OPENGL_C_OBJECTS=lw.o
OPENGL_LIBS= @GL_LIBS@
else
OPENGL_C_OBJECTS=
OPENGL_LIBS=
endif

all: opengl/view_gl.adb $(OPENGL_C_OBJECTS) $(target) 

$(target)::
	@echo "-------------------------------------"
	@echo $(GNATMAKE) $(GNATFLAGS) $(target) '`'$(GTKADA_CONFIG)'`'
	@echo "-------------------------------------"
	@if [ -f $(src_dir)/.devel ]; then \
	   $(GNATMAKE) $(GNATFLAGS_DEVEL) $(target) -I$(src_dir) -I$(src_dir)/opengl -Iopengl -aO$(src_dir)/lib-obj -largs $(GNATMAKELDFLAGS) $(OPENGL_C_OBJECTS) $(OPENGL_LIBS); \
	else \
	   $(GNATMAKE) $(GNATFLAGS) $(target) -I$(src_dir) -I$(src_dir)/opengl -Iopengl -largs $(GNATMAKELDFLAGS) $(OPENGL_C_OBJECTS) $(OPENGL_LIBS); \
	fi

opengl/view_gl.adb:: opengl/view_gl.gpb Makefile
	gnatprep -r -c -DHAVE_GL=$(HAVE_OPENGL) -DWIN32=False \
	  opengl/view_gl.gpb opengl/view_gl.adb

lw.o: opengl/lw.c opengl/lw.h
	$(CC) -c opengl/lw.c -Iopengl @GTK_CFLAGS@

install: all
	$(MKDIR) $(examples)
	$(MKDIR) $(examples)/opengl
	$(RM) b~*
	$(INSTALL_PROGRAM) testgtk $(examples)
	$(CP) *.ad? *.xpm *.png *.jpg *.gif *.lwo $(examples)
	$(CP) opengl/*.ad? opengl/*.[ch] $(examples)/opengl

clean:
	-${RM} *.o *.ali *~ testgtk b_testgtk.c b~testgtk.ad? core
	-${RM} opengl/view_gl.adb
	-${RM} .\#*

distclean: clean
	-${RM} Makefile

mostlyclean: clean
	-${RM} Makefile

maintainer-clean: clean
	-${RM} Makefile

force: