meta-stx: set preempt-rt as the default kernel
[pti/rtp.git] / meta-stx / recipes-core / stx-integ / files / base / 0002-Add-DESTDIR-CFLAGS-and-LDFLAGS.patch
1 From edd5d4208db67d560afd3b5873b6ffc17fd5d79f Mon Sep 17 00:00:00 2001
2 From: babak sarashki <babak.sarashki@windriver.com>
3 Date: Tue, 2 Jul 2019 14:29:52 -0700
4 Subject: [PATCH 2/2] Add DESTDIR, CFLAGS and LDFLAGS.
5
6 ---
7  base/cgcs-users/cgcs-users-1.0/Makefile | 115 ++++++++++++------------
8  1 file changed, 59 insertions(+), 56 deletions(-)
9
10 diff --git a/base/cgcs-users/cgcs-users-1.0/Makefile b/base/cgcs-users/cgcs-users-1.0/Makefile
11 index ed37d00..205f653 100644
12 --- a/base/cgcs-users/cgcs-users-1.0/Makefile
13 +++ b/base/cgcs-users/cgcs-users-1.0/Makefile
14 @@ -1,56 +1,59 @@
15 -# This is the makefile for ibsh 0.3e
16 -CC = gcc
17 -OBJECTS = main.o command.o jail.o execute.o config.o misc.o antixploit.o delbadfiles.o
18 -
19 -ibsh: ${OBJECTS} ibsh.h
20 -       ${CC} -o ibsh ${OBJECTS}
21 -
22 -main.o: main.c ibsh.h
23 -       ${CC} -c main.c
24 -
25 -command.o: command.c ibsh.h
26 -       ${CC} -c command.c
27 -
28 -jail.o: jail.c ibsh.h
29 -       ${CC} -c jail.c
30 -
31 -execute.o: execute.c ibsh.h
32 -       ${CC} -c execute.c
33 -
34 -config.o: config.c ibsh.h
35 -       ${CC} -c config.c
36 -
37 -misc.o: misc.c ibsh.h
38 -       ${CC} -c misc.c
39 -
40 -antixploit.o: antixploit.c ibsh.h
41 -       ${CC} -c antixploit.c
42 -
43 -delbadfiles.o: delbadfiles.c ibsh.h
44 -       ${CC} -c delbadfiles.c
45 -
46 -ibsh_install:
47 -       cp ./ibsh /bin/
48 -       mkdir /etc/ibsh
49 -       mkdir /etc/ibsh/cmds
50 -       mkdir /etc/ibsh/xtns
51 -       cp ./globals.cmds /etc/ibsh/
52 -       cp ./globals.xtns /etc/ibsh/
53 -
54 -ibsh_uninstall:
55 -       rm -rf /etc/ibsh/globals.cmds
56 -       rm -rf /etc/ibsh/globals.xtns
57 -       rm -rf /etc/ibsh/cmds/*.*
58 -       rm -rf /etc/ibsh/xtns/*.*
59 -       rmdir /etc/ibsh/cmds
60 -       rmdir /etc/ibsh/xtns
61 -       rmdir /etc/ibsh
62 -       rm -rf /bin/ibsh
63 -
64 -clean:
65 -       rm -rf ibsh
66 -       rm -rf *.o
67 -
68 -
69 -# 13:49 2005.04.06.
70 -
71 +# This is the makefile for ibsh 0.3e
72 +CC = gcc
73 +OBJECTS = main.o command.o jail.o execute.o config.o misc.o antixploit.o delbadfiles.o
74 +
75 +ibsh: ${OBJECTS} ibsh.h
76 +       ${CC} ${CFLAGS} ${LDFLAGS} -o ibsh ${OBJECTS}
77 +
78 +main.o: main.c ibsh.h
79 +       ${CC} ${CFLAGS} -c main.c
80 +
81 +command.o: command.c ibsh.h
82 +       ${CC} ${CFLAGS} -c command.c
83 +
84 +jail.o: jail.c ibsh.h
85 +       ${CC} ${CFLAGS} -c jail.c
86 +
87 +execute.o: execute.c ibsh.h
88 +       ${CC} ${CFLAGS} -c execute.c
89 +
90 +config.o: config.c ibsh.h
91 +       ${CC} ${CFLAGS} -c config.c
92 +
93 +misc.o: misc.c ibsh.h
94 +       ${CC} ${CFLAGS} -c misc.c
95 +
96 +antixploit.o: antixploit.c ibsh.h
97 +       ${CC} ${CFLAGS} -c antixploit.c
98 +
99 +delbadfiles.o: delbadfiles.c ibsh.h
100 +       ${CC} -c delbadfiles.c
101 +
102 +ibsh_install:
103 +       install -d 0755 ${DESTDIR}/bin
104 +       install -d 0755 ${DESTDIR}/etc/cmds
105 +       install -d 0755 ${DESTDIR}/etc/xtns
106 +       cp ./ibsh ${DESTDIR}/bin/
107 +       mkdir ${DESTDIR}/etc/ibsh
108 +       mkdir ${DESTDIR}/etc/ibsh/cmds
109 +       mkdir ${DESTDIR}/etc/ibsh/xtns
110 +       cp ./globals.cmds ${DESTDIR}/etc/ibsh/
111 +       cp ./globals.xtns ${DESTDIR}/etc/ibsh/
112 +
113 +ibsh_uninstall:
114 +       rm -rf ${DESTDIR}/etc/ibsh/globals.cmds
115 +       rm -rf ${DESTDIR}/etc/ibsh/globals.xtns
116 +       rm -rf ${DESTDIR}/etc/ibsh/cmds/*.*
117 +       rm -rf ${DESTDIR}/etc/ibsh/xtns/*.*
118 +       rmdir ${DESTDIR}/etc/ibsh/cmds
119 +       rmdir ${DESTDIR}/etc/ibsh/xtns
120 +       rmdir ${DESTDIR}/etc/ibsh
121 +       rm -rf ${DESTDIR}/bin/ibsh
122 +
123 +clean:
124 +       rm -rf ibsh
125 +       rm -rf *.o
126 +
127 +
128 +# 13:49 2005.04.06.
129 +
130 -- 
131 2.17.1
132