patch-apps_unix_server_Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. - assign CC only if not already defined
  2. - add CFLAGS and LDFLAGS instead of replacing them
  3. - allow for specifying DESTDIR to 'make install'
  4. - drop the local subdir (openadk doesnt use this path)
  5. - create the directories to install into
  6. --- tptest-3.1.7.orig/apps/unix/server/Makefile 2003-01-22 11:42:45.000000000 +0100
  7. +++ tptest-3.1.7/apps/unix/server/Makefile 2010-01-20 12:01:24.758178270 +0100
  8. @@ -1,4 +1,4 @@
  9. -CC = gcc
  10. +CC ?= gcc
  11. #
  12. # Use this for Linux and other systems that have makedepend
  13. # instead of mkdep.
  14. @@ -25,8 +25,8 @@ EXTRADEFINES = -DUNIX -DLINUX
  15. #
  16. #EXTRADEFINES = -DUSE_GMTIME
  17. -CFLAGS = ${CDEBUG} ${EXTRADEFINES} ${INCL} -Wall
  18. -LDFLAGS = ${CDEBUG}
  19. +CFLAGS += ${CDEBUG} ${EXTRADEFINES} ${INCL} -Wall
  20. +LDFLAGS += ${CDEBUG}
  21. LIBDIR =
  22. LOCLIBS =
  23. @@ -66,7 +66,8 @@ clean:
  24. rm -f tptestserver core *.o *.BAK *.bak *.CKP a.out tpio_unix.c tpengine.c tpcommon.c
  25. install:
  26. - install -c -s -o bin -g bin -m 555 tptestserver /usr/local/bin
  27. + install -d -m 755 ${DESTDIR}/usr/bin
  28. + install -c -s -m 555 tptestserver ${DESTDIR}/usr/bin
  29. depend:
  30. ${MAKEDEPEND} ${INCL} ${SRCS} ${LIBSRCS}