File: Makefile

package info (click to toggle)
ats-lang-anairiats 0.2.0-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 16,640 kB
  • ctags: 13,928
  • sloc: ansic: 217,676; makefile: 1,150; sh: 491
file content (52 lines) | stat: -rw-r--r-- 764 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
#
#
# Some Examples in ATS involving GTK+ programming
#
#

######

ATSCC=atscc
ATSOPT=atsopt
GTKFLAGS=`pkg-config gtk+-2.0 --cflags --libs`

######

.PHONY: all
all: compall

######

checkall:: compall cleanall

compall:: \
  GameOf24 \
  gtkcairoclock \

######

#
# Please do the following
#   cd $ATSHOME/contrib/GTK; make atsctrb_GTK.o
# if "atsctrb_GTK.o" is not available
#
include ../atshome.mk
LIBATSGTK=$(ATSHOME)/contrib/GTK/atsctrb_GTK.o
GameOf24: GameOf24.dats
	$(ATSCC) -D_ATS_GCATS -o $@ $(GTKFLAGS) GameOf24.dats $(LIBATSGTK)

######

gtkcairoclock: gtkcairoclock.dats
	$(ATSCC) -o $@ gtkcairoclock.dats $(GTKFLAGS)

######

clean::
	rm -f *_dats.c *_sats.c *~

cleanall:: clean
	rm -f GameOf24
	rm -f gtkcairoclock

###### end of [Makefile] ######