You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/set_opacity/files/makefile.patch

22 lines
615 B

--- Makefile 2006-02-09 16:45:52.000000000 +0300
+++ Makefile 2011-07-18 13:58:58.644703015 +0400
@@ -1,14 +1,14 @@
PACKAGES = xcomposite xfixes xdamage xrender
-LIBS=`pkg-config --libs ${PACKAGES}` -lm
-INCS=`pkg-config --cflags ${PACKAGES}`
+LIBS=$(shell pkg-config --libs $(PACKAGES)) -lm
+INCS=$(shell pkg-config --cflags $(PACKAGES))
.c.o:
- $(CC) $(CFLAGS) $(INCS) -c $*.c
+ $(CC) $(CFLAGS) $(INCS) -c $< -o $@
OBJS=set_opacity.o interface.o stack.o
set_opacity: $(OBJS)
- $(CC) $(CFLAGS) -g -o $@ $(OBJS) $(LIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
$(OBJS): interface.h stack.h