summaryrefslogtreecommitdiff
path: root/test/spass/Makefile
blob: 6a4cd598f737d74d83883f7a2b1384a5074ad36b (plain)
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
include ../../Makefile.config

CC=../../ccomp 
CFLAGS=-stdlib ../../runtime -dparse -dclight -dasm -fstruct-return
ifeq ($(CCHECKLINK),true)
CCHECK=../../cchecklink
CFLAGS+= -sdump
endif

SRCS=analyze.c clause.c clock.c closure.c cnf.c component.c                 \
  condensing.c context.c defs.c dfgparser.c dfgscanner.c doc-proof.c        \
  flags.c foldfg.c graph.c hash.c hasharray.c iaparser.c iascanner.c        \
  kbo.c list.c memory.c misc.c options.c order.c partition.c                \
  proofcheck.c renaming.c resolution.c rpos.c rules-inf.c rules-red.c       \
  rules-sort.c rules-split.c rules-ur.c search.c sharing.c sort.c st.c      \
  stack.c strings.c subst.c subsumption.c symbol.c table.c tableau.c        \
  term.c terminator.c top.c unify.c vector.c

all: spass

spass: $(SRCS:.c=.o)
	$(CC) $(CFLAGS) -o spass $(SRCS:.c=.o) $(LIBMATH)

clean:
	rm -f spass
	rm -f *.o *.s *.parsed.c *.light.c *.sdump

test:
	./spass small_problem.dfg | grep 'Proof found'

TIME=xtime -o /dev/null     # Xavier's hack
#TIME=time >/dev/null       # Otherwise

bench:
	@echo -n "spass: "; $(TIME) ./spass problem.dfg

ccheck:
	@echo "---- spass"
	@$(CCHECK) -exe spass *.sdump

depend:
	gcc -MM $(SRCS) > .depend

include .depend