54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
ACLOCAL_AMFLAGS = -I m4 # use custom macro's in ./m4
|
|
lib_LTLIBRARIES =
|
|
bin_PROGRAMS =
|
|
include_HEADERS =
|
|
|
|
# To Profile w/ gprof:
|
|
# 1) Modify configure: ./configure --disable-shared CFLAGS="-pg"
|
|
# 2) Run the program. ./foo
|
|
# 3) Run gprof /libtool --mode=execute gprof ./foo
|
|
|
|
# C compiler flags
|
|
# _GNU_SOURCE - turns on GNU specific extensions and gives correct prototype for double log2(double)
|
|
# -Wall turn on all warnings
|
|
# -Wno-multichar - turns off multi-character constant warnings from cmAudioFile.c
|
|
|
|
|
|
|
|
AM_CPPFLAGS = -D _GNU_SOURCE -I..
|
|
AM_CFLAGS = -Wno-multichar
|
|
AM_CXXFLAGS =
|
|
AM_LDFLAGS =
|
|
|
|
# debug/release switches
|
|
if DEBUG
|
|
AM_CFLAGS += -g
|
|
AM_CXXFLAGS += -g
|
|
else
|
|
AM_CFLAGS += -O3
|
|
AM_CXXFLAGS += -O3
|
|
endif
|
|
|
|
# Linux specific
|
|
if OS_LINUX
|
|
|
|
if OS_64
|
|
AM_CFLAGS += -m64
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
include src/libproj/Makefile.am
|
|
|
|
|
|
src_libproj_libproj_la_SOURCES = $(libprojSRC) $(libprojHDR)
|
|
lib_LTLIBRARIES += src/libproj/libproj.la
|
|
include_HEADERS += $(libprojHDR)
|
|
|
|
|
|
src_proj_proj_SOURCES = src/proj/main.c
|
|
src_proj_proj_LDADD = src/libproj/libproj.la # autoconfig manual recommends setting direct referenes to non-3rd party libraries rather than using -L and -l
|
|
src_proj_proj_CPPFLAGS = -I$(srcdir)/src/libproj $(AM_CPPFLAGS)
|
|
bin_PROGRAMS += src/proj/proj
|