summaryrefslogtreecommitdiff
path: root/package/tptest/patches/patch-apps_unix_client_Makefile
blob: 239d4770eb45c8476703f132527ce5711d839173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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}