Browse code

sun makefile fixes

Andrei Pelinescu-Onciul authored on 13/02/2002 21:02:19
Showing 2 changed files
... ...
@@ -78,9 +78,6 @@ endif
78 78
 
79 79
 ifeq ($(ARCH), sparc64)
80 80
 	DEFS+= -DFAST_LOCK
81
-ifeq($(OS), SunOs)
82
-	CFLAGS+= -mv8 -Wa,-xarch=v8plus
83
-endif
84 81
 endif
85 82
 
86 83
 
... ...
@@ -141,6 +138,9 @@ ifeq  ($(OS), SunOS)
141 141
 		LDFLAGS=-g $(PROFILE)
142 142
 		MOD_LDFLAGS=-g -G
143 143
 	endif
144
+	ifeq ($(ARCH), sparc64)
145
+		CFLAGS+= -mv8 -Wa,-xarch=v8plus
146
+	endif
144 147
 
145 148
 YACC=yacc
146 149
 LIBS+=-L/usr/local/lib -lxnet -lrt # or -lnsl -lsocket or -lglibc ?
... ...
@@ -41,6 +41,7 @@ static: $(objs)
41 41
 clean:
42 42
 	-@rm -f $(objs) $(NAME) 2>/dev/null
43 43
 	-@for r in $(modules) $(static_modules_path); do \
44
+		echo "module $$r" ; \
44 45
 		$(MAKE) -C $$r clean ; \
45 46
 	done
46 47