File: Makefile

package info (click to toggle)
golang-github-twstrike-otr3 0.0~git20161015.0.744856d-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,080 kB
  • sloc: ansic: 127; makefile: 76
file content (31 lines) | stat: -rw-r--r-- 662 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
30
31
LIBOTR_SRC = ./libotr-src
LIBOTR_TARGET = /tmp/libotr2-3.0.0
LIBORT = $(LIBOTR_TARGET)/lib/libotr.a

CFLAGS = -I$(LIBOTR_TARGET)/include/libotr
LDFLAGS =  -L$(LIBOTR_TARGET)/lib
LDLIBS = -lotr

GIT = git -C $(LIBOTR_SRC)

default:
	echo "No default rule"

$(LIBOTR_SRC):
	git clone git://git.otr.im/libotr.git $(LIBOTR_SRC)

$(LIBOTR_TARGET): $(LIBOTR_SRC)
	$(GIT) clean -fd
	$(GIT) checkout 63802c9
	cd $(LIBOTR_SRC) && autoreconf -s -i
	cd $(LIBOTR_SRC) && ./configure --with-pic --prefix=$(LIBOTR_TARGET)
	$(MAKE) -C $(LIBOTR_SRC) install

clean: clean-target clean-libotr-src

clean-libotr-src:
	rm -rf $(LIBOTR_SRC)

clean-target:
	rm -rf $(LIBOTR_TARGET)