getxbook-1.0.patch 863 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Makefile | 17 ++++++++++++-----
  2. 1 file changed, 12 insertions(+), 5 deletions(-)
  3. diff --git a/Makefile b/Makefile
  4. index f6507b5..d080f2b 100644
  5. --- a/Makefile
  6. +++ b/Makefile
  7. @@ -1,5 +1,12 @@
  8. # See COPYING file for copyright and license details.
  9. -include config.mk
  10. +VERSION = 1.0
  11. +RELDATE = 2012-08-19
  12. +PREFIX = /usr
  13. +MANPREFIX = $(PREFIX)/share/man
  14. +CFLAGS += -std=c99 -pedantic -Wall -Wextra \
  15. + -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\"
  16. +CC ?= cc
  17. +LD = $(CC)
  18. NAME = getxbook
  19. @@ -20,16 +27,16 @@ $(BIN): util.a
  20. .o:
  21. @echo LD $@
  22. - @$(LD) -o $@ $< util.a $(LDFLAGS)
  23. + $(LD) $(LDFLAGS) -o $@ $< util.a
  24. .c.o:
  25. @echo CC $<
  26. - @$(CC) -c $(CFLAGS) $<
  27. + $(CC) -c $(CFLAGS) $<
  28. util.a: $(LIB)
  29. @echo AR $@
  30. - @$(AR) -r -c $@ $(LIB)
  31. - @ranlib $@
  32. + $(AR) -r -c $@ $(LIB)
  33. + $(RANLIB) $@
  34. install: all
  35. mkdir -p $(DESTDIR)$(PREFIX)/bin