blob: 7c4a028aa279f381729bf414598f4df224732157 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
ifeq (,$(wildcard config.mak))
$(error "config.mak is not present, run configure !")
endif
include config.mak
DISTFILE = libdlna-$(VERSION).tar.bz2
PKGCONFIG_DIR = $(libdir)/pkgconfig
PKGCONFIG_FILE = libdlna.pc
SRCS = test-libdlna.c
EXTRADIST = AUTHORS \
ChangeLog \
configure \
COPYING \
README \
SUBDIRS = src \
CFLAGS += -Isrc
LDFLAGS += -Lsrc -ldlna
ifeq ($(BUILD_STATIC),yes)
LDFLAGS += $(EXTRALIBS)
endif
all: lib
lib:
$(MAKE) -C src
clean:
$(MAKE) -C src clean
-$(RM) -f $(LIBTEST)
distclean: clean
-$(RM) -f config.log
-$(RM) -f config.mak
-$(RM) -f $(PKGCONFIG_FILE)
install: install-pkgconfig
$(MAKE) -C src install
install-pkgconfig: $(PKGCONFIG_FILE)
$(INSTALL) -d "$(PKGCONFIG_DIR)"
$(INSTALL) -m 644 $< "$(PKGCONFIG_DIR)"
.PHONY: clean distclean
.PHONY: install install-pkgconfig
dist:
-$(RM) $(DISTFILE)
dist=$(shell pwd)/libdlna-$(VERSION) && \
for subdir in . $(SUBDIRS); do \
mkdir -p "$$dist/$$subdir"; \
$(MAKE) -C $$subdir dist-all DIST="$$dist/$$subdir"; \
done && \
tar cjf $(DISTFILE) libdlna-$(VERSION)
-$(RM) -rf libdlna-$(VERSION)
dist-all:
cp $(EXTRADIST) $(SRCS) Makefile $(DIST)
.PHONY: dist dist-all
|