fixes for building static libs (new FLAC__NO_DLL #define)
[flac.git] / src / flac / Makefile.lite
index 0414ae2..fc3088f 100644 (file)
@@ -1,5 +1,5 @@
 #  flac - Command-line FLAC encoder/decoder
-#  Copyright (C) 2000,2001  Josh Coalson
+#  Copyright (C) 2000,2001,2002  Josh Coalson
 #
 #  This program is free software; you can redistribute it and/or
 #  modify it under the terms of the GNU General Public License
 #
 
 PROGRAM_NAME = flac
-#@@@OGG
-INCLUDES     = -I./include -I../../include -I$(HOME)/local/include
-#@@@OGG conditionalize -logg
-LIBS         = -lFLAC -lm -L$(HOME)/local/lib -logg
+ifeq ($(DARWIN_BUILD),yes)
+INCLUDES     = -I./include -I../../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
+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
+LIBS         = -lOggFLAC -lFLAC -lgetopt -lutf8 -lm -L$(HOME)/local/lib -logg
+endif
+endif
 
 OBJS = \
        analyze.o \
        decode.o \
        encode.o \
        file.o \
-       main.o
+       main.o \
+       vorbiscomment.o
 
 include ../../build/exe.mk