diff options
author | Phil Sutter <phil.sutter@viprinet.com> | 2010-01-20 19:34:35 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-01-20 21:49:33 +0100 |
commit | 9cfd98fcee29697aa9da5b5fb11c7e7f0ce318b7 (patch) | |
tree | 0eda2957d2cca7b14bf184e0c5f5fc64eceea30d /package/tptest/patches | |
parent | d00215959e78ef3584bba71012ec43bbf9120b01 (diff) |
port tptest
Diffstat (limited to 'package/tptest/patches')
-rw-r--r-- | package/tptest/patches/patch-apps_unix_client_Makefile | 34 | ||||
-rw-r--r-- | package/tptest/patches/patch-apps_unix_server_Makefile | 34 |
2 files changed, 68 insertions, 0 deletions
diff --git a/package/tptest/patches/patch-apps_unix_client_Makefile b/package/tptest/patches/patch-apps_unix_client_Makefile new file mode 100644 index 000000000..239d4770e --- /dev/null +++ b/package/tptest/patches/patch-apps_unix_client_Makefile @@ -0,0 +1,34 @@ + - assign CC only if not already defined + - add CFLAGS and LDFLAGS instead of replacing them + - allow for specifying DESTDIR to 'make install' + - drop the local subdir (openadk doesnt use this path) + - create the directories to install into +--- tptest-3.1.7.orig/apps/unix/client/Makefile 2004-04-07 15:22:56.000000000 +0200 ++++ tptest-3.1.7/apps/unix/client/Makefile 2010-01-20 12:01:14.267178336 +0100 +@@ -1,4 +1,4 @@ +-CC = gcc ++CC ?= gcc + # + # Use this for Linux and other systems that have makedepend + # instead of mkdep. +@@ -25,8 +25,8 @@ EXTRADEFINES = -DUNIX -DLINUX + # + #EXTRADEFINES = -DUSE_GMTIME + +-CFLAGS = ${CDEBUG} ${EXTRADEFINES} ${INCL} -Wall +-LDFLAGS = ${CDEBUG} ++CFLAGS += ${CDEBUG} ${EXTRADEFINES} ${INCL} -Wall ++LDFLAGS += ${CDEBUG} + LIBDIR = + LOCLIBS = + +@@ -69,7 +69,8 @@ clean: + rm -f tptestclient core *.o *.BAK *.bak *.CKP a.out tpio_unix.c tpengine.c tpcommon.c tpclient.c + + install: +- install -c -s -o bin -g bin -m 555 tptestclient /usr/local/bin ++ install -d -m 755 ${DESTDIR}/usr/bin ++ install -c -s -m 555 tptestclient ${DESTDIR}/usr/bin + + depend: + ${MAKEDEPEND} ${INCL} ${SRCS} ${LIBSRCS} diff --git a/package/tptest/patches/patch-apps_unix_server_Makefile b/package/tptest/patches/patch-apps_unix_server_Makefile new file mode 100644 index 000000000..e4ea1eab8 --- /dev/null +++ b/package/tptest/patches/patch-apps_unix_server_Makefile @@ -0,0 +1,34 @@ + - assign CC only if not already defined + - add CFLAGS and LDFLAGS instead of replacing them + - allow for specifying DESTDIR to 'make install' + - drop the local subdir (openadk doesnt use this path) + - create the directories to install into +--- tptest-3.1.7.orig/apps/unix/server/Makefile 2003-01-22 11:42:45.000000000 +0100 ++++ tptest-3.1.7/apps/unix/server/Makefile 2010-01-20 12:01:24.758178270 +0100 +@@ -1,4 +1,4 @@ +-CC = gcc ++CC ?= gcc + # + # Use this for Linux and other systems that have makedepend + # instead of mkdep. +@@ -25,8 +25,8 @@ EXTRADEFINES = -DUNIX -DLINUX + # + #EXTRADEFINES = -DUSE_GMTIME + +-CFLAGS = ${CDEBUG} ${EXTRADEFINES} ${INCL} -Wall +-LDFLAGS = ${CDEBUG} ++CFLAGS += ${CDEBUG} ${EXTRADEFINES} ${INCL} -Wall ++LDFLAGS += ${CDEBUG} + LIBDIR = + LOCLIBS = + +@@ -66,7 +66,8 @@ clean: + rm -f tptestserver core *.o *.BAK *.bak *.CKP a.out tpio_unix.c tpengine.c tpcommon.c + + install: +- install -c -s -o bin -g bin -m 555 tptestserver /usr/local/bin ++ install -d -m 755 ${DESTDIR}/usr/bin ++ install -c -s -m 555 tptestserver ${DESTDIR}/usr/bin + + depend: + ${MAKEDEPEND} ${INCL} ${SRCS} ${LIBSRCS} |