File: Makefile

package info (click to toggle)
ats2-lang 0.4.2-4
  • links: PTS
  • area: main
  • in suites:
  • size: 40,524 kB
  • sloc: ansic: 389,898; makefile: 7,138; javascript: 1,852; lisp: 811; sh: 657; php: 573; python: 387; perl: 365
file content (109 lines) | stat: -rw-r--r-- 2,061 bytes parent folder | download | duplicates (6)
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
######
#
PATSCC=$(PATSHOME)/bin/patscc
PATSOPT=$(PATSHOME)/bin/patsopt
#
######
#
CXXFLAGS = $(MYCFLAGS)
#
######
#
MYCFLAGS := -fpermissive -w
#
MYCFLAGS += -DATS_MEMALLOC_LIBC
#
MYCFLAGS += -D_ATS_CCOMP_PRELUDE_NONE_
#
MYCFLAGS += -D_ATS_CCOMP_EXCEPTION_NONE_
MYCFLAGS += -D_ATS_CCOMP_RUNTIME_TRYWITH_NONE_
#
MYCFLAGS += -D_ATS_CCOMP_PRELUDE_USER_='"pats_ats2cpp_prelude.h"'
#
# MYCFLAGS += -D_ATSTYPE_VAR_SIZE_=1024
#
MYCFLAGS += -I${PATSHOME}/contrib/ats2cpp
MYCFLAGS += -I${PATSHOME}/contrib/ats2cpp/H
MYCFLAGS += -I${PATSHOME}/contrib/ats2cpp/ccomp
#
######

CC=gcc
CPP=g++

######

all::

######
#
all:: \
test_deque_queue
test_deque_queue: \
test_deque_queue_dats.c; $(CPP) $(CXXFLAGS) -o $@ $<
test_deque_queue_dats.c: test_deque_queue.dats; $(PATSOPT) -o $@ -d $<
#
regress:: test_deque_queue; ./$<
cleanall:: ; rm -f test_deque_queue
#
######
#
all:: \
test_queue_queue
test_queue_queue: \
test_queue_queue_dats.c; $(CPP) $(CXXFLAGS) -o $@ $<
test_queue_queue_dats.c: test_queue_queue.dats; $(PATSOPT) -o $@ -d $<
#
regress:: test_queue_queue; ./$<
cleanall:: ; rm -f test_queue_queue
#
######
#
all:: \
test_stack_stack
test_stack_stack: \
test_stack_stack_dats.c; $(CPP) $(CXXFLAGS) -o $@ $<
test_stack_stack_dats.c: test_stack_stack.dats; $(PATSOPT) -o $@ -d $<
#
regress:: test_stack_stack; ./$<
cleanall:: ; rm -f test_stack_stack
#
######
#
all:: \
test_vector_array
test_vector_array: \
test_vector_array_dats.c; $(CPP) $(CXXFLAGS) -o $@ $<
test_vector_array_dats.c: test_vector_array.dats; $(PATSOPT) -o $@ -d $<
#
regress:: test_vector_array; ./$<
cleanall:: ; rm -f test_vector_array
#
######
#
all:: \
test_vector_stack
test_vector_stack: \
test_vector_stack_dats.c; $(CPP) $(CXXFLAGS) -o $@ $<
test_vector_stack_dats.c: test_vector_stack.dats; $(PATSOPT) -o $@ -d $<
#
regress:: test_vector_stack; ./$<
cleanall:: ; rm -f test_vector_stack
#
######

testall:: all
testall:: regress
testall:: cleanall

######

clean:: ; rm -f *~
clean:: ; rm -f *_?ats.c
clean:: ; rm -f *_?ats.o

######

cleanall:: clean

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