add notion of topdir to Makefile.lite build system

This commit is contained in:
Josh Coalson
2002-10-23 22:08:13 +00:00
parent e29fb7c84c
commit cd0e322d2d
20 changed files with 76 additions and 39 deletions

View File

@@ -19,18 +19,20 @@
# GNU makefile
#
topdir = ../..
PROGRAM_NAME = flac
ifeq ($(DARWIN_BUILD),yes)
INCLUDES = -I./include -I../../include
INCLUDES = -I./include -I$(topdir)/include
LIBS = -lFLAC -lgetopt -lutf8 -lc -lm
else
#@@@ TODO: conditionalize ogg includes, defines, and -logg
ifeq ($(SOLARIS_BUILD),yes)
INCLUDES = -I./include -I../../include -I$(HOME)/local/include -DFLAC__HAS_OGG
INCLUDES = -I./include -I$(topdir)/include -I$(HOME)/local/include -DFLAC__HAS_OGG
LIBS = -lOggFLAC -lFLAC -lgetopt -lutf8 -lm -L$(HOME)/local/lib -logg
else
#@@@ TODO: conditionalize ogg includes, defines, and -logg
INCLUDES = -I./include -I../../include -I$(HOME)/local/include -DFLAC__HAS_OGG
INCLUDES = -I./include -I$(topdir)/include -I$(HOME)/local/include -DFLAC__HAS_OGG
LIBS = -lOggFLAC -lFLAC -lgetopt -lutf8 -lm -L$(HOME)/local/lib -logg
endif
endif
@@ -43,6 +45,6 @@ OBJS = \
main.o \
vorbiscomment.o
include ../../build/exe.mk
include $(topdir)/build/exe.mk
# DO NOT DELETE THIS LINE -- make depend depends on it.

View File

@@ -20,8 +20,10 @@
# GNU makefile
#
topdir = ../..
LIB_NAME = libFLAC++
INCLUDES = -I../../include
INCLUDES = -I$(topdir)/include
OBJS = \
file_decoder.o \
@@ -32,6 +34,6 @@ OBJS = \
stream_decoder.o \
stream_encoder.o
include ../../build/lib.mk
include $(topdir)/build/lib.mk
# DO NOT DELETE THIS LINE -- make depend depends on it.

View File

@@ -20,6 +20,8 @@
# GNU makefile
#
topdir = ../..
LIB_NAME = libFLAC
ifeq ($(DARWIN_BUILD),yes)
DEFINES = -DFLAC__NO_NASM -DFLAC__ALIGN_MALLOC_DATA
@@ -30,7 +32,7 @@ else
DEFINES = -DFLAC__CPU_IA32 -DFLAC__HAS_NASM -DFLAC__ALIGN_MALLOC_DATA
endif
endif
INCLUDES = -I./include -I../../include
INCLUDES = -I./include -I$(topdir)/include
DEBUG_CFLAGS = -DFLAC__OVERFLOW_DETECT
ifeq ($(DARWIN_BUILD),yes)
@@ -64,6 +66,6 @@ OBJS = $(ASM_OBJS) \
stream_encoder.o \
stream_encoder_framing.o
include ../../build/lib.mk
include $(topdir)/build/lib.mk
# DO NOT DELETE THIS LINE -- make depend depends on it.

View File

@@ -20,13 +20,15 @@
# GNU makefile
#
topdir = ../..
LIB_NAME = libOggFLAC++
INCLUDES = -I../../include
INCLUDES = -I$(topdir)/include
OBJS = \
stream_decoder.o \
stream_encoder.o
include ../../build/lib.mk
include $(topdir)/build/lib.mk
# DO NOT DELETE THIS LINE -- make depend depends on it.

View File

@@ -20,6 +20,8 @@
# GNU makefile
#
topdir = ../..
LIB_NAME = libOggFLAC
ifeq ($(DARWIN_BUILD),yes)
DEFINES =
@@ -30,13 +32,13 @@ else
DEFINES =
endif
endif
INCLUDES = -I./include -I../../include -I$(HOME)/local/include
INCLUDES = -I./include -I$(topdir)/include -I$(HOME)/local/include
DEBUG_CFLAGS =
OBJS = \
stream_decoder.o \
stream_encoder.o
include ../../build/lib.mk
include $(topdir)/build/lib.mk
# DO NOT DELETE THIS LINE -- make depend depends on it.

View File

@@ -19,13 +19,15 @@
# GNU makefile
#
topdir = ../..
PROGRAM_NAME = metaflac
INCLUDES = -I./include -I../../include
INCLUDES = -I./include -I$(topdir)/include
LIBS = -lFLAC -lgetopt -lutf8 -lm
OBJS = \
main.o
include ../../build/exe.mk
include $(topdir)/build/exe.mk
# DO NOT DELETE THIS LINE -- make depend depends on it.

