blob: 98832e186b0125c7fb90138bb81f8dbaec5a85b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
--- Makefile.orig 2007-10-28 19:36:45.000000000 +0100
+++ Makefile 2007-11-28 15:07:03.000000000 +0100
@@ -7,7 +7,7 @@
CC ?= gcc
CFLAGS ?= -O2 -pipe
-CFLAGS += -Wall -fPIC -DPIC -I/usr/local/include
+CFLAGS += -Wall -fPIC -DPIC -I$(LOCALBASE)/include
AUDACIOUSCFLAGS = $(shell pkg-config 'audacious >= 1.4' --cflags || echo "old")
ifeq ($(AUDACIOUSCFLAGS),old)
@@ -17,6 +17,8 @@
CFLAGS += $(AUDACIOUSCFLAGS)
endif
+LDFLAGS+= -fPIC -DPIC
+
DUMBLIBS := -ldumb -L/usr/local/lib
AUDACIOUSLIBS := $(shell pkg-config audacious --libs)
@@ -25,13 +27,9 @@
OBJECTS := $(SOURCES:%.c=$(OBJDIR)/%.o)
all: $(PLUGIN_FILE)
- @echo
- @echo "The plug-in has been compiled. Run one of the following:"
- @echo "make install - for global (root) installation to $(INSTALL_DIR)"
- @echo "make install-home - for installation to home directory $(INSTALL_DIR_HOME)"
$(PLUGIN_FILE): $(OBJECTS)
- $(CC) -shared -o $@ $^ $(DUMBLIBS) $(AUDACIOUSLIBS)
+ $(CC) $(LDFLAGS) -shared -o $@ $^ $(DUMBLIBS) $(AUDACIOUSLIBS)
$(OBJDIR)/%.o: %.c
$(CC) -o $@ $(CFLAGS) -c $<
|