components/zlib/capabilities/sun4v/sparcv7/Makefile
branchs11u3-sru
changeset 7889 a5ad77e24b54
parent 825 78809aba88fe
equal deleted inserted replaced
7888:eb95548e9e3c 7889:a5ad77e24b54
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
    26 include		../Makefile.com
    26 include		../Makefile.com
    27 include		../../Makefile.com
    27 include		../../Makefile.com
    28 
    28 
    29 CFLAGS += -xarch=sparc
    29 CFLAGS += -xarch=sparc4 -xtarget=T4 -xchip=T4 -xO5
    30 CPPFLAGS += -D__sparc
    30 CPPFLAGS += -D__sparc
    31 ASFLAGS = -m32 -K PIC -xarch=sparc4
    31 ASFLAGS = -m32 -K PIC -xarch=sparc4
    32 
    32 
    33 include		../Makefile.targ
    33 include		../Makefile.targ
    34 include		../../Makefile.targ
    34 include		../../Makefile.targ
    35 
    35 
       
    36 DEFLATE_C=../../../build/$(BUILD_ARCH)/deflate.c
       
    37 
       
    38 longest_match_t4.s: $(DEFLATE_C)
       
    39 	$(CC) $(CFLAGS) -DLONGEST_MATCH_ONLY -DORIG_LONGEST_MATCH_GLOBAL -S -o $@ $(DEFLATE_C)
       
    40 
    36 all build:	$(SYMCAP)
    41 all build:	$(SYMCAP)
    37 
    42 
    38 clean:
    43 clean:
    39 	$(RM) *.o
    44 	$(RM) *.o *.s