Browse Source

Quiet the clang build.
Rename cleanall target to distclean.

Viral B. Shah 12 years ago
parent
commit
1ac594e475
3 changed files with 3 additions and 6 deletions
  1. 2 2
      Make.inc
  2. 1 1
      Makefile
  3. 0 3
      test/Makefile

+ 2 - 2
Make.inc

@@ -7,7 +7,7 @@ USECLANG = 0
 ifeq ($(USECLANG),1)
 USEGCC = 0
 CC = clang
-CFLAGS= -std=c99 -Wall -O3 -I$(OPENLIBM_HOME) -I$(OPENLIBM_HOME)/include -I$(OPENLIBM_HOME)/ld80 -I$(OPENLIBM_HOME)/$(ARCH) -I$(OPENLIBM_HOME)/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration
+CFLAGS= -std=c99 -Wall -O3 -I$(OPENLIBM_HOME) -I$(OPENLIBM_HOME)/include -I$(OPENLIBM_HOME)/ld80 -I$(OPENLIBM_HOME)/$(ARCH) -I$(OPENLIBM_HOME)/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration -fno-builtin
 endif
 
 ifeq ($(USEGCC),1)
@@ -24,7 +24,7 @@ default: all
 	$(QUIET_ASM)$(CC) $(filter -f% -m% -B% -I% -D%,$(CFLAGS)) -c $< -o $@
 
 clean:
-	rm -f *.o *.c.o *.S.o *~
+	rm -fr *.o *.c.o *.S.o *~ test-double test-float test-double-system test-float-system *.dSYM
 
 # OS-specific stuff
 ifeq ($(ARCH),i386)

+ 1 - 1
Makefile

@@ -27,6 +27,6 @@ libopenlibm.a: $(OBJS)
 libopenlibm.$(SHLIB_EXT): $(OBJS)
 	$(QUIET_LINK)$(CC) -shared $(OBJS) -o libopenlibm.$(SHLIB_EXT)
 
-cleanall:
+distclean:
 	rm -f $(OBJS) *.a *.$(SHLIB_EXT)
 	$(MAKE) -C test clean

+ 0 - 3
test/Makefile

@@ -14,6 +14,3 @@ test-double-system: test-double.c libm-test.c
 
 test-float-system: test-float.c libm-test.c
 	$(CC) -g $< -DSYS_MATH_H -lm -o $@
-
-clean:
-	rm -fr *~ *# test-double test-float test-double-system test-float-system *.dSYM