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

Collapse All | Expand All

(-)wiiuse_v0.12.orig/src/Makefile (-8 / +8 lines)
Lines 16-22 CC = gcc Link Here
16
#
16
#
17
# Universal cflags
17
# Universal cflags
18
#
18
#
19
CFLAGS = -Wall -pipe -fPIC -funroll-loops
19
CFLAGS ?= -Wall -pipe -funroll-loops
20
CFLAGS += -fPIC
20
21
21
ifeq ($(debug),1)
22
ifeq ($(debug),1)
22
	OBJ_PREFIX = debug
23
	OBJ_PREFIX = debug
Lines 24-30 ifeq ($(debug),1) Link Here
24
25
25
else
26
else
26
	OBJ_PREFIX = release
27
	OBJ_PREFIX = release
27
	CFLAGS += -O2
28
#	CFLAGS += -O2
28
endif
29
endif
29
30
30
OBJ_DIR = $(OBJ_PREFIX)-$(shell $(CC) -v 2>&1|grep ^Target:|cut -d' ' -f2)
31
OBJ_DIR = $(OBJ_PREFIX)-$(shell $(CC) -v 2>&1|grep ^Target:|cut -d' ' -f2)
Lines 32-38 OBJ_DIR = $(OBJ_PREFIX)-$(shell $(CC) -v Link Here
32
#
33
#
33
# Linking flags
34
# Linking flags
34
#
35
#
35
LDFLAGS = -shared -lm -lbluetooth
36
LDFLAGS += -shared -Wl,-soname,libwiiuse.so.0
37
LIBS = -lm -lbluetooth
36
38
37
#
39
#
38
# Target binaries (always created as BIN)
40
# Target binaries (always created as BIN)
Lines 73-85 distclean: Link Here
73
	@-rm -r debug-* release-* 2> /dev/null
75
	@-rm -r debug-* release-* 2> /dev/null
74
76
75
install:
77
install:
76
	@if [ -e $(BIN) ]; then \
78
	install -D -m 755 $(BIN) $(DESTDIR)/usr/lib/libwiiuse.so
77
		cp -v $(BIN) /usr/lib ; \
79
	install -D -m 644 wiiuse.h $(DESTDIR)/usr/include/wiiuse.h
78
	fi
79
	@cp -v wiiuse.h /usr/include
80
80
81
$(BIN): mkdir $(OBJS)
81
$(BIN): mkdir $(OBJS)
82
	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $(BIN)
82
	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $(BIN) $(LIBS)
83
83
84
$(OBJ_DIR)/%.o: %.c
84
$(OBJ_DIR)/%.o: %.c
85
	$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
85
	$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@

Return to bug 252589