src/cpuinfo/Makefile.am
author Sam Lantinga
Tue, 18 Nov 2003 01:27:06 +0000
changeset 739 22dbf364c017
child 740 e70f80e98f60
permissions -rw-r--r--
Added SDL_HasMMX(), SDL_Has3DNow(), SDL_HasSSE() in SDL_cpuinfo.h
slouken@739
     1
###########################################################################
slouken@739
     2
#
slouken@739
     3
# Some consistent rules for building asm files:
slouken@739
     4
slouken@739
     5
STRIP_FPIC = sh $(top_srcdir)/strip_fPIC.sh
slouken@739
     6
slouken@739
     7
SUFFIXES = .asm
slouken@739
     8
slouken@739
     9
.asm.lo:
slouken@739
    10
	$(LIBTOOL) --tag=CC --mode=compile $(STRIP_FPIC) $(NASM) -t -D __FLAT__ -D __NOU__ @NASMFLAGS@ $< -o $*.o
slouken@739
    11
slouken@739
    12
###########################################################################
slouken@739
    13
slouken@739
    14
# The cpuinfo library target
slouken@739
    15
noinst_LTLIBRARIES = libcpuinfo.la
slouken@739
    16
slouken@739
    17
if HAVE_NASM
slouken@739
    18
ARCH_SRCS =			\
slouken@739
    19
	gcpuinfo.c		\
slouken@739
    20
	_cpuinfo.asm		\
slouken@739
    21
	_pcihelp.asm
slouken@739
    22
else
slouken@739
    23
ARCH_SRCS =
slouken@739
    24
endif
slouken@739
    25
slouken@739
    26
COMMON_SRCS = 			\
slouken@739
    27
	SDL_cpuinfo.c
slouken@739
    28
slouken@739
    29
libcpuinfo_la_SOURCES = $(ARCH_SRCS) $(COMMON_SRCS)
slouken@739
    30
slouken@739
    31
EXTRA_DIST =			\
slouken@739
    32
	COPYING.LIB		\
slouken@739
    33
	README
slouken@739
    34