View File

@@ -2,8 +2,10 @@
# GNU makefile
#
topdir = ../..
LIB_NAME = libplugin_common
INCLUDES = -I../../include -I$(HOME)/local/include
INCLUDES = -I$(topdir)/include -I$(HOME)/local/include
DEFINES = -DFLAC__HAS_ID3LIB -DID3LIB_MAJOR=3 -DID3LIB_MINOR=8 -DID3LIB_PATCH=0
OBJS = \
@@ -14,6 +16,6 @@ OBJS = \
id3v2.o \
vorbiscomment.o
include ../../build/lib.mk
include $(topdir)/build/lib.mk
# DO NOT DELETE THIS LINE -- make depend depends on it.

View File

@@ -19,9 +19,11 @@
# GNU makefile
#
topdir = ../..
LIB_NAME = libxmms-flac
INCLUDES = $(shell xmms-config --cflags) -I./include -I../../include -I..
LIBS = ../../obj/lib/libFLAC.a ../../obj/lib/libplugin_common.a
INCLUDES = $(shell xmms-config --cflags) -I./include -I$(topdir)/include -I..
LIBS = $(topdir)/obj/lib/libFLAC.a $(topdir)/obj/lib/libplugin_common.a
OBJS = \
charset.o \
@@ -29,6 +31,6 @@ OBJS = \
plugin.o \
wrap_id3.o
include ../../build/lib.mk
include $(topdir)/build/lib.mk
# DO NOT DELETE THIS LINE -- make depend depends on it.

View File

@@ -2,14 +2,16 @@
# GNU makefile
#
topdir = ../..
LIB_NAME = libgetopt
INCLUDES = -I../../include -I../../include/share
INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
OBJS = \
getopt.o \
getopt1.o
include ../../build/lib.mk
include $(topdir)/build/lib.mk
# Our lame Makefile.lite system has no provision for building multiple libs in
# a directory, so we hack it:

View File

@@ -19,8 +19,10 @@
# GNU makefile
#
topdir = ../..
PROGRAM_NAME = test_libFLAC++
INCLUDES = -I../../include
INCLUDES = -I$(topdir)/include
LIBS = -lFLAC++ -lFLAC -lm
OBJS = \
decoders.o \
@@ -31,7 +33,7 @@ OBJS = \
metadata_manip.o \
metadata_object.o
include ../../build/exe.mk
include $(topdir)/build/exe.mk
LINK = $(CCC) $(LINKAGE)

View File

@@ -19,8 +19,10 @@
# GNU makefile
#
topdir = ../..
PROGRAM_NAME = test_libFLAC
INCLUDES = -I../libFLAC/include -I../../include
INCLUDES = -I../libFLAC/include -I$(topdir)/include
LIBS = -lFLAC -lm
OBJS = \
bitbuffer.o \
@@ -33,6 +35,6 @@ OBJS = \
metadata_object.o \
metadata_utils.o
include ../../build/exe.mk
include $(topdir)/build/exe.mk
# DO NOT DELETE THIS LINE -- make depend depends on it.

View File

@@ -19,9 +19,11 @@
# GNU makefile
#
topdir = ../..
PROGRAM_NAME = test_libOggFLAC++
#@@@ TODO: conditionalize ogg lib path and -logg
INCLUDES = -I../../include
INCLUDES = -I$(topdir)/include
LIBS = -lOggFLAC++ -lOggFLAC -lFLAC -L$(HOME)/local/lib -logg -lm
OBJS = \
decoders.o \
@@ -29,7 +31,7 @@ OBJS = \
file_utils.o \
main.o
include ../../build/exe.mk
include $(topdir)/build/exe.mk
LINK = $(CCC) $(LINKAGE)

View File

@@ -19,9 +19,11 @@
# GNU makefile
#
topdir = ../..
PROGRAM_NAME = test_libOggFLAC
#@@@ TODO: conditionalize ogg lib path and -logg
INCLUDES = -I../../include
INCLUDES = -I$(topdir)/include
LIBS = -lOggFLAC -lFLAC -lm -L$(HOME)/local/lib -logg
OBJS = \
decoders.o \
@@ -30,6 +32,6 @@ OBJS = \
main.o \
metadata_utils.o
include ../../build/exe.mk
include $(topdir)/build/exe.mk
# DO NOT DELETE THIS LINE -- make depend depends on it.

View File

@@ -19,12 +19,14 @@
# GNU makefile
#
topdir = ../..
PROGRAM_NAME = test_streams
INCLUDES = -I./include -I../../include
INCLUDES = -I./include -I$(topdir)/include
LIBS = -lm
OBJS = \
main.o
include ../../build/exe.mk
include $(topdir)/build/exe.mk
# DO NOT DELETE THIS LINE -- make depend depends on it.