File: Makefile

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 (18 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC = gcc -Wall -O2

CURL_CFLAGS := $(shell curl-config --cflags)
CURL_LIBS := $(shell curl-config --libs)
XML_CFLAGS := $(shell pkg-config --cflags libxml-2.0)
XML_LIBS := $(shell pkg-config --libs libxml-2.0)

CFLAGS = $(CURL_CFLAGS) $(XML_CFLAGS)
LIBS = $(CURL_LIBS) $(XML_LIBS) -lm

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

fedstl.idx: fred2db
	./fred2db

clean:
	rm -f fred2db *.idx *.bin