summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-04-03 01:44:55 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-04-03 01:44:55 +0000
commit7ab2ca6642902f0e3ca095420eaf6a97e5b639ed (patch)
tree6ec41eed86efe13200728f6e8a24675c1fb69add /Makefile
parent1a8ae5bb267dc3fcd75856dd62b40c252f444c7c (diff)
downloadlibcss-7ab2ca6642902f0e3ca095420eaf6a97e5b639ed.tar.gz
libcss-7ab2ca6642902f0e3ca095420eaf6a97e5b639ed.tar.bz2
Reflect shared library versioning
svn path=/trunk/libcss/; revision=7032
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 17 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 1e8b2e3..2a93926 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
# Component settings
COMPONENT := css
+COMPONENT_VERSION := 0.0.1
# Default to a static library
COMPONENT_TYPE ?= lib-static
@@ -17,24 +18,26 @@ CFLAGS := $(CFLAGS) -std=c99 -D_BSD_SOURCE -I$(CURDIR)/include/ \
# Parserutils & wapcaplet
ifneq ($(PKGCONFIG),)
- CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) libparserutils libwapcaplet --cflags)
- LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) libparserutils libwapcaplet --libs)
+ CFLAGS := $(CFLAGS) $(shell $(PKGCONFIG) libparserutils-0 libwapcaplet-0 --cflags)
+ LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) libparserutils-0 libwapcaplet-0 --libs)
else
- LDFLAGS := $(LDFLAGS) -lparserutils -lwapcaplet
+ LDFLAGS := $(LDFLAGS) -lparserutils0 -lwapcaplet0
endif
include build/makefiles/Makefile.top
# Extra installation rules
-INSTALL_ITEMS := $(INSTALL_ITEMS) /include/libcss:include/libcss/computed.h
-INSTALL_ITEMS := $(INSTALL_ITEMS) /include/libcss:include/libcss/errors.h
-INSTALL_ITEMS := $(INSTALL_ITEMS) /include/libcss:include/libcss/fpmath.h
-INSTALL_ITEMS := $(INSTALL_ITEMS) /include/libcss:include/libcss/functypes.h
-INSTALL_ITEMS := $(INSTALL_ITEMS) /include/libcss:include/libcss/hint.h
-INSTALL_ITEMS := $(INSTALL_ITEMS) /include/libcss:include/libcss/libcss.h
-INSTALL_ITEMS := $(INSTALL_ITEMS) /include/libcss:include/libcss/properties.h
-INSTALL_ITEMS := $(INSTALL_ITEMS) /include/libcss:include/libcss/select.h
-INSTALL_ITEMS := $(INSTALL_ITEMS) /include/libcss:include/libcss/stylesheet.h
-INSTALL_ITEMS := $(INSTALL_ITEMS) /include/libcss:include/libcss/types.h
+I := /include/libcss$(major-version)/libcss
+
+INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/computed.h
+INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/errors.h
+INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/fpmath.h
+INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/functypes.h
+INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/hint.h
+INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/libcss.h
+INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/properties.h
+INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/select.h
+INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/stylesheet.h
+INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libcss/types.h
INSTALL_ITEMS := $(INSTALL_ITEMS) /lib/pkgconfig:lib$(COMPONENT).pc.in
-INSTALL_ITEMS := $(INSTALL_ITEMS) /lib:$(BUILDDIR)/lib$(COMPONENT)$(LIBEXT)
+INSTALL_ITEMS := $(INSTALL_ITEMS) /lib:$(OUTPUT)