patch-Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. $OpenBSD: patch-Makefile,v 1.1.1.1 2003/11/03 20:34:17 sturm Exp $
  2. --- Makefile.orig Sun Jun 30 11:10:35 2002
  3. +++ Makefile Sat Feb 1 13:54:26 2003
  4. @@ -1,24 +1,25 @@
  5. # Modify INCLUDE to point to gkrellm.h (if it's not in /usr/local/include)
  6. -INCLUDE = /usr/local/include
  7. +INCLUDE = ${LOCALBASE}/include/
  8. -CC = gcc
  9. -CFLAGS = -Wall -Wimplicit -Wreturn-type -Wunused -Wswitch \
  10. - -Wcomment-Wparentheses -Wtraditional -Wpointer-arith \
  11. - -Wmissing-prototypes -O2 -fPIC -I$(INCLUDE) \
  12. - `pkg-config gtk+-2.0 --cflags`
  13. -LDFLAGS =
  14. +#CFLAGS = -Wimplicit -Wreturn-type -Wunused -Wswitch \
  15. +# -Wcomment-Wparentheses -Wtraditional -Wpointer-arith \
  16. +# -Wmissing-prototypes
  17. +
  18. +CFLAGS+= -fPIC -I$(INCLUDE) \
  19. + `pkg-config gtk+-2.0 gthread-2.0 --cflags`
  20. +LDFLAGS = -shared -pthread
  21. TARGET = gkrellm_itime
  22. $(TARGET).so: $(TARGET).o
  23. - $(CC) -shared -Wl `pkg-config gtk+-2.0 --libs` $< -o $@
  24. + $(CC) -shared -Wl `pkg-config gtk+-2.0 gthread-2.0 --libs` $< -o $@
  25. $(TARGET).o: $(TARGET).c
  26. - $(CC) $(CFLAGS) -c $<
  27. + $(CC) $(CFLAGS) ${LDFLAGS} -c $<
  28. $(TARGET): $(TARGET).c
  29. - $(CC) $(CFLAGS) $< -o $@
  30. + $(CC) $(CFLAGS) ${LDFLAGS} $< -o $@
  31. install:
  32. if [ -d /usr/lib/gkrellm/plugins/ ] ; then \