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-wm/matwm2/files/matwm2-0.0.96-Makefile.patch

24 lines
897 B

--- Makefile
+++ Makefile
@@ -4,10 +4,8 @@
CC = cc
RM = rm -f
-CFLAGS += -I$(XROOT)/include # remove the + for this and the next line if make complains about being unable to add to a non-existing macro
-LDFLAGS += -lX11 -L$(XROOT)/lib
CFLAGS += -DSHAPE # comment out this line to disable shape support
-LDFLAGS += -lXext # if shape support is disabled, this normally is no longer necessary and schould probally be commented out too
+LIBS += -lXext -lX11 # if shape support is disabled, this normally is no longer necessary and schould probally be commented out too
#CFLAGS += -DDEBUG -ggdb3 # -DDEBUG_EVENTS -DSYNC # for debugging
CFLAGS += -Wall -Wextra -Wno-unused-parameter
@@ -19,7 +17,7 @@
all: matwm2
matwm2: $(OBJFILES) $(HEADERS)
- $(CC) -o $@ $(OBJFILES) $(LDFLAGS)
+ $(CC) $(LDFLAGS) -o $@ $(OBJFILES) $(LIBS)
clean:
$(RM) matwm2 *.o