File: Makefile.in

package info (click to toggle)
gretl 2016d-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 48,620 kB
  • ctags: 22,779
  • sloc: ansic: 345,830; sh: 4,648; makefile: 2,712; xml: 570; perl: 364
file content (29 lines) | stat: -rw-r--r-- 624 bytes parent folder | download | duplicates (3)
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
topsrc = @top_srcdir@

CC = @CC@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
VPATH = $(topsrc)/extra

PREFIX = $(shell pkg-config --variable=prefix gretl)
GRETL_CFLAGS = $(shell pkg-config --cflags gretl)
LIBS = $(shell pkg-config --libs gretl)

override CFLAGS += $(GRETL_CFLAGS) -DPREFIX=\"$(PREFIX)\"

all: simple_client arma_example nls_example

simple_client: simple_client.c
	$(CC) $(CFLAGS) $< -o $@ $(LIBS)

arma_example: arma_example.c
	$(CC) $(CFLAGS) $< -o $@ $(LIBS)

nls_example: nls_example.c
	$(CC) $(CFLAGS) $< -o $@ $(LIBS)

clean:
	rm -f simple_client arma_example nls_example 

distclean: clean
	rm -f Makefile