revamp Makefile.lite system, use separate dirs and names for debug and release targets and object files

This commit is contained in:
Josh Coalson
2002-11-20 06:40:08 +00:00
parent 6c53ffea1b
commit b74fc98b48
21 changed files with 206 additions and 155 deletions

View File

@@ -37,12 +37,12 @@ LIBS = -lgrabbag -lOggFLAC -lFLAC -lgain_analysis -lgetopt -lutf8 -lm -L
endif
endif
OBJS = \
analyze.o \
decode.o \
encode.o \
main.o \
vorbiscomment.o
SRCS_C = \
analyze.c \
decode.c \
encode.c \
main.c \
vorbiscomment.c
include $(topdir)/build/exe.mk

View File

@@ -25,14 +25,14 @@ topdir = ../..
LIB_NAME = libFLAC++
INCLUDES = -I$(topdir)/include
OBJS = \
file_decoder.o \
file_encoder.o \
metadata.o \
seekable_stream_decoder.o \
seekable_stream_encoder.o \
stream_decoder.o \
stream_encoder.o
SRCS_CPP = \
file_decoder.cpp \
file_encoder.cpp \
metadata.cpp \
seekable_stream_decoder.cpp \
seekable_stream_encoder.cpp \
stream_decoder.cpp \
stream_encoder.cpp
include $(topdir)/build/lib.mk

View File

@@ -39,32 +39,32 @@ ifeq ($(DARWIN_BUILD),yes)
else
ifeq ($(SOLARIS_BUILD),yes)
else
ASM_OBJS = \
ia32/cpu_asm.o \
ia32/fixed_asm.o \
ia32/lpc_asm.o
SRCS_NASM = \
ia32/cpu_asm.nasm \
ia32/fixed_asm.nasm \
ia32/lpc_asm.nasm
endif
endif
OBJS = $(ASM_OBJS) \
bitbuffer.o \
bitmath.o \
cpu.o \
crc.o \
file_decoder.o \
file_encoder.o \
fixed.o \
format.o \
lpc.o \
md5.o \
memory.o \
metadata_iterators.o \
metadata_object.o \
seekable_stream_decoder.o \
seekable_stream_encoder.o \
stream_decoder.o \
stream_encoder.o \
stream_encoder_framing.o
SRCS_C = \
bitbuffer.c \
bitmath.c \
cpu.c \
crc.c \
file_decoder.c \
file_encoder.c \
fixed.c \
format.c \
lpc.c \
md5.c \
memory.c \
metadata_iterators.c \
metadata_object.c \
seekable_stream_decoder.c \
seekable_stream_encoder.c \
stream_decoder.c \
stream_encoder.c \
stream_encoder_framing.c
include $(topdir)/build/lib.mk

View File

@@ -25,9 +25,9 @@ topdir = ../..
LIB_NAME = libOggFLAC++
INCLUDES = -I$(topdir)/include
OBJS = \
stream_decoder.o \
stream_encoder.o
SRCS_CPP = \
stream_decoder.cpp \
stream_encoder.cpp
include $(topdir)/build/lib.mk

View File

@@ -35,9 +35,9 @@ endif
INCLUDES = -I./include -I$(topdir)/include -I$(HOME)/local/include
DEBUG_CFLAGS =
OBJS = \
stream_decoder.o \
stream_encoder.o
SRCS_C = \
stream_decoder.c \
stream_encoder.c
include $(topdir)/build/lib.mk

View File

@@ -25,15 +25,15 @@ PROGRAM_NAME = metaflac
INCLUDES = -I./include -I$(topdir)/include
LIBS = -lgrabbag -lFLAC -lgain_analysis -lgetopt -lutf8 -lm
OBJS = \
main.o \
operations.o \
operations_shorthand_seektable.o \
operations_shorthand_streaminfo.o \
operations_shorthand_vorbiscomment.o \
options.o \
usage.o \
utils.o
SRCS_C = \
main.c \
operations.c \
operations_shorthand_seektable.c \
operations_shorthand_streaminfo.c \
operations_shorthand_vorbiscomment.c \
options.c \
usage.c \
utils.c
include $(topdir)/build/exe.mk

View File

@@ -8,14 +8,14 @@ LIB_NAME = libplugin_common
INCLUDES = -I./include -I$(topdir)/include -I$(HOME)/local/include
DEFINES = -DFLAC__HAS_ID3LIB -DID3LIB_MAJOR=3 -DID3LIB_MINOR=8 -DID3LIB_PATCH=0
OBJS = \
canonical_tag.o \
charset.o \
dither.o \
id3v1.o \
id3v2.o \
replaygain_synthesis.o \
vorbiscomment.o
SRCS_C = \
canonical_tag.c \
charset.c \
dither.c \
id3v1.c \
id3v2.c \
replaygain_synthesis.c \
vorbiscomment.c
include $(topdir)/build/lib.mk

