components/samba/samba/Makefile
changeset 1605 7fc7910b6d94
parent 1601 c02ad4077bcd
child 1621 e58b809ee5f8
equal deleted inserted replaced
1604:b6e3e1ed52a5 1605:7fc7910b6d94
    50 # Samba does not work properly on i86 when built by studio.
    50 # Samba does not work properly on i86 when built by studio.
    51 # Samba on SPARC has serious performance drop when built by gcc.
    51 # Samba on SPARC has serious performance drop when built by gcc.
    52 ifeq ($(MACH), sparc)
    52 ifeq ($(MACH), sparc)
    53 COMPILER = studio
    53 COMPILER = studio
    54 else
    54 else
    55 COMPILER = gcc3
    55 COMPILER =	gcc
       
    56 # Parfait doesn't work with the GNU 4.7 compilers yet.
       
    57 ifeq   ($(strip $(PARFAIT_BUILD)),yes)
       
    58 COMPILER =      gcc3
       
    59 endif
    56 endif
    60 endif
    57 
    61 
    58 include ../../../make-rules/prep.mk
    62 include ../../../make-rules/prep.mk
    59 
    63 
    60 SRC_OFFSET =	source3
    64 SRC_OFFSET =	source3
   116 	$(CC.studio.32) -G $(studio_PIC) -hlibsam.so Solaris/libsam.c \
   120 	$(CC.studio.32) -G $(studio_PIC) -hlibsam.so Solaris/libsam.c \
   117 		-o $(PROTO_DIR)/opt/SUNWsamfs/lib/libsam.so
   121 		-o $(PROTO_DIR)/opt/SUNWsamfs/lib/libsam.so
   118 	cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_2)
   122 	cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_2)
   119 
   123 
   120 CFLAGS.studio	+=	$(studio_C99_ENABLE)
   124 CFLAGS.studio	+=	$(studio_C99_ENABLE)
       
   125 CFLAGS.gcc	+=	-std=c99
   121 CFLAGS.gcc3	+=	-std=c99
   126 CFLAGS.gcc3	+=	-std=c99
   122 
   127 
   123 #CPPFLAGS +=	-DSAMBA_VERSION_VENDOR_SUFFIX=\\\"Placeholder_for_vendor_suffix\\\"
   128 #CPPFLAGS +=	-DSAMBA_VERSION_VENDOR_SUFFIX=\\\"Placeholder_for_vendor_suffix\\\"
   124 CPPFLAGS +=	$(CPP_LARGEFILES)
   129 CPPFLAGS +=	$(CPP_LARGEFILES)
   125 CPPFLAGS +=	$(CPP_XPG6MODE)
   130 CPPFLAGS +=	$(CPP_XPG6MODE)