patch-wmtimer_Makefile 790 B

12345678910111213141516171819202122232425262728
  1. $OpenBSD: patch-wmtimer_Makefile,v 1.5 2017/02/28 21:00:12 naddy Exp $
  2. --- wmtimer/Makefile.orig Mon Jan 5 01:30:50 2004
  3. +++ wmtimer/Makefile Tue Feb 28 21:53:00 2017
  4. @@ -1,7 +1,7 @@
  5. -CC = gcc
  6. -LIBDIR = -L/usr/X11R6/lib -L/usr/lib
  7. +CC ?= gcc
  8. +LIBDIR = -L${X11BASE}/lib
  9. LIBS = -lXpm -lXext -lX11 -lpthread `pkg-config --libs gtk+-2.0`
  10. -CFLAGS = `pkg-config --cflags gtk+-2.0`
  11. +CFLAGS += -I${X11BASE}/include `pkg-config --cflags gtk+-2.0`
  12. OBJS = wmtimer.o \
  13. ../wmgeneral/wmgeneral.o \
  14. @@ -10,10 +10,10 @@ OBJS = wmtimer.o \
  15. all: wmtimer
  16. .c.o:
  17. - $(CC) -g -c -O2 -Wall $< -o $*.o $(CFLAGS)
  18. + $(CC) -c $(CFLAGS) $< -o $*.o
  19. wmtimer: $(OBJS)
  20. - $(CC) -Wall -g -o wmtimer $^ $(LIBDIR) $(LIBS)
  21. + $(CC) -o $@ $(OBJS) $(LIBDIR) $(LIBS)
  22. install:
  23. cp wmtimer /usr/local/bin/