components/zlib/capabilities/sun4v/sparcv9/Makefile
changeset 7739 7ec314b7eb2f
parent 825 78809aba88fe
child 7810 89b7621146f8
equal deleted inserted replaced
7738:822db2f94801 7739:7ec314b7eb2f
    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 +=  -m64 -xarch=sparc
    29 CFLAGS +=  -m64 -xarch=sparc4 -xtarget=T4 -xchip=T4 -xO5
    30 CPPFLAGS += -D__sparc
    30 CPPFLAGS += -D__sparc
    31 ASFLAGS = -m64 -K PIC -xarch=sparc4
    31 ASFLAGS = -m64 -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