Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 63644
Collapse All | Expand All

(-)epoll-lib-0.11/Makefile.orig (-7 / +8 lines)
Lines 11-21 Link Here
11
#
11
#
12
#
12
#
13
13
14
PREFIX=/usr
14
PREFIX=$(DESTDIR)/usr
15
KERNELDIR=/usr/src/linux
15
KERNELDIR=/usr/src/linux
16
VERMAJOR=0
16
VERMAJOR=0
17
VERMINOR=11
17
VERMINOR=11
18
LIBVER=$(VERMAJOR).$(VERMINOR)
18
LIBVER=$(VERMAJOR).$(VERMINOR)
19
EPOLLCFG=release
19
20
20
OUTDIR = lib
21
OUTDIR = lib
21
TARGET = $(OUTDIR)/libepoll.a
22
TARGET = $(OUTDIR)/libepoll.a
Lines 30-39 Link Here
30
AR = ar
31
AR = ar
31
MAKE = make
32
MAKE = make
32
33
33
ifeq ($(EPOLLCFG), release)
34
CFLAGS += $(INCLUDE) -DUNIX
34
CFLAGS = -O3 $(INCLUDE) -DUNIX
35
ifneq ($(EPOLLCFG), release)
35
else
36
CFLAGS += -D_DEBUG
36
CFLAGS = -g $(INCLUDE) -DUNIX -D_DEBUG
37
endif
37
endif
38
38
39
SOURCES = $(SRCDIR)/epoll.c
39
SOURCES = $(SRCDIR)/epoll.c
Lines 43-49 Link Here
43
MKDEP = mkdep -f .depend
43
MKDEP = mkdep -f .depend
44
44
45
45
46
$(OUTDIR)/%.o: $(SRCDIR)/%.c
46
$(OUTDIR)/%.o: $(SRCDIR)/%.c .depend
47
	$(CC) $(CFLAGS) -o $(OUTDIR)/$*.o -c $(SRCDIR)/$*.c
47
	$(CC) $(CFLAGS) -o $(OUTDIR)/$*.o -c $(SRCDIR)/$*.c
48
48
49
all: .depend $(TARGET) epoll-example
49
all: .depend $(TARGET) epoll-example
Lines 55-64 Link Here
55
	$(AR) -cr $(TARGET) $(OBJECTS)
55
	$(AR) -cr $(TARGET) $(OBJECTS)
56
	$(LD) -shared -soname $(TARGET_SONAME) -o $(SO_TARGET) $(OBJECTS)
56
	$(LD) -shared -soname $(TARGET_SONAME) -o $(SO_TARGET) $(OBJECTS)
57
57
58
epoll-example:
58
epoll-example: $(TARGET)
59
	$(MAKE) -C examples
59
	$(MAKE) -C examples
60
60
61
install: $(TARGET)
61
install: $(TARGET)
62
	mkdir -p $(PREFIX)/include/sys $(PREFIX)/lib $(PREFIX)/man/man2 $(PREFIX)/man/man4
62
	@cp -f include/epoll.h $(PREFIX)/include/sys
63
	@cp -f include/epoll.h $(PREFIX)/include/sys
63
	@cp -f $(TARGET) $(SO_TARGET) $(PREFIX)/lib
64
	@cp -f $(TARGET) $(SO_TARGET) $(PREFIX)/lib
64
	@cp -f man/*.2 $(PREFIX)/man/man2
65
	@cp -f man/*.2 $(PREFIX)/man/man2
(-)epoll-lib-0.11/examples/Makefile.orig (-5 / +1 lines)
Lines 18-28 Link Here
18
18
19
CC = gcc
19
CC = gcc
20
20
21
ifeq ($(EPOLLCFG), release)
21
CFLAGS += -I../include
22
CFLAGS = -O3 $(INCLUDE) -DUNIX
23
else
24
CFLAGS = -g $(INCLUDE) -DUNIX -D_DEBUG
25
endif
26
22
27
SOURCES = $(SRCDIR)/epoll-test.c
23
SOURCES = $(SRCDIR)/epoll-test.c
28
24

Return to bug 63644