Commit 338e9d01 authored by Josh Coalson's avatar Josh Coalson
Browse files

add -lgetopt

parent c722d474
......@@ -33,4 +33,4 @@ flac_SOURCES = \
encode.h \
file.h
flac_LDADD = $(top_builddir)/src/libFLAC/libFLAC.la @OGG_LIBS@ -lm
flac_LDADD = $(top_builddir)/src/libFLAC/libFLAC.la @OGG_LIBS@ @SHARE_LIBS@ -lm
......@@ -22,16 +22,16 @@
PROGRAM_NAME = flac
ifeq ($(DARWIN_BUILD),yes)
INCLUDES = -I./include -I../../include
LIBS = -lFLAC -lc -lm
LIBS = -lFLAC -lgetopt -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 -lm -L$(HOME)/local/lib -logg
LIBS = -lOggFLAC -lFLAC -lgetopt -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 -lm -L$(HOME)/local/lib -logg
LIBS = -lOggFLAC -lFLAC -lgetopt -lm -L$(HOME)/local/lib -logg
endif
endif
......
......@@ -39,7 +39,7 @@ OBJS= $(C_FILES:.c=.obj)
all: flac.exe
flac.exe: $(OBJS)
link.exe /libpath:"..\..\obj\lib" -out:../../obj/bin/$*.exe $(OBJS) libFLAC.lib ogg_static.lib
link.exe /libpath:"..\..\obj\lib" -out:../../obj/bin/$*.exe $(OBJS) libFLAC.lib ogg_static.lib getopt.lib
clean:
-del *.obj *.pch
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment