view src/cpuinfo/Makefile.am @ 740:e70f80e98f60

Actually hook the cpuinfo module into the library. :)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 18 Nov 2003 02:16:57 +0000
parents 22dbf364c017
children 528a52626680
line wrap: on
line source

###########################################################################
#
# Some consistent rules for building asm files:

STRIP_FPIC = sh $(top_srcdir)/strip_fPIC.sh

SUFFIXES = .asm

.asm.lo:
	$(LIBTOOL) --tag=CC --mode=compile $(STRIP_FPIC) $(NASM) -t -D __FLAT__ -D __NOU__ @NASMFLAGS@ $< -o $*.o

###########################################################################

# The cpuinfo library target
noinst_LTLIBRARIES = libcpuinfo.la

if HAVE_NASM
ARCH_SRCS =			\
	_cpuinfo.asm		\
	_pcihelp.asm
else
ARCH_SRCS =
endif

COMMON_SRCS = 			\
	cpuinfo.h		\
	gcpuinfo.c		\
	SDL_cpuinfo.c

libcpuinfo_la_SOURCES = $(ARCH_SRCS) $(COMMON_SRCS)

EXTRA_DIST =			\
	COPYING.LIB		\
	README