1
0

patch-apps_unix_client_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/client/Makefile 2004-04-07 15:22:56.000000000 +0200
  7. +++ tptest-3.1.7/apps/unix/client/Makefile 2010-01-28 00:00:45.000000000 +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. @@ -69,7 +69,8 @@ clean:
  24. rm -f tptestclient core *.o *.BAK *.bak *.CKP a.out tpio_unix.c tpengine.c tpcommon.c tpclient.c
  25. install:
  26. - install -c -s -o bin -g bin -m 555 tptestclient /usr/local/bin
  27. + install -d -m 755 ${DESTDIR}/usr/bin
  28. + install -c -m 755 tptestclient ${DESTDIR}/usr/bin
  29. depend:
  30. ${MAKEDEPEND} ${INCL} ${SRCS} ${LIBSRCS}