浏览代码

Clean executable in Makefile

bel2125 10 年之前
父节点
当前提交
10ee9fa662
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Makefile

+ 2 - 1
Makefile

@@ -60,7 +60,7 @@ BUILD_DIRS += $(BUILD_DIR)/test
 endif
 endif
 
 
 # only set main compile options if none were chosen
 # only set main compile options if none were chosen
-CFLAGS += -W -Wall -O2 -D$(TARGET_OS) -Iinclude $(COPT) -DUSE_STACK_SIZE=102400
+CFLAGS += -Wall -Wextra -O2 -D$(TARGET_OS) -Iinclude $(COPT) -DUSE_STACK_SIZE=102400
 
 
 LIBS = -lpthread -lm
 LIBS = -lpthread -lm
 
 
@@ -231,6 +231,7 @@ clean:
 	$(RMRF) lib$(CPROG).so
 	$(RMRF) lib$(CPROG).so
 	$(RMRF) lib$(CPROG).so.$(major)
 	$(RMRF) lib$(CPROG).so.$(major)
 	$(RMRF) lib$(CPROG).so.$(version).0
 	$(RMRF) lib$(CPROG).so.$(version).0
+	$(RMRF) $(CPROG)
 
 
 distclean: clean
 distclean: clean
 	@$(RMRF) VS2012/Debug VS2012/*/Debug  VS2012/*/*/Debug
 	@$(RMRF) VS2012/Debug VS2012/*/Debug  VS2012/*/*/Debug