freebsd-ports/audio/wmfmixer/files/patch-Makefile
Patrick Li a820709400 Add new port wmfmixer - Yet another audio mixer
PR:		ports/39622
Submitted by:	Alexey Dokuchaev <danfe@regency.nsu.ru>
2002-06-24 04:54:43 +00:00

39 lines
846 B
Text

--- Makefile.orig Sun Nov 22 05:07:57 1998
+++ Makefile Fri Jun 21 15:07:46 2002
@@ -1,24 +1,20 @@
-LIBDIR = -L/usr/X11R6/lib
+CC ?= gcc
+CFLAGS += -c
+INCDIR = -I${X11BASE}/include
+LIBDIR = -L${X11BASE}/lib
LIBS = -lXpm -lXext -lX11
-CFLAGS = -O2
-OBJS = wmfmixer.o wmgeneral.o
+OBJS = wmfmixer.o wmgeneral.o
.c.o:
- cc -g -c $(CFLAGS) -Wall $< -o $*.o
+ ${CC} ${CFLAGS} ${INCDIR} $< -o $*.o
wmfmixer: $(OBJS)
- cc -o wmfmixer $^ -lXext $(LIBDIR) $(LIBS)
+ ${CC} -o wmfmixer $^ ${LIBDIR} ${LIBS}
-all:: wmfmixer
+all: wmfmixer
-clean::
- for i in $(OBJS) ; do \
- rm $$i; \
+clean:
+ for i in ${OBJS}; do \
+ rm -f $$i; \
done
- rm wmfmixer
-install::
-
- cp -f wmfmixer /usr/local/bin/
- chmod 755 /usr/local/bin/wmfmixer
- chown root:root /usr/local/bin/wmfmixer
- echo "WMFMIXER installation finished."
+ rm -f wmfmixer