#
# Libraries
#
-ifeq ($(SYS),gnu)
-LIB += -lthreads -ldl
-endif
-
-ifneq (,$(findstring bsd,$(SYS)))
-LIB += -pthread -lgnugetopt
-LIB += -L/usr/local/lib
-endif
-
-ifneq (,$(findstring linux,$(SYS)))
-LIB += -lpthread -ldl
-endif
-
-ifneq (,$(findstring solaris,$(SYS)))
-LIB += -ldl -lsocket -lnsl -lpthread
-endif
-
-ifneq (,$(findstring darwin,$(SYS)))
-LIB += -ldl
-endif
+LIB = @LIB@ -L/usr/local/lib
ifeq ($(SYS),beos)
LIB += -lbe -lroot -lgame
#
# C compiler flags: linking
#
-LCFLAGS += $(LIB)
+LCFLAGS += @LCFLAGS@ $(LIB)
LCFLAGS += -Wall
#LCFLAGS += -s
ifneq (,$(findstring darwin,$(SYS)))
LCFLAGS += -dyn
else
-LCFLAGS += --export-dynamic @DYNAMIC_FLAG@
+LCFLAGS += --export-dynamic
endif
endif
endif
src/misc/modules.o \
src/misc/netutils.o
-
C_OBJ = $(INTERFACE) \
$(INPUT) \
$(VIDEO_OUTPUT) \
$(GEN_DECODER) \
$(VIDEO_PARSER) \
$(VIDEO_DECODER) \
- $(MISC)
+ $(MISC) \
+ @GETOPT@
#
clean:
rm -f $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ) $(STD_PLUGIN_OBJ)
- rm -f plugins/*/*.o src/*/*.o lib/*.so
+ rm -f plugins/*/*.o src/*/*.o lib/*.so extras/*/*.o
rm -f vlc gvlc kvlc qvlc
distclean: clean
- rm -f src/*/*.o plugins/*/*.o **/*~ *.log
+ rm -f **/*.o **/*~ *.log
rm -f Makefile include/defs.h include/config.h
rm -f config.status config.cache config.log
rm -f gmon.out core build-stamp