summaryrefslogtreecommitdiff
path: root/package/tptest/patches/patch-apps_unix_server_Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-01-21 20:04:13 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-01-21 20:04:13 +0100
commit357771e31bd0effe155ad2b3ad6326ab086c3b1c (patch)
tree09bd7c708f0a0ca6b2f79388a355558a3e7247ce /package/tptest/patches/patch-apps_unix_server_Makefile
parentc33f1fc73a473ffd39ec5cf7cd7b417546b3a8c8 (diff)
parent88f8c823598fb3dda3d52e2624df7019096ba64a (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/tptest/patches/patch-apps_unix_server_Makefile')
-rw-r--r--package/tptest/patches/patch-apps_unix_server_Makefile34
1 files changed, 34 insertions, 0 deletions
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}