298e9deb77e2676f4ab4ff3dfaf6e6fc4630fa94
[btb/d2x.git] / 2d / Makefile.am
1 noinst_LIBRARIES = lib2d.a
2 INCLUDES = -I $(top_srcdir)/include
3
4 if USE_ASM
5 ASM_SRCS =
6 else
7 ASM_SRCS = tmerge.c
8 endif
9
10 if MACDATA
11 TRANSPARENCY_COLOR = 0
12 else
13 TRANSPARENCY_COLOR = 255
14 endif
15
16 lib2d_a_SOURCES = ${ASM_SRCS} \
17 2dsline.c  box.c     disc.c    ibitblt.c  pcx.c    rect.c   scalec.c \
18 bitblt.c   canvas.c  font.c    line.c     pixel.c  rle.c \
19 bitmap.c   circle.c  gpixel.c  palette.c  poly.c
20
21 SUFFIXES = .asm
22 %.o: %.asm
23         $(NASM) -dTRANSPARENCY_COLOR=${TRANSPARENCY_COLOR} $(NASMFLAGS) $< -o $@
24
25 if USE_ASM
26 lib2d_a_LIBADD = linear.o tmerge_a.o
27 endif
28
29 EXTRA_DIST = \
30 linear.asm scalea.asm tmerge_a.asm \
31 bitmap.h clip.h scalea.h \
32 scale.c tmerge.c