view src/cpuinfo/Makefile.am @ 742:528a52626680

Fixed building cpuinfo under mingw32
author Sam Lantinga <slouken@libsdl.org>
date Wed, 19 Nov 2003 08:03:10 +0000
parents e70f80e98f60
children 71ee03909f42
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__ @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