revamp Makefile.lite system, use separate dirs and names for debug and release targets and object files
This commit is contained in:
parent
6c53ffea1b
commit
b74fc98b48
@ -15,6 +15,17 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
#
|
||||||
|
# debug/release selection
|
||||||
|
#
|
||||||
|
|
||||||
|
DEFAULT_BUILD = release
|
||||||
|
|
||||||
|
debug : BUILD = debug
|
||||||
|
release : BUILD = release
|
||||||
|
|
||||||
|
all default: $(DEFAULT_BUILD)
|
||||||
|
|
||||||
#
|
#
|
||||||
# GNU makefile fragment for emulating stuff normally done by configure
|
# GNU makefile fragment for emulating stuff normally done by configure
|
||||||
#
|
#
|
||||||
|
49
build/exe.mk
49
build/exe.mk
@ -19,6 +19,8 @@
|
|||||||
# GNU makefile fragment for building an executable
|
# GNU makefile fragment for building an executable
|
||||||
#
|
#
|
||||||
|
|
||||||
|
include $(topdir)/build/config.mk
|
||||||
|
|
||||||
ifeq ($(DARWIN_BUILD),yes)
|
ifeq ($(DARWIN_BUILD),yes)
|
||||||
CC = cc
|
CC = cc
|
||||||
CCC = c++
|
CCC = c++
|
||||||
@ -34,44 +36,55 @@ else
|
|||||||
LINKAGE = -static
|
LINKAGE = -static
|
||||||
endif
|
endif
|
||||||
LINK = $(CC) $(LINKAGE)
|
LINK = $(CC) $(LINKAGE)
|
||||||
BINPATH = $(topdir)/obj/bin
|
OBJPATH = $(topdir)/obj
|
||||||
LIBPATH = $(topdir)/obj/lib
|
BINPATH = $(OBJPATH)/$(BUILD)/bin
|
||||||
|
LIBPATH = $(OBJPATH)/$(BUILD)/lib
|
||||||
|
DEBUG_BINPATH = $(OBJPATH)/debug/bin
|
||||||
|
DEBUG_LIBPATH = $(OBJPATH)/debug/lib
|
||||||
|
RELEASE_BINPATH = $(OBJPATH)/release/bin
|
||||||
|
RELEASE_LIBPATH = $(OBJPATH)/release/lib
|
||||||
PROGRAM = $(BINPATH)/$(PROGRAM_NAME)
|
PROGRAM = $(BINPATH)/$(PROGRAM_NAME)
|
||||||
|
DEBUG_PROGRAM = $(DEBUG_BINPATH)/$(PROGRAM_NAME)
|
||||||
all : release
|
RELEASE_PROGRAM = $(RELEASE_BINPATH)/$(PROGRAM_NAME)
|
||||||
|
|
||||||
include $(topdir)/build/config.mk
|
|
||||||
|
|
||||||
debug : CFLAGS = -g -O0 -DDEBUG $(DEBUG_CFLAGS) -Wall -W -DVERSION=$(VERSION) $(DEFINES) $(INCLUDES)
|
debug : CFLAGS = -g -O0 -DDEBUG $(DEBUG_CFLAGS) -Wall -W -DVERSION=$(VERSION) $(DEFINES) $(INCLUDES)
|
||||||
release : CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -finline-functions -DNDEBUG $(RELEASE_CFLAGS) -Wall -W -Winline -DFLaC__INLINE=__inline__ -DVERSION=$(VERSION) $(DEFINES) $(INCLUDES)
|
release : CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -finline-functions -DNDEBUG $(RELEASE_CFLAGS) -Wall -W -Winline -DFLaC__INLINE=__inline__ -DVERSION=$(VERSION) $(DEFINES) $(INCLUDES)
|
||||||
|
|
||||||
LFLAGS = -L$(LIBPATH)
|
LFLAGS = -L$(LIBPATH)
|
||||||
|
|
||||||
debug : $(ORDINALS_H) $(PROGRAM)
|
#@@@ OBJS = $(SRCS_C:%.c=%.o) $(SRCS_CC:%.cc=%.o) $(SRCS_CPP:%.cpp=%.o) $(SRCS_NASM:%.nasm=%.o)
|
||||||
release : $(ORDINALS_H) $(PROGRAM)
|
#@@@ OBJS = $(SRCS_C:%.c=%.$(BUILD).o) $(SRCS_CC:%.cc=%.$(BUILD).o) $(SRCS_CPP:%.cpp=%.$(BUILD).o) $(SRCS_NASM:%.nasm=%.$(BUILD).o)
|
||||||
|
DEBUG_OBJS = $(SRCS_C:%.c=%.debug.o) $(SRCS_CC:%.cc=%.debug.o) $(SRCS_CPP:%.cpp=%.debug.o) $(SRCS_NASM:%.nasm=%.debug.o)
|
||||||
|
RELEASE_OBJS = $(SRCS_C:%.c=%.release.o) $(SRCS_CC:%.cc=%.release.o) $(SRCS_CPP:%.cpp=%.release.o) $(SRCS_NASM:%.nasm=%.release.o)
|
||||||
|
|
||||||
$(PROGRAM) : $(OBJS)
|
debug : $(ORDINALS_H) $(DEBUG_PROGRAM)
|
||||||
$(LINK) -o $@ $(OBJS) $(LFLAGS) $(LIBS)
|
release : $(ORDINALS_H) $(RELEASE_PROGRAM)
|
||||||
|
|
||||||
%.o : %.c
|
$(DEBUG_PROGRAM) : $(DEBUG_OBJS)
|
||||||
|
$(LINK) -o $@ $(DEBUG_OBJS) $(LFLAGS) $(LIBS)
|
||||||
|
|
||||||
|
$(RELEASE_PROGRAM) : $(RELEASE_OBJS)
|
||||||
|
$(LINK) -o $@ $(RELEASE_OBJS) $(LFLAGS) $(LIBS)
|
||||||
|
|
||||||
|
%.debug.o %.release.o : %.c
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
%.o : %.cc
|
%.debug.o %.release.o : %.cc
|
||||||
$(CCC) $(CFLAGS) -c $< -o $@
|
$(CCC) $(CFLAGS) -c $< -o $@
|
||||||
%.o : %.cpp
|
%.debug.o %.release.o : %.cpp
|
||||||
$(CCC) $(CFLAGS) -c $< -o $@
|
$(CCC) $(CFLAGS) -c $< -o $@
|
||||||
%.i : %.c
|
%.debug.i %.release.i : %.c
|
||||||
$(CC) $(CFLAGS) -E $< -o $@
|
$(CC) $(CFLAGS) -E $< -o $@
|
||||||
%.i : %.cc
|
%.debug.i %.release.i : %.cc
|
||||||
$(CCC) $(CFLAGS) -E $< -o $@
|
$(CCC) $(CFLAGS) -E $< -o $@
|
||||||
%.i : %.cpp
|
%.debug.i %.release.i : %.cpp
|
||||||
$(CCC) $(CFLAGS) -E $< -o $@
|
$(CCC) $(CFLAGS) -E $< -o $@
|
||||||
|
|
||||||
%.o : %.nasm
|
%.debug.o %.release.o : %.nasm
|
||||||
$(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ $< -o $@
|
$(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ $< -o $@
|
||||||
|
|
||||||
.PHONY : clean
|
.PHONY : clean
|
||||||
clean :
|
clean :
|
||||||
-rm -f $(OBJS) $(PROGRAM)
|
-rm -f *.o $(OBJPATH)/*/bin/$(PROGRAM_NAME)
|
||||||
|
|
||||||
.PHONY : depend
|
.PHONY : depend
|
||||||
depend:
|
depend:
|
||||||
|
66
build/lib.mk
66
build/lib.mk
@ -19,6 +19,8 @@
|
|||||||
# GNU makefile fragment for building a library
|
# GNU makefile fragment for building a library
|
||||||
#
|
#
|
||||||
|
|
||||||
|
include $(topdir)/build/config.mk
|
||||||
|
|
||||||
ifeq ($(DARWIN_BUILD),yes)
|
ifeq ($(DARWIN_BUILD),yes)
|
||||||
CC = cc
|
CC = cc
|
||||||
CCC = c++
|
CCC = c++
|
||||||
@ -28,7 +30,10 @@ CCC = g++
|
|||||||
endif
|
endif
|
||||||
NASM = nasm
|
NASM = nasm
|
||||||
LINK = ar cru
|
LINK = ar cru
|
||||||
LIBPATH = $(topdir)/obj/lib
|
OBJPATH = $(topdir)/obj
|
||||||
|
LIBPATH = $(OBJPATH)/$(BUILD)/lib
|
||||||
|
DEBUG_LIBPATH = $(OBJPATH)/debug/lib
|
||||||
|
RELEASE_LIBPATH = $(OBJPATH)/release/lib
|
||||||
ifeq ($(DARWIN_BUILD),yes)
|
ifeq ($(DARWIN_BUILD),yes)
|
||||||
STATIC_LIB_SUFFIX = a
|
STATIC_LIB_SUFFIX = a
|
||||||
DYNAMIC_LIB_SUFFIX = dylib
|
DYNAMIC_LIB_SUFFIX = dylib
|
||||||
@ -36,55 +41,72 @@ else
|
|||||||
STATIC_LIB_SUFFIX = a
|
STATIC_LIB_SUFFIX = a
|
||||||
DYNAMIC_LIB_SUFFIX = so
|
DYNAMIC_LIB_SUFFIX = so
|
||||||
endif
|
endif
|
||||||
STATIC_LIB = $(LIBPATH)/$(LIB_NAME).$(STATIC_LIB_SUFFIX)
|
STATIC_LIB_NAME = $(LIB_NAME).$(STATIC_LIB_SUFFIX)
|
||||||
DYNAMIC_LIB = $(LIBPATH)/$(LIB_NAME).$(DYNAMIC_LIB_SUFFIX)
|
DYNAMIC_LIB_NAME = $(LIB_NAME).$(DYNAMIC_LIB_SUFFIX)
|
||||||
|
STATIC_LIB = $(LIBPATH)/$(STATIC_LIB_NAME)
|
||||||
|
DYNAMIC_LIB = $(LIBPATH)/$(DYNAMIC_LIB_NAME)
|
||||||
|
DEBUG_STATIC_LIB = $(DEBUG_LIBPATH)/$(STATIC_LIB_NAME)
|
||||||
|
DEBUG_DYNAMIC_LIB = $(DEBUG_LIBPATH)/$(DYNAMIC_LIB_NAME)
|
||||||
|
RELEASE_STATIC_LIB = $(RELEASE_LIBPATH)/$(STATIC_LIB_NAME)
|
||||||
|
RELEASE_DYNAMIC_LIB = $(RELEASE_LIBPATH)/$(DYNAMIC_LIB_NAME)
|
||||||
ifeq ($(DARWIN_BUILD),yes)
|
ifeq ($(DARWIN_BUILD),yes)
|
||||||
LINKD = $(CC) -dynamiclib -flat_namespace -undefined suppress -install_name $(DYNAMIC_LIB)
|
LINKD = $(CC) -dynamiclib -flat_namespace -undefined suppress -install_name $(DYNAMIC_LIB)
|
||||||
else
|
else
|
||||||
LINKD = $(CC) -shared
|
LINKD = $(CC) -shared
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all : release
|
|
||||||
|
|
||||||
include $(topdir)/build/config.mk
|
|
||||||
|
|
||||||
debug : CFLAGS = -g -O0 -DDEBUG $(DEBUG_CFLAGS) -Wall -W -DVERSION=$(VERSION) $(DEFINES) $(INCLUDES)
|
debug : CFLAGS = -g -O0 -DDEBUG $(DEBUG_CFLAGS) -Wall -W -DVERSION=$(VERSION) $(DEFINES) $(INCLUDES)
|
||||||
release : CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -finline-functions -DNDEBUG $(RELEASE_CFLAGS) -Wall -W -Winline -DFLaC__INLINE=__inline__ -DVERSION=$(VERSION) $(DEFINES) $(INCLUDES)
|
release : CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -finline-functions -DNDEBUG $(RELEASE_CFLAGS) -Wall -W -Winline -DFLaC__INLINE=__inline__ -DVERSION=$(VERSION) $(DEFINES) $(INCLUDES)
|
||||||
|
|
||||||
LFLAGS = -L$(LIBPATH)
|
LFLAGS = -L$(LIBPATH)
|
||||||
|
|
||||||
debug : $(ORDINALS_H) $(STATIC_LIB) $(DYNAMIC_LIB)
|
#@@@ OBJS = $(SRCS_C:%.c=%.o) $(SRCS_CC:%.cc=%.o) $(SRCS_CPP:%.cpp=%.o) $(SRCS_NASM:%.nasm=%.o)
|
||||||
release : $(ORDINALS_H) $(STATIC_LIB) $(DYNAMIC_LIB)
|
#@@@ OBJS = $(SRCS_C:%.c=%.$(BUILD).o) $(SRCS_CC:%.cc=%.$(BUILD).o) $(SRCS_CPP:%.cpp=%.$(BUILD).o) $(SRCS_NASM:%.nasm=%.$(BUILD).o)
|
||||||
|
DEBUG_OBJS = $(SRCS_C:%.c=%.debug.o) $(SRCS_CC:%.cc=%.debug.o) $(SRCS_CPP:%.cpp=%.debug.o) $(SRCS_NASM:%.nasm=%.debug.o)
|
||||||
|
RELEASE_OBJS = $(SRCS_C:%.c=%.release.o) $(SRCS_CC:%.cc=%.release.o) $(SRCS_CPP:%.cpp=%.release.o) $(SRCS_NASM:%.nasm=%.release.o)
|
||||||
|
|
||||||
$(STATIC_LIB) : $(OBJS)
|
debug : $(ORDINALS_H) $(DEBUG_STATIC_LIB) $(DEBUG_DYNAMIC_LIB)
|
||||||
$(LINK) $@ $(OBJS) && ranlib $@
|
release : $(ORDINALS_H) $(RELEASE_STATIC_LIB) $(RELEASE_DYNAMIC_LIB)
|
||||||
|
|
||||||
$(DYNAMIC_LIB) : $(OBJS)
|
$(DEBUG_STATIC_LIB): $(DEBUG_OBJS)
|
||||||
|
$(LINK) $@ $(DEBUG_OBJS) && ranlib $@
|
||||||
|
|
||||||
|
$(RELEASE_STATIC_LIB): $(RELEASE_OBJS)
|
||||||
|
$(LINK) $@ $(RELEASE_OBJS) && ranlib $@
|
||||||
|
|
||||||
|
$(DEBUG_DYNAMIC_LIB) : $(DEBUG_OBJS)
|
||||||
ifeq ($(DARWIN_BUILD),yes)
|
ifeq ($(DARWIN_BUILD),yes)
|
||||||
$(LINKD) -o $@ $(OBJS) $(LFLAGS) $(LIBS) -lc
|
$(LINKD) -o $@ $(DEBUG_OBJS) $(LFLAGS) $(LIBS) -lc
|
||||||
else
|
else
|
||||||
$(LINKD) -o $@ $(OBJS) $(LFLAGS) $(LIBS)
|
$(LINKD) -o $@ $(DEBUG_OBJS) $(LFLAGS) $(LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
%.o : %.c
|
$(RELEASE_DYNAMIC_LIB) : $(RELEASE_OBJS)
|
||||||
|
ifeq ($(DARWIN_BUILD),yes)
|
||||||
|
$(LINKD) -o $@ $(RELEASE_OBJS) $(LFLAGS) $(LIBS) -lc
|
||||||
|
else
|
||||||
|
$(LINKD) -o $@ $(RELEASE_OBJS) $(LFLAGS) $(LIBS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
%.debug.o %.release.o : %.c
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
%.o : %.cc
|
%.debug.o %.release.o : %.cc
|
||||||
$(CCC) $(CFLAGS) -c $< -o $@
|
$(CCC) $(CFLAGS) -c $< -o $@
|
||||||
%.o : %.cpp
|
%.debug.o %.release.o : %.cpp
|
||||||
$(CCC) $(CFLAGS) -c $< -o $@
|
$(CCC) $(CFLAGS) -c $< -o $@
|
||||||
%.i : %.c
|
%.debug.i %.release.i : %.c
|
||||||
$(CC) $(CFLAGS) -E $< -o $@
|
$(CC) $(CFLAGS) -E $< -o $@
|
||||||
%.i : %.cc
|
%.debug.i %.release.i : %.cc
|
||||||
$(CCC) $(CFLAGS) -E $< -o $@
|
$(CCC) $(CFLAGS) -E $< -o $@
|
||||||
%.i : %.cpp
|
%.debug.i %.release.i : %.cpp
|
||||||
$(CCC) $(CFLAGS) -E $< -o $@
|
$(CCC) $(CFLAGS) -E $< -o $@
|
||||||
|
|
||||||
%.o : %.nasm
|
%.debug.o %.release.o : %.nasm
|
||||||
$(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ $< -o $@
|
$(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ $< -o $@
|
||||||
|
|
||||||
.PHONY : clean
|
.PHONY : clean
|
||||||
clean :
|
clean :
|
||||||
-rm -f $(OBJS) $(STATIC_LIB) $(DYNAMIC_LIB) $(ORDINALS_H)
|
-rm -f *.o $(OBJPATH)/*/lib/$(STATIC_LIB_NAME) $(OBJPATH)/*/lib/$(DYNAMIC_LIB_NAME) $(ORDINALS_H)
|
||||||
|
|
||||||
.PHONY : depend
|
.PHONY : depend
|
||||||
depend:
|
depend:
|
||||||
|
@ -408,8 +408,12 @@ AC_OUTPUT( \
|
|||||||
man/Makefile \
|
man/Makefile \
|
||||||
test/Makefile \
|
test/Makefile \
|
||||||
build/Makefile \
|
build/Makefile \
|
||||||
obj/bin/Makefile \
|
obj/debug/bin/Makefile \
|
||||||
obj/lib/Makefile \
|
obj/debug/lib/Makefile \
|
||||||
|
obj/debug/Makefile \
|
||||||
|
obj/release/bin/Makefile \
|
||||||
|
obj/release/lib/Makefile \
|
||||||
|
obj/release/Makefile \
|
||||||
obj/Makefile \
|
obj/Makefile \
|
||||||
flac.pbproj/Makefile \
|
flac.pbproj/Makefile \
|
||||||
)
|
)
|
||||||
|
@ -37,12 +37,12 @@ LIBS = -lgrabbag -lOggFLAC -lFLAC -lgain_analysis -lgetopt -lutf8 -lm -L
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OBJS = \
|
SRCS_C = \
|
||||||
analyze.o \
|
analyze.c \
|
||||||
decode.o \
|
decode.c \
|
||||||
encode.o \
|
encode.c \
|
||||||
main.o \
|
main.c \
|
||||||
vorbiscomment.o
|
vorbiscomment.c
|
||||||
|
|
||||||
include $(topdir)/build/exe.mk
|
include $(topdir)/build/exe.mk
|
||||||
|
|
||||||
|
@ -25,14 +25,14 @@ topdir = ../..
|
|||||||
LIB_NAME = libFLAC++
|
LIB_NAME = libFLAC++
|
||||||
INCLUDES = -I$(topdir)/include
|
INCLUDES = -I$(topdir)/include
|
||||||
|
|
||||||
OBJS = \
|
SRCS_CPP = \
|
||||||
file_decoder.o \
|
file_decoder.cpp \
|
||||||
file_encoder.o \
|
file_encoder.cpp \
|
||||||
metadata.o \
|
metadata.cpp \
|
||||||
seekable_stream_decoder.o \
|
seekable_stream_decoder.cpp \
|
||||||
seekable_stream_encoder.o \
|
seekable_stream_encoder.cpp \
|
||||||
stream_decoder.o \
|
stream_decoder.cpp \
|
||||||
stream_encoder.o
|
stream_encoder.cpp
|
||||||
|
|
||||||
include $(topdir)/build/lib.mk
|
include $(topdir)/build/lib.mk
|
||||||
|
|
||||||
|
@ -39,32 +39,32 @@ ifeq ($(DARWIN_BUILD),yes)
|
|||||||
else
|
else
|
||||||
ifeq ($(SOLARIS_BUILD),yes)
|
ifeq ($(SOLARIS_BUILD),yes)
|
||||||
else
|
else
|
||||||
ASM_OBJS = \
|
SRCS_NASM = \
|
||||||
ia32/cpu_asm.o \
|
ia32/cpu_asm.nasm \
|
||||||
ia32/fixed_asm.o \
|
ia32/fixed_asm.nasm \
|
||||||
ia32/lpc_asm.o
|
ia32/lpc_asm.nasm
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OBJS = $(ASM_OBJS) \
|
SRCS_C = \
|
||||||
bitbuffer.o \
|
bitbuffer.c \
|
||||||
bitmath.o \
|
bitmath.c \
|
||||||
cpu.o \
|
cpu.c \
|
||||||
crc.o \
|
crc.c \
|
||||||
file_decoder.o \
|
file_decoder.c \
|
||||||
file_encoder.o \
|
file_encoder.c \
|
||||||
fixed.o \
|
fixed.c \
|
||||||
format.o \
|
format.c \
|
||||||
lpc.o \
|
lpc.c \
|
||||||
md5.o \
|
md5.c \
|
||||||
memory.o \
|
memory.c \
|
||||||
metadata_iterators.o \
|
metadata_iterators.c \
|
||||||
metadata_object.o \
|
metadata_object.c \
|
||||||
seekable_stream_decoder.o \
|
seekable_stream_decoder.c \
|
||||||
seekable_stream_encoder.o \
|
seekable_stream_encoder.c \
|
||||||
stream_decoder.o \
|
stream_decoder.c \
|
||||||
stream_encoder.o \
|
stream_encoder.c \
|
||||||
stream_encoder_framing.o
|
stream_encoder_framing.c
|
||||||
|
|
||||||
include $(topdir)/build/lib.mk
|
include $(topdir)/build/lib.mk
|
||||||
|
|
||||||
|
@ -25,9 +25,9 @@ topdir = ../..
|
|||||||
LIB_NAME = libOggFLAC++
|
LIB_NAME = libOggFLAC++
|
||||||
INCLUDES = -I$(topdir)/include
|
INCLUDES = -I$(topdir)/include
|
||||||
|
|
||||||
OBJS = \
|
SRCS_CPP = \
|
||||||
stream_decoder.o \
|
stream_decoder.cpp \
|
||||||
stream_encoder.o
|
stream_encoder.cpp
|
||||||
|
|
||||||
include $(topdir)/build/lib.mk
|
include $(topdir)/build/lib.mk
|
||||||
|
|
||||||
|
@ -35,9 +35,9 @@ endif
|
|||||||
INCLUDES = -I./include -I$(topdir)/include -I$(HOME)/local/include
|
INCLUDES = -I./include -I$(topdir)/include -I$(HOME)/local/include
|
||||||
DEBUG_CFLAGS =
|
DEBUG_CFLAGS =
|
||||||
|
|
||||||
OBJS = \
|
SRCS_C = \
|
||||||
stream_decoder.o \
|
stream_decoder.c \
|
||||||
stream_encoder.o
|
stream_encoder.c
|
||||||
|
|
||||||
include $(topdir)/build/lib.mk
|
include $(topdir)/build/lib.mk
|
||||||
|
|
||||||
|
@ -25,15 +25,15 @@ PROGRAM_NAME = metaflac
|
|||||||
INCLUDES = -I./include -I$(topdir)/include
|
INCLUDES = -I./include -I$(topdir)/include
|
||||||
LIBS = -lgrabbag -lFLAC -lgain_analysis -lgetopt -lutf8 -lm
|
LIBS = -lgrabbag -lFLAC -lgain_analysis -lgetopt -lutf8 -lm
|
||||||
|
|
||||||
OBJS = \
|
SRCS_C = \
|
||||||
main.o \
|
main.c \
|
||||||
operations.o \
|
operations.c \
|
||||||
operations_shorthand_seektable.o \
|
operations_shorthand_seektable.c \
|
||||||
operations_shorthand_streaminfo.o \
|
operations_shorthand_streaminfo.c \
|
||||||
operations_shorthand_vorbiscomment.o \
|
operations_shorthand_vorbiscomment.c \
|
||||||
options.o \
|
options.c \
|
||||||
usage.o \
|
usage.c \
|
||||||
utils.o
|
utils.c
|
||||||
|
|
||||||
include $(topdir)/build/exe.mk
|
include $(topdir)/build/exe.mk
|
||||||
|
|
||||||
|
@ -8,14 +8,14 @@ LIB_NAME = libplugin_common
|
|||||||
INCLUDES = -I./include -I$(topdir)/include -I$(HOME)/local/include
|
INCLUDES = -I./include -I$(topdir)/include -I$(HOME)/local/include
|
||||||
DEFINES = -DFLAC__HAS_ID3LIB -DID3LIB_MAJOR=3 -DID3LIB_MINOR=8 -DID3LIB_PATCH=0
|
DEFINES = -DFLAC__HAS_ID3LIB -DID3LIB_MAJOR=3 -DID3LIB_MINOR=8 -DID3LIB_PATCH=0
|
||||||
|
|
||||||
OBJS = \
|
SRCS_C = \
|
||||||
canonical_tag.o \
|
canonical_tag.c \
|
||||||
charset.o \
|
charset.c \
|
||||||
dither.o \
|
dither.c \
|
||||||
id3v1.o \
|
id3v1.c \
|
||||||
id3v2.o \
|
id3v2.c \
|
||||||
replaygain_synthesis.o \
|
replaygain_synthesis.c \
|
||||||
vorbiscomment.o
|
vorbiscomment.c
|
||||||
|
|
||||||
include $(topdir)/build/lib.mk
|
include $(topdir)/build/lib.mk
|
||||||
|
|
||||||
|
@ -23,14 +23,15 @@ topdir = ../..
|
|||||||
|
|
||||||
LIB_NAME = libxmms-flac
|
LIB_NAME = libxmms-flac
|
||||||
INCLUDES = $(shell xmms-config --cflags) -I./include -I$(topdir)/include -I..
|
INCLUDES = $(shell xmms-config --cflags) -I./include -I$(topdir)/include -I..
|
||||||
LIBS = $(topdir)/obj/lib/libFLAC.a $(topdir)/obj/lib/libplugin_common.a $(topdir)/obj/lib/libgrabbag.a $(topdir)/obj/lib/libgain_analysis.a $(HOME)/local/lib/libid3.a -lstdc++ -lz
|
# refer to the static libs explicitly
|
||||||
|
LIBS = $(topdir)/obj/$(BUILD)/lib/libFLAC.a $(topdir)/obj/$(BUILD)/lib/libplugin_common.a $(topdir)/obj/$(BUILD)/lib/libgrabbag.a $(topdir)/obj/$(BUILD)/lib/libgain_analysis.a $(HOME)/local/lib/libid3.a -lstdc++ -lz
|
||||||
|
|
||||||
OBJS = \
|
SRCS_C = \
|
||||||
charset.o \
|
charset.c \
|
||||||
configure.o \
|
configure.c \
|
||||||
plugin.o \
|
plugin.c \
|
||||||
fileinfo.o \
|
fileinfo.c \
|
||||||
wrap_id3.o
|
wrap_id3.c
|
||||||
|
|
||||||
include $(topdir)/build/lib.mk
|
include $(topdir)/build/lib.mk
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@ topdir = ../../..
|
|||||||
LIB_NAME = libgain_analysis
|
LIB_NAME = libgain_analysis
|
||||||
INCLUDES = -I$(topdir)/include/share
|
INCLUDES = -I$(topdir)/include/share
|
||||||
|
|
||||||
OBJS = \
|
SRCS_C = \
|
||||||
gain_analysis.o
|
gain_analysis.c
|
||||||
|
|
||||||
include $(topdir)/build/lib.mk
|
include $(topdir)/build/lib.mk
|
||||||
|
|
||||||
|
@ -7,9 +7,9 @@ topdir = ../../..
|
|||||||
LIB_NAME = libgetopt
|
LIB_NAME = libgetopt
|
||||||
INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
|
INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
|
||||||
|
|
||||||
OBJS = \
|
SRCS_C = \
|
||||||
getopt.o \
|
getopt.c \
|
||||||
getopt1.o
|
getopt1.c
|
||||||
|
|
||||||
include $(topdir)/build/lib.mk
|
include $(topdir)/build/lib.mk
|
||||||
|
|
||||||
|
@ -7,11 +7,11 @@ topdir = ../../..
|
|||||||
LIB_NAME = libgrabbag
|
LIB_NAME = libgrabbag
|
||||||
INCLUDES = -I$(topdir)/include
|
INCLUDES = -I$(topdir)/include
|
||||||
|
|
||||||
OBJS = \
|
SRCS_C = \
|
||||||
cuesheet.o \
|
cuesheet.c \
|
||||||
file.o \
|
file.c \
|
||||||
replaygain.o \
|
replaygain.c \
|
||||||
seektable.o
|
seektable.c
|
||||||
|
|
||||||
include $(topdir)/build/lib.mk
|
include $(topdir)/build/lib.mk
|
||||||
|
|
||||||
|
@ -7,10 +7,10 @@ topdir = ../../..
|
|||||||
LIB_NAME = libutf8
|
LIB_NAME = libutf8
|
||||||
INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
|
INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
|
||||||
|
|
||||||
OBJS = \
|
SRCS_C = \
|
||||||
charset.o \
|
charset.c \
|
||||||
iconvert.o \
|
iconvert.c \
|
||||||
utf8.o
|
utf8.c
|
||||||
|
|
||||||
include $(topdir)/build/lib.mk
|
include $(topdir)/build/lib.mk
|
||||||
|
|
||||||
|
@ -24,14 +24,14 @@ topdir = ../..
|
|||||||
PROGRAM_NAME = test_libFLAC++
|
PROGRAM_NAME = test_libFLAC++
|
||||||
INCLUDES = -I$(topdir)/include
|
INCLUDES = -I$(topdir)/include
|
||||||
LIBS = -lgrabbag -lFLAC++ -lFLAC -lm
|
LIBS = -lgrabbag -lFLAC++ -lFLAC -lm
|
||||||
OBJS = \
|
SRCS_CPP = \
|
||||||
decoders.o \
|
decoders.cpp \
|
||||||
encoders.o \
|
encoders.cpp \
|
||||||
file_utils.o \
|
file_utils.cpp \
|
||||||
main.o \
|
main.cpp \
|
||||||
metadata.o \
|
metadata.cpp \
|
||||||
metadata_manip.o \
|
metadata_manip.cpp \
|
||||||
metadata_object.o
|
metadata_object.cpp
|
||||||
|
|
||||||
include $(topdir)/build/exe.mk
|
include $(topdir)/build/exe.mk
|
||||||
|
|
||||||
|
@ -24,16 +24,16 @@ topdir = ../..
|
|||||||
PROGRAM_NAME = test_libFLAC
|
PROGRAM_NAME = test_libFLAC
|
||||||
INCLUDES = -I../libFLAC/include -I$(topdir)/include
|
INCLUDES = -I../libFLAC/include -I$(topdir)/include
|
||||||
LIBS = -lgrabbag -lFLAC -lm
|
LIBS = -lgrabbag -lFLAC -lm
|
||||||
OBJS = \
|
SRCS_C = \
|
||||||
bitbuffer.o \
|
bitbuffer.c \
|
||||||
decoders.o \
|
decoders.c \
|
||||||
encoders.o \
|
encoders.c \
|
||||||
file_utils.o \
|
file_utils.c \
|
||||||
main.o \
|
main.c \
|
||||||
metadata.o \
|
metadata.c \
|
||||||
metadata_manip.o \
|
metadata_manip.c \
|
||||||
metadata_object.o \
|
metadata_object.c \
|
||||||
metadata_utils.o
|
metadata_utils.c
|
||||||
|
|
||||||
include $(topdir)/build/exe.mk
|
include $(topdir)/build/exe.mk
|
||||||
|
|
||||||
|
@ -25,11 +25,11 @@ PROGRAM_NAME = test_libOggFLAC++
|
|||||||
#@@@ TODO: conditionalize ogg lib path and -logg
|
#@@@ TODO: conditionalize ogg lib path and -logg
|
||||||
INCLUDES = -I$(topdir)/include
|
INCLUDES = -I$(topdir)/include
|
||||||
LIBS = -lgrabbag -lOggFLAC++ -lOggFLAC -lFLAC -L$(HOME)/local/lib -logg -lm
|
LIBS = -lgrabbag -lOggFLAC++ -lOggFLAC -lFLAC -L$(HOME)/local/lib -logg -lm
|
||||||
OBJS = \
|
SRCS_CPP = \
|
||||||
decoders.o \
|
decoders.cpp \
|
||||||
encoders.o \
|
encoders.cpp \
|
||||||
file_utils.o \
|
file_utils.cpp \
|
||||||
main.o
|
main.cpp
|
||||||
|
|
||||||
include $(topdir)/build/exe.mk
|
include $(topdir)/build/exe.mk
|
||||||
|
|
||||||
|
@ -25,12 +25,12 @@ PROGRAM_NAME = test_libOggFLAC
|
|||||||
#@@@ TODO: conditionalize ogg lib path and -logg
|
#@@@ TODO: conditionalize ogg lib path and -logg
|
||||||
INCLUDES = -I$(topdir)/include
|
INCLUDES = -I$(topdir)/include
|
||||||
LIBS = -lgrabbag -lOggFLAC -lFLAC -L$(HOME)/local/lib -logg -lm
|
LIBS = -lgrabbag -lOggFLAC -lFLAC -L$(HOME)/local/lib -logg -lm
|
||||||
OBJS = \
|
SRCS_C = \
|
||||||
decoders.o \
|
decoders.c \
|
||||||
encoders.o \
|
encoders.c \
|
||||||
file_utils.o \
|
file_utils.c \
|
||||||
main.o \
|
main.c \
|
||||||
metadata_utils.o
|
metadata_utils.c
|
||||||
|
|
||||||
include $(topdir)/build/exe.mk
|
include $(topdir)/build/exe.mk
|
||||||
|
|
||||||
|
@ -24,8 +24,8 @@ topdir = ../..
|
|||||||
PROGRAM_NAME = test_streams
|
PROGRAM_NAME = test_streams
|
||||||
INCLUDES = -I./include -I$(topdir)/include
|
INCLUDES = -I./include -I$(topdir)/include
|
||||||
LIBS = -lm
|
LIBS = -lm
|
||||||
OBJS = \
|
SRCS_C = \
|
||||||
main.o
|
main.c
|
||||||
|
|
||||||
include $(topdir)/build/exe.mk
|
include $(topdir)/build/exe.mk
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user