Enhance "clean" target to remove all the generated files
parent
e211604368
commit
b2a9ec2861
3
make.sh
3
make.sh
|
|
@ -100,3 +100,6 @@ perl -pi -e "s#\\\$\(CFLAGS\)#$CFLAGS#g" Makefile
|
||||||
perl -pi -e "s#\\\$\(LIBS\)#$LIBS#g" Makefile
|
perl -pi -e "s#\\\$\(LIBS\)#$LIBS#g" Makefile
|
||||||
make $1 $2
|
make $1 $2
|
||||||
|
|
||||||
|
if [ "$1" = "clean" ]; then
|
||||||
|
/bin/rm -f Makefile _os_bits.h
|
||||||
|
fi
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ HEADER_FILES = common_define.h hash.h chain.h logger.h base64.h \
|
||||||
avl_tree.h ioevent.h ioevent_loop.h fast_task_queue.h \
|
avl_tree.h ioevent.h ioevent_loop.h fast_task_queue.h \
|
||||||
fast_timer.h process_ctrl.h fast_mblock.h connection_pool.h
|
fast_timer.h process_ctrl.h fast_mblock.h connection_pool.h
|
||||||
|
|
||||||
ALL_OBJS = $(STATIC_OBJS) $(FAST_SHARED_OBJS)
|
ALL_OBJS = $(FAST_STATIC_OBJS) $(FAST_SHARED_OBJS)
|
||||||
|
|
||||||
ALL_PRGS =
|
ALL_PRGS =
|
||||||
SHARED_LIBS = libfastcommon.so
|
SHARED_LIBS = libfastcommon.so
|
||||||
|
|
@ -35,9 +35,9 @@ libfastcommon.so:
|
||||||
libfastcommon.a: $(FAST_STATIC_OBJS)
|
libfastcommon.a: $(FAST_STATIC_OBJS)
|
||||||
ar rcs $@ $<
|
ar rcs $@ $<
|
||||||
.o:
|
.o:
|
||||||
$(COMPILE) -o $@ $< $(STATIC_OBJS) $(LIB_PATH) $(INC_PATH)
|
$(COMPILE) -o $@ $< $(FAST_STATIC_OBJS) $(LIB_PATH) $(INC_PATH)
|
||||||
.c:
|
.c:
|
||||||
$(COMPILE) -o $@ $< $(STATIC_OBJS) $(LIB_PATH) $(INC_PATH)
|
$(COMPILE) -o $@ $< $(FAST_STATIC_OBJS) $(LIB_PATH) $(INC_PATH)
|
||||||
.c.o:
|
.c.o:
|
||||||
$(COMPILE) -c -o $@ $< $(INC_PATH)
|
$(COMPILE) -c -o $@ $< $(INC_PATH)
|
||||||
.c.lo:
|
.c.lo:
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
#ifndef _OS_BITS_H
|
|
||||||
#define _OS_BITS_H
|
|
||||||
|
|
||||||
#define OS_BITS 64
|
|
||||||
#define OFF_BITS 64
|
|
||||||
|
|
||||||
#endif
|
|
||||||
Loading…
Reference in New Issue