# C compiler flags: compilation
#
CCFLAGS += $(DEFINE) $(INCLUDE)
-CCFLAGS += -Wall
+CCFLAGS += -Wall -Winline
CCFLAGS += -D_REENTRANT
CCFLAGS += -D_GNU_SOURCE
# flags needed for clean beos compilation
+ifeq ($(SYS),beos)
CCFLAGS += -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual
+endif
# Optimizations : don't compile debug versions with them
ifeq ($(DEBUG),0)
# Debugging and profiling support
ifneq ($(DEBUG),0)
+ifeq ($(SYS),beos)
+CFLAGS += -g
+else
CFLAGS += -pg
endif
+endif
#################################################################################
# Objects and files
video_decoder/vdec_idct.o
misc_obj = misc/mtime.o \
+ misc/tests.o \
misc/rsc_files.o \
misc/netutils.o \
misc/playlist.o \
find . -type d -name CVS | xargs rm -rf ; \
find . -type f -name '.*.swp' | xargs rm -f ; \
cd .. ; \
- tar czvf ${SNAPSHOTDIR}.tar.gz ${SNAPSHOTDIR} )
+ tar czvf ${SNAPSHOTDIR}.tar.gz ${SNAPSHOTDIR} ; \
+ tar cIvf ${SNAPSHOTDIR}.tar.bz2 ${SNAPSHOTDIR} )
rm -rf /tmp/${SNAPSHOTDIR}
mv /tmp/${SNAPSHOTDIR}.tar.gz ..
- @echo "Sources are in ../${SNAPSHOTDIR}.tar.gz"
+ mv /tmp/${SNAPSHOTDIR}.tar.bz2 ..
+ @echo "Sources are in ../${SNAPSHOTDIR}.tar.[gz,bz2]"
FORCE:
#$(PLUGIN_OBJ): %.so: .dep/%.d
lib/beos.so: $(PLUGIN_BEOS)
- $(CC) $(CCFLAGS) $(CFLAGS) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
+ $(CC) $(CCFLAGS) $(CFLAGS) $(LCFLAGS) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
$(PLUGIN_BEOS): %.o: %.cpp
$(CC) $(CCFLAGS) $(CFLAGS) -c -o $@ $<
$(CC) $(CCFLAGS) $(CFLAGS) -c -o $@ $<
lib/yuv.so: $(PLUGIN_YUV)
+ifeq ($(SYS),beos)
+ $(CC) $(CCFLAGS) $(CFLAGS) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
+else
ld -shared -o $@ $^
+endif
$(PLUGIN_YUV): %.o: %.c
$(CC) $(CCFLAGS) $(CFLAGS) -c -o $@ $<
lib/yuvmmx.so: $(PLUGIN_YUVMMX)
+ifeq ($(SYS),beos)
+ $(CC) $(CCFLAGS) $(CFLAGS) -nostart -Xlinker -soname=$@ -o $@ $^ plugins/_APP_
+else
ld -shared -o $@ $^
+endif
$(PLUGIN_YUVMMX): %.o: %.c
$(CC) $(CCFLAGS) $(CFLAGS) -c -o $@ $<