File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
linenoise_example : linenoise.h linenoise.c
2
2
3
3
linenoise_example : linenoise.o example.o
4
- $(CC ) -Wall -W -Os -g -o linenoise_example linenoise.o example.o
4
+ $(CC ) $( ARCH ) -Wall -W -Os -g -o linenoise_example linenoise.o example.o
5
5
6
6
.c.o :
7
- $(CC ) -c -Wall -W -Os -g $<
7
+ $(CC ) $( ARCH ) -c -Wall -W -Os -g $<
8
8
9
9
clean :
10
- rm -f linenoise_example
10
+ rm -f linenoise_example * .o
Original file line number Diff line number Diff line change @@ -116,8 +116,8 @@ redis-benchmark.o:
116
116
$(CC ) -c $(CFLAGS ) -I../deps/hiredis $(DEBUG ) $(COMPILE_TIME ) $<
117
117
118
118
redis-cli : $(CLIOBJ )
119
- cd ../deps/hiredis && make static
120
- cd ../deps/linenoise && make
119
+ cd ../deps/hiredis && make static ARCH= " $( ARCH ) "
120
+ cd ../deps/linenoise && make ARCH= " $( ARCH ) "
121
121
$(CC ) -o $(CLIPRGNAME ) $(CCOPT ) $(DEBUG ) $(CLIOBJ ) ../deps/hiredis/libhiredis.a ../deps/linenoise/linenoise.o
122
122
123
123
redis-cli.o :
@@ -134,6 +134,8 @@ redis-check-aof: $(CHECKAOFOBJ)
134
134
135
135
clean :
136
136
rm -rf $(PRGNAME ) $(BENCHPRGNAME ) $(CLIPRGNAME ) $(CHECKDUMPPRGNAME ) $(CHECKAOFPRGNAME ) * .o * .gcda * .gcno * .gcov
137
+ cd ../deps/hiredis && make clean
138
+ cd ../deps/linenoise && make clean
137
139
138
140
dep :
139
141
$(CC ) -MM * .c
You can’t perform that action at this time.
0 commit comments