File: Makefile.in

package info (click to toggle)
gretl 1.3.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 20,544 kB
  • ctags: 11,029
  • sloc: ansic: 156,263; xml: 31,443; sh: 8,558; makefile: 1,749; lisp: 1,120; perl: 911
file content (67 lines) | stat: -rw-r--r-- 1,168 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
topsrc = @top_srcdir@

tooldir = $(topsrc)/tools
libsrc = $(topsrc)/lib/src

CC = @CC@
CFLAGS = @CFLAGS@
have_gtk = @have_gtk@
GMP_LIBS = @GMP_LIBS@
FLIB = @FLIB@

ifeq ($(CC),)
  CC = gcc
endif

LIBGRETL = ../lib/libgretl-1.0.la
RAND_LIBS = $(LIBGRETL)

ifeq ($(GMP_LIBS),)
  DEFINES = -DNO_GMP -DSTANDALONE
else
  DEFINES = -DUSE_GMP -DSTANDALONE
endif

ifeq ($(havegtk),2.0)
  RAND_LIBS += $(GLIB_LIBS)
endif

VPATH = $(topsrc)/tests

override CFLAGS += -I$(libsrc) $(DEFINES)

all: nistcheck

nistcheck: nistcheck.o
	../libtool --mode=link $(CC) -o $@ $< $(LIBGRETL)

nistcheck.o: $(LIBGRETL)

randcheck: diehard mtrand
	if [ `pwd` != "$(topsrc)/tests" ] ; then \
	cp $(topsrc)/tests/operm5.data . ; \
	cp $(topsrc)/tests/randtests.txt . ; fi
	./mtrand && ./diehard

diehard: diehard.c
	$(CC) -o $@ $< $(FLIB) -lm

mtrand: mtrand.o
	../libtool --mode=link $(CC) -o $@ $< $(RAND_LIBS)

.PHONY :

check: nistcheck
	./nistcheck $(topsrc)/tests

clean:
	rm -f nistcheck diehard mtrand *.o test.out
	rm -f gretl_output.32 gretl_rand.txt
	if [ `pwd` != "$(topsrc)/tests" ] ; then \
	rm -f operm5.data randtests.txt ; fi
	rm -rf .libs

distclean: clean
	rm -f Makefile