Makefile.am 692 Bytes
Newer Older
Jack Moffitt's avatar
Jack Moffitt committed
1 2
## Process this file with automake to produce Makefile.in

Ralph Giles's avatar
Ralph Giles committed
3
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include
Jack Moffitt's avatar
Jack Moffitt committed
4 5 6

lib_LTLIBRARIES = libogg.la

7
libogg_la_SOURCES = framing.c bitwise.c crctable.h
Michael Smith's avatar
Michael Smith committed
8
libogg_la_LDFLAGS = -no-undefined -version-info @LIB_CURRENT@:@LIB_REVISION@:@LIB_AGE@
Jack Moffitt's avatar
Jack Moffitt committed
9

10 11 12 13 14 15 16
# build and run the self tests on 'make check'

noinst_PROGRAMS = test_bitwise test_framing

test_bitwise_SOURCES = bitwise.c
test_bitwise_CFLAGS = -D_V_SELFTEST

17
test_framing_SOURCES = framing.c crctable.h
18 19
test_framing_CFLAGS = -D_V_SELFTEST

20 21 22
check: $(noinst_PROGRAMS)
	./test_bitwise$(EXEEXT)
	./test_framing$(EXEEXT)
23

Jack Moffitt's avatar
Jack Moffitt committed
24 25 26 27 28
debug:
	$(MAKE) all CFLAGS="@DEBUG@"

profile:
	$(MAKE) all CFLAGS="@PROFILE@"