Commit 97bc6346 by Peter Pentchev

Merge libdebug-0.5.1 into the Debian branch.

parents 681a9d6a 3510ebe5
Changelog for libdebug.
0.5.2 2017/01/09
- let some build tool names (CC, AR, ARFLAGS, INSTALL) be
overridden by environment variables
- allow libdebug to be built in parallel by actually defining
all the created files as make(1) targets
- use single quotes around constant strings in the Makefiles
0.5.1 2016/04/18
- drop the sizeof(char) use in allocations; I don't think that
libdebug has ever been meant to be used on an architecture
......
......@@ -2,7 +2,7 @@
# -*- sh -*-
# Copyright (c) 2002-2004 Abraham vd Merwe <abz@blio.com>
# Copyright (c) 2009 Peter Pentchev <roam@ringlet.net>
# Copyright (c) 2009, 2017 Peter Pentchev <roam@ringlet.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
......@@ -59,12 +59,12 @@ distclean::
rm -f debian/*.debhelper debian/*.substvars
rm -f debian/substvars debian/files debian/*~
rm -rf debian/libdebug0-dev debian/libdebug0 debian/tmp
find . -name "*~" -exec rm -f {} \;
find . -name ".index" -exec rm -f {} \;
find . -name '*~' -exec rm -f {} \;
find . -name '.index' -exec rm -f {} \;
install::
$(INSTALL) -d $(DESTDIR)$(libdir)
for F in $(shell find include/debug -name "*.h"); do $(INSTALL) -c -D -m 0644 $$F $(DESTDIR)$(includedir)$${F#include}; done
for F in $(shell find include/debug -name '*.h'); do $(INSTALL) -c -D -m 0644 $$F $(DESTDIR)$(includedir)$${F#include}; done
uninstall::
rm -rf $(DESTDIR)$(includedir)/debug
......@@ -2,6 +2,7 @@
# -*- sh -*-
# Copyright (c) 2002-2004 Abraham vd Merwe <abz@blio.com>
# Copyright (c) 2017 Peter Pentchev <roam@ringlet.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
......@@ -114,8 +115,13 @@ $(LIB):: $(LIB_A)
$(LIB):: $(OBJ)
$(CC) $(LDFLAGS) -shared -Wl,-soname -Wl,$(LIB_MAJOR) $^ -o $@ $(LDLIBS)
ln -sf $@ $(LIB_MAJOR)
$(LIB_MAJOR): $(LIB)
ln -sf $(LIB) $(LIB_MAJOR)
$(LIB_SO): $(LIB_MAJOR)
ln -sf $(LIB_MAJOR) $(LIB_SO)
else # ifneq ($(MAJOR),)
$(LIB):: $(OBJ)
$(CC) $(LDFLAGS) -shared $^ -o $@ $(LDLIBS)
......
......@@ -2,7 +2,7 @@
# -*- sh -*-
# Copyright (c) 2002-2004 Abraham vd Merwe <abz@blio.com>
# Copyright (c) 2009, 2016 Peter Pentchev <roam@ringlet.net>
# Copyright (c) 2009, 2016, 2017 Peter Pentchev <roam@ringlet.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
......@@ -35,7 +35,7 @@ TOPDIR = ..
# version
MAJOR = 0
MINOR = 5
PATCH = 1
PATCH = 2
# subdirectories (leave as is if there is no subdirectories)
DIR =
......
......@@ -2,6 +2,7 @@
# -*- sh -*-
# Copyright (c) 2002-2004 Abraham vd Merwe <abz@blio.com>
# Copyright (c) 2017 Peter Pentchev <roam@ringlet.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
......@@ -59,15 +60,17 @@ else # ifndef CROSS
CFLAGS += -mapcs-32 -march=armv4 -mtune=strongarm1100 -mshort-load-bytes
endif # ifndef CROSS
CC = $(CROSS)$(COLOR)gcc
_CC = $(CROSS)$(COLOR)gcc
ifeq ($(shell which $(CC)),)
CC = $(CROSS)gcc
endif # ifeq ($(shell which $(CC)),)
ifeq ($(shell which $(_CC)),)
_CC = $(CROSS)gcc
endif # ifeq ($(shell which $(_CC)),)
ifeq ($(shell which $(CC)),)
CC = gcc
endif # ifeq ($(shell which $(CC)),)
ifeq ($(shell which $(_CC)),)
_CC = gcc
endif # ifeq ($(shell which $(_CC)),)
CC ?= $(_CC)
ifeq ($(DEBUG),"yes")
CFLAGS += -ggdb
......@@ -86,8 +89,8 @@ ifneq ($(shell echo $(LIB) | grep -e '\.so'),)
CFLAGS += -fPIC
endif # ifeq ($(suffix $(LIB)),.so)
INSTALL = install
INSTALL ?= install
AR = $(CROSS)ar
ARFLAGS = crv
AR ?= $(CROSS)ar
ARFLAGS ?= crv
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment