]> git.sesse.net Git - vlc/blobdiff - Makefile.in
. should compile & run on Solaris with ./configure --disable-dsp
[vlc] / Makefile.in
index 0484b12ec6071c913d583ea8e6b5b3a012547f85..c99e955b18b80e47a291dc470f910c98171f5171 100644 (file)
@@ -23,6 +23,9 @@ prefix=@prefix@
 CC=@CC@
 SHELL=@SHELL@
 
+LIB_SDL=@LIB_SDL@
+LIB_GLIDE=@LIB_GLIDE@
+LIB_GGI=@LIB_GGI@
 
 #----------------- do not change anything below this line ----------------------
 
@@ -50,7 +53,7 @@ PROGRAM_BUILD = `date` $(USER)
 
 # DEFINE will contain some of the constants definitions decided in Makefile, 
 # including SYS_xx. It will be passed to C compiler.
-DEFINE += -DSYS_$(shell echo $(SYS) | sed 's/-.*//' | tr a-z A-Z)
+DEFINE += -DSYS_$(shell echo $(SYS) | sed 's/-.*//' | tr a-z. A-Z_)
 
 ################################################################################
 # Tuning and other variables - do not change anything except if you know
@@ -79,7 +82,7 @@ LIB += -lpthread -ldl
 endif
 
 ifneq (,$(findstring solaris,$(SYS)))
-LIB += -ldl -lsocket -lnsl -lposix4 -lpthread
+LIB += -ldl -lsocket -lnsl -lposix4 -lpthread -lresolv
 endif
 
 ifeq ($(SYS),beos)
@@ -104,9 +107,9 @@ endif
 # Optimizations : don't compile debug versions with them
 ifeq ($(OPTIMS),1)
 CFLAGS += -O6
-CFLAGS += -ffast-math -funroll-loops -fargument-noalias-global
-CFLAGS += -funroll-all-loops -fstrict-aliasing
+CFLAGS += -ffast-math -funroll-loops -funroll-all-loops
 CFLAGS += -fomit-frame-pointer
+CFLAGS += @BIZARRE_OPTIMS@
 
 # Optimizations for x86 familiy
 ifneq (,$(findstring 86,$(ARCH)))
@@ -245,6 +248,7 @@ VIDEO_DECODER =     src/video_decoder/video_decoder.o \
 MISC =         src/misc/mtime.o \
                src/misc/tests.o \
                src/misc/rsc_files.o \
+               src/misc/modules.o \
                src/misc/netutils.o \
                src/misc/playlist.o \
                src/misc/plugins.o
@@ -434,7 +438,10 @@ snapshot:
        mv /tmp/${SNAPSHOTDIR}.tar.bz2 ..
        @echo "Sources are in ../${SNAPSHOTDIR}.tar.[gz,bz2]"
 
-plugins: $(PLUGINS:%=lib/%.so)
+plugins: lib $(PLUGINS:%=lib/%.so)
+
+lib:
+       mkdir -p lib
 
 FORCE:
 
@@ -486,7 +493,7 @@ ifeq ($(SYS),beos)
        rm -f ./plugins/_APP_
        ln -s ../vlc ./plugins/_APP_
 else
-       $(CC) $(CFLAGS) $(LCFLAGS) --export-dynamic -rdynamic -o $@ $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ)      
+       $(CC) $(CFLAGS) $(LCFLAGS) --export-dynamic @DYNAMIC_FLAG@ -o $@ $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ) 
 endif
 
 lib/beos.so: $(PLUGIN_BEOS)
@@ -494,49 +501,49 @@ lib/beos.so: $(PLUGIN_BEOS)
 
 lib/esd.so: $(PLUGIN_ESD)
 ifneq (,$(findstring bsd,$(SYS)))
-       $(CC) -shared -lesd -o $@ $^
+       $(CC) $(LCFLAGS) -shared -lesd -o $@ $^
 else
-       $(CC) -shared -laudiofile -lesd -o $@ $^
+       $(CC) $(LCFLAGS) -shared -laudiofile -lesd -o $@ $^
 endif
 
 lib/dsp.so: $(PLUGIN_DSP)
-       $(CC) -shared -o $@ $^
+       $(CC) $(LCFLAGS) -shared -o $@ $^
 
 lib/alsa.so: $(PLUGIN_ALSA)
-       $(CC) -shared -o $@ $^
+       $(CC) $(LCFLAGS) -shared -o $@ $^
 
 lib/null.so: $(PLUGIN_NULL)
-       $(CC) -shared -o $@ $^
+       $(CC) $(LCFLAGS) -shared -o $@ $^
 
 lib/dummy.so: $(PLUGIN_DUMMY)
-       $(CC) -shared -o $@ $^
+       $(CC) $(LCFLAGS) -shared -o $@ $^
 
 lib/fb.so: $(PLUGIN_FB)
-       $(CC) -shared -o $@ $^
+       $(CC) $(LCFLAGS) -shared -o $@ $^
 
 lib/x11.so: $(PLUGIN_X11)
-       $(CC) -shared -L/usr/X11R6/lib -lX11 -lXext -o $@ $^
+       $(CC) $(LCFLAGS) -shared -L/usr/X11R6/lib -lX11 -lXext -o $@ $^
 
 lib/mga.so: $(PLUGIN_MGA)
-       $(CC) -shared -L/usr/X11R6/lib -lX11 -lXext -o $@ $^
+       $(CC) $(LCFLAGS) -shared -L/usr/X11R6/lib -lX11 -lXext -o $@ $^
 
 lib/gnome.so: $(PLUGIN_GNOME)
-       $(CC) -shared `gnome-config --libs gnomeui | sed 's,-rdynamic,,'` -o $@ $^
+       $(CC) $(LCFLAGS) -shared `gnome-config --libs gnomeui | sed 's,-rdynamic,,'` -o $@ $^
 
 lib/glide.so: $(PLUGIN_GLIDE)
-       $(CC) -shared -lglide2x -o $@ $^
+       $(CC) $(LCFLAGS) -shared $(LIB_GLIDE) -o $@ $^
 
 lib/ggi.so: $(PLUGIN_GGI)
-       $(CC) -shared -lggi -o $@ $^
+       $(CC) $(LCFLAGS) -shared $(LIB_GGI) -o $@ $^
 
 lib/sdl.so: $(PLUGIN_SDL)
-       $(CC) -shared -lSDL -o $@ $^
+       $(CC) $(LCFLAGS) -shared $(LIB_SDL) -o $@ $^
 
 lib/yuv.so: $(PLUGIN_YUV)
 ifeq ($(SYS),beos)
        $(CC) $(CFLAGS) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
 else
-       $(CC) -shared -o $@ $^
+       $(CC) $(LCFLAGS) -shared -o $@ $^
 endif
 
 lib/yuvmmx.so: $(PLUGIN_YUVMMX)