1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/audio/xmms-sapplug/files/patch-Makefile
Mathieu Arnold 9fa9eb9ac7 Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-26 16:51:15 +00:00

48 lines
1.2 KiB
Plaintext

--- Makefile.orig 2003-10-14 23:59:50 UTC
+++ Makefile
@@ -19,15 +19,18 @@
#
##########################################################################
-CC = gcc
+CC?= gcc
+MAKE?= make
-CFLAGS = -O2 -Wall -fPIC -fpic \
- -finline-functions -ffast-math \
- -funroll-all-loops -fomit-frame-pointer -fno-strength-reduce \
- $(shell xmms-config --cflags)
+CFLAGS?= -O2 -Wall -fPIC -fpic \
+ -finline-functions -ffast-math \
+ -funroll-all-loops -fomit-frame-pointer -fno-strength-reduce
-LINKER_FLAGS = -shared -Wl,-soname -Wl,$(TARGET) \
- -Wl,-retain-symbols-file -Wl,syms
+CFLAGS+= $(shell xmms-config --cflags)
+
+
+LDFLAGS+= -shared -Wl,-soname -Wl,$(TARGET) \
+ -Wl,-retain-symbols-file -Wl,syms
TARGET = libsap.so
@@ -43,15 +46,15 @@ all: library plugin
plugin: $(OBJS)
@./scripts/gen_symbols sap_plug.o
@echo
- $(CC) $(LINKER_FLAGS) $(OBJS) $(SAPLIB) -o $(TARGET)
+ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(SAPLIB) -o $(TARGET)
@echo
library:
@echo
- cd saplib && make
+ cd saplib && $(MAKE)
@echo
install:
cp $(TARGET) $(HOME)/.xmms/Plugins/Input
clean:
rm -f *.o *.so *.a .syms syms
realclean: clean
- cd saplib && make clean
+ cd saplib && $(MAKE) clean