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/xrootconsole/files/xrootconsole-0.6.makefile.p...

37 lines
845 B

--- a/Makefile
+++ b/Makefile
@@ -43,20 +43,16 @@
else echo Bleeding Edge Version; \
fi;)
-CC = gcc
-CPPFLAGS =
-
# for production
-CFLAGS = -O2 -DNDEBUG -Wall "-DXROOTCONSOLE_VERSION=\"$(VERSION)\"" \
- -I /usr/X11R6/include
-LDFLAGS = -s
+CFLAGS += -DNDEBUG -Wall "-DXROOTCONSOLE_VERSION=\"$(VERSION)\"" \
+ $(shell ${PKG_CONFIG} --cflags x11)
# for testing
#CFLAGS = -g -Wall "-DXROOTCONSOLE_VERSION=\"$(VERSION) (debug build)\"" \
-I /usr/X11R6/include
#LDFLAGS =
-LIBS = -L/usr/X11R6/lib -lX11 -lutil
+LIBS = $(shell ${PKG_CONFIG} --libs x11) -lutil
OBJS = main.o util.o
@@ -76,5 +72,7 @@
rm -f $(EXEC) *.o core *~
install: $(EXEC)
- cp $(EXEC) $(BINDIR)
- cp $(MANFILE) $(MANDIR)
+ install -d $(BINDIR)
+ install -d $(MANDIR)
+ install $(EXEC) $(BINDIR)
+ install $(MANFILE) $(MANDIR)