improved automake config. make dist, VPATH builds, ...
[btb/d2x.git] / 2d / Makefile.am
1 noinst_LIBRARIES = lib2d.a
2 INCLUDES = -I $(top_srcdir)/includes
3
4 lib2d_a_SOURCES = \
5 2dsline.c  box.c     disc.c    ibitblt.c  pcx.c    rect.c   scalec.c \
6 bitblt.c   canvas.c  font.c    line.c     pixel.c  rle.c    tmerge.c \
7 bitmap.c   circle.c  gpixel.c  palette.c  poly.c
8
9 SUFFIXES = .asm
10 %.o: %.asm
11         $(NASM) $(NASMFLAGS) $< -o $@
12
13 if USE_ASM
14 lib2d_a_LIBADD += linear.o tmerge_a.o
15 endif
16
17 EXTRA_DIST = \
18 linear.asm scalea.asm tmerge_a.asm \
19 bitmap.h clip.h linear.h scalea.h \
20 scale.c