File: Makefile

package info (click to toggle)
libadabindx 0.7.2-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,136 kB
  • ctags: 32
  • sloc: ada: 35,597; makefile: 556; sh: 10
file content (77 lines) | stat: -rw-r--r-- 1,564 bytes parent folder | download
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
#
# Makefile for examples subdirectory
#
# September 97: new examples image, xlib_rubik, mandel (this only for
#               multithreaded X libraries)
# 9 Feb 2002 H.-F. Vogt: new example program show_printers
#

include ../Local.conf

SUBDIRS = actions xmmore clock display_info hello_world image \
          rotate_arrow testpath \
          show_extensions show_hosts show_screen_saver xlib_rubik xau_test
XPM_SUBDIRS = dig_clock xpminfo
R6_SUBDIRS  = mandel
R63_SUBDIRS  = mandel show_printers
MOTIF20_SUBDIRS = i18n

ALL_SUBDIRS = $(SUBDIRS) $(XPM_SUBDIRS) $(R63_SUBDIRS) $(R6_SUBDIRS) $(MOTIF20_SUBDIRS)


all: ladyada_xpm.ads
	for i in $(SUBDIRS) ;\
	do \
		(cd $$i; make all); \
	done
	if test -n "$(HAS_XPM)" ; \
	then \
		for i in $(XPM_SUBDIRS) ;\
		do \
			(cd $$i; make all); \
		done \
	fi
	if test -n "$(IS_X11R63)" ; \
	then \
		for i in $(R63_SUBDIRS) ;\
		do \
			(cd $$i; make all); \
		done \
	fi
	if test -n "$(IS_X11R6)" ; \
	then \
		for i in $(R6_SUBDIRS) ;\
		do \
			(cd $$i; make all); \
		done \
	fi
	if test -n "$(IS_MOTIF20)" ; \
	then \
		for i in $(MOTIF20_SUBDIRS) ;\
		do \
			(cd $$i; make all); \
		done \
	fi

ladyada_xpm.ads: ../utils/xpm2axpm ../ladyada.xpm
	if test -n "$(HAS_XPM)" ; \
	then \
		$(RM) ladyada_xpm.ads ; \
		../utils/xpm2axpm ../ladyada.xpm > ladyada_xpm.ads ; \
	else \
		touch ladyada_xpm.ads ; \
	fi

clean:
	for i in $(ALL_SUBDIRS) ;\
	do \
		(cd $$i; make clean); \
	done
	rm -f ladyada_xpm.ads

distclean:
	for i in $(ALL_SUBDIRS) ;\
	do \
		(cd $$i; make distclean); \
	done
	rm -f ladyada_xpm.ads