View File

@@ -23,14 +23,15 @@ topdir = ../..
LIB_NAME = libxmms-flac
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 = \
charset.o \
configure.o \
plugin.o \
fileinfo.o \
wrap_id3.o
SRCS_C = \
charset.c \
configure.c \
plugin.c \
fileinfo.c \
wrap_id3.c
include $(topdir)/build/lib.mk

View File

@@ -7,8 +7,8 @@ topdir = ../../..
LIB_NAME = libgain_analysis
INCLUDES = -I$(topdir)/include/share
OBJS = \
gain_analysis.o
SRCS_C = \
gain_analysis.c
include $(topdir)/build/lib.mk

View File

@@ -7,9 +7,9 @@ topdir = ../../..
LIB_NAME = libgetopt
INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
OBJS = \
getopt.o \
getopt1.o
SRCS_C = \
getopt.c \
getopt1.c
include $(topdir)/build/lib.mk

View File

@@ -7,11 +7,11 @@ topdir = ../../..
LIB_NAME = libgrabbag
INCLUDES = -I$(topdir)/include
OBJS = \
cuesheet.o \
file.o \
replaygain.o \
seektable.o
SRCS_C = \
cuesheet.c \
file.c \
replaygain.c \
seektable.c
include $(topdir)/build/lib.mk

View File

@@ -7,10 +7,10 @@ topdir = ../../..
LIB_NAME = libutf8
INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
OBJS = \
charset.o \
iconvert.o \
utf8.o
SRCS_C = \
charset.c \
iconvert.c \
utf8.c
include $(topdir)/build/lib.mk

View File

@@ -24,14 +24,14 @@ topdir = ../..
PROGRAM_NAME = test_libFLAC++
INCLUDES = -I$(topdir)/include
LIBS = -lgrabbag -lFLAC++ -lFLAC -lm
OBJS = \
decoders.o \
encoders.o \
file_utils.o \
main.o \
metadata.o \
metadata_manip.o \
metadata_object.o
SRCS_CPP = \
decoders.cpp \
encoders.cpp \
file_utils.cpp \
main.cpp \
metadata.cpp \
metadata_manip.cpp \
metadata_object.cpp
include $(topdir)/build/exe.mk

View File

@@ -24,16 +24,16 @@ topdir = ../..
PROGRAM_NAME = test_libFLAC
INCLUDES = -I../libFLAC/include -I$(topdir)/include
LIBS = -lgrabbag -lFLAC -lm
OBJS = \
bitbuffer.o \
decoders.o \
encoders.o \
file_utils.o \
main.o \
metadata.o \
metadata_manip.o \
metadata_object.o \
metadata_utils.o
SRCS_C = \
bitbuffer.c \
decoders.c \
encoders.c \
file_utils.c \
main.c \
metadata.c \
metadata_manip.c \
metadata_object.c \
metadata_utils.c
include $(topdir)/build/exe.mk

View File

@@ -25,11 +25,11 @@ PROGRAM_NAME = test_libOggFLAC++
#@@@ TODO: conditionalize ogg lib path and -logg
INCLUDES = -I$(topdir)/include
LIBS = -lgrabbag -lOggFLAC++ -lOggFLAC -lFLAC -L$(HOME)/local/lib -logg -lm
OBJS = \
decoders.o \
encoders.o \
file_utils.o \
main.o
SRCS_CPP = \
decoders.cpp \
encoders.cpp \
file_utils.cpp \
main.cpp
include $(topdir)/build/exe.mk

View File

@@ -25,12 +25,12 @@ PROGRAM_NAME = test_libOggFLAC
#@@@ TODO: conditionalize ogg lib path and -logg
INCLUDES = -I$(topdir)/include
LIBS = -lgrabbag -lOggFLAC -lFLAC -L$(HOME)/local/lib -logg -lm
OBJS = \
decoders.o \
encoders.o \
file_utils.o \
main.o \
metadata_utils.o
SRCS_C = \
decoders.c \
encoders.c \
file_utils.c \
main.c \
metadata_utils.c
include $(topdir)/build/exe.mk

View File

@@ -24,8 +24,8 @@ topdir = ../..
PROGRAM_NAME = test_streams
INCLUDES = -I./include -I$(topdir)/include
LIBS = -lm
OBJS = \
main.o
SRCS_C = \
main.c
include $(topdir)/build/exe.mk