Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 127629 | Differences between
and this patch

Collapse All | Expand All

(-)sleepd-old/Makefile (-9 / +2 lines)
Lines 2-8 Link Here
2
BINS		= sleepd sleepctl
2
BINS		= sleepd sleepctl
3
PREFIX		= /
3
PREFIX		= /
4
INSTALL_PROGRAM	= install
4
INSTALL_PROGRAM	= install
5
USE_HAL		= 1
5
6
USE_HAL		= 0
6
7
7
# DEB_BUILD_OPTIONS suport, to control binary stripping.
8
# DEB_BUILD_OPTIONS suport, to control binary stripping.
8
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
9
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
Lines 19-32 Link Here
19
20
20
all: $(BINS)
21
all: $(BINS)
21
22
22
ifdef USE_HAL
23
LIBS+=$(shell pkg-config --libs hal)
24
OBJS+=simplehal.o
25
CFLAGS+=-DHAL
26
simplehal.o: simplehal.c
27
	$(CC) $(CFLAGS) $(shell pkg-config --cflags hal) -c simplehal.c -o simplehal.o
28
endif
29
30
sleepd: $(OBJS)
23
sleepd: $(OBJS)
31
	$(CC) $(CFLAGS) -o sleepd $(OBJS) $(LIBS)
24
	$(CC) $(CFLAGS) -o sleepd $(OBJS) $(LIBS)
32
25

Return to bug 127629