2 # Author(s): Enrico Weigelt, metux IT services <weigelt@metux.de>
8 INCLUDEDIR?
=$(PREFIX
)/include
9 PKGCONFIGDIR?
=$(LIBDIR
)/pkgconfig
10 PKG_CONFIG?
=pkg-config
17 sed
-e
's~@VERSION@~$(VERSION)~' | \
18 sed
-e
's~@PREFIX@~$(PREFIX)~' | \
19 sed
-e
's~@LIBDIR@~$(LIBDIR)~' | \
20 sed
-e
's~@INCLUDEDIR@~$(INCLUDEDIR)~' > $@
23 $(AR
) cr
$@
$^
&& $(RANLIB
) $@
26 $(LD
) -o
$@
-shared
$^
-soname
$(SONAME
) -lc
-no-undefined
$(LIBS
)
29 $(CC
) -o
$@
-c
$< $(CFLAGS
)
32 $(CC
) -fpic
-o
$@
-c
$< $(CFLAGS
)