| 1 |
# |
| 2 |
# Copyright (C) 2009 Free Software Foundation, Inc. |
| 3 |
# |
| 4 |
# This program is free software; you can redistribute it and/or |
| 5 |
# modify it under the terms of the GNU General Public License as |
| 6 |
# published by the Free Software Foundation; either version 2, or (at |
| 7 |
# your option) any later version. |
| 8 |
# |
| 9 |
# This program is distributed in the hope that it will be useful, but |
| 10 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
# General Public License for more details. |
| 13 |
# |
| 14 |
# You should have received a copy of the GNU General Public License |
| 15 |
# along with this program; if not, write to the Free Software |
| 16 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 17 |
|
| 18 |
dir := libddekit |
| 19 |
makemode := library |
| 20 |
|
| 21 |
libname = libddekit |
| 22 |
SRCS= condvar.c init.c interrupt.c lock.c malloc.c memory.c \ |
| 23 |
pci.c pgtab.c printf.c resources.c list.c panic.c \ |
| 24 |
thread.c timer.c initcall.c acpiUser.c |
| 25 |
installhdrs = ddekit/condvar.h ddekit/lock.h \ |
| 26 |
ddekit/semaphore.h ddekit/debug.h \ |
| 27 |
ddekit/inline.h ddekit/panic.h \ |
| 28 |
ddekit/thread.h ddekit/types.h \ |
| 29 |
ddekit/pgtab.h ddekit/printf.h \ |
| 30 |
ddekit/pci.h ddekit/assert.h \ |
| 31 |
ddekit/interrupt.h ddekit/resources.h \ |
| 32 |
ddekit/memory.h ddekit/timer.h \ |
| 33 |
ddekit/initcall.h |
| 34 |
|
| 35 |
installhdrsubdir = . |
| 36 |
LCLHDRS = $(installhdrs) \ |
| 37 |
dde.h \ |
| 38 |
config.h list.h util.h |
| 39 |
|
| 40 |
OBJS = $(sort $(SRCS:.c=.o)) |
| 41 |
|
| 42 |
HURDLIBS = ports shouldbeinlibc hurd-slab irqhelp |
| 43 |
LDLIBS += -lpthread |
| 44 |
|
| 45 |
MIGCOMSFLAGS = -prefix dde_ |
| 46 |
|
| 47 |
include ../Makeconf |
| 48 |
|
| 49 |
LIBS += -lpciaccess |
| 50 |
|
| 51 |
$(libname).so.$(hurd-version): |
| 52 |
echo "INPUT ( $(libname)_pic.a )" > $@ |