CC = gcc #The CC below is for cross-compiling for the NSLU2 #CC = arm-linux-gcc -mcpu=xscale -mbig-endian # you can add to CFLAGS: # -DLinux if you compile on Linux # -DFreeBSD if you compile on FreeBSD # -DUSE_INTERNAL_SENDFILE (less performance) if you cannot use the sendfile syscall on your target platform with 64-bit file access. Needed for Unslung 5.5 on NSLU2. # -DUSE_INTERNAL_SENDFILE_MMAP (better performance) with -DUSE_INTERNAL_SENDFILE if your target platform supports memory mapped files with 64-bit file access and you want to use it. Not possible with >2GB files on Unslung 5.5 on NSLU2. CFLAGS = -DLinux -DUSE_INTERNAL_SENDFILE -O2 -Wall -Wstrict-prototypes -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE OBJS = kissdx.o connection.o sendfile.o dvdread.o playlist.o jpeg.o piccache.o utils.o config.o backtoback.o \ gdstuff/gdstuff.o gdstuff/gd.o gdstuff/gdfontg.o gdstuff/gd_jpeg.o gdstuff/gdhelpers.o gdstuff/gd_io_dp.o gdstuff/gd_io.o gdstuff/gd_security.o kissdx: $(OBJS) # remove -liconv below if your system has libiconv built in $(CC) -o $@ $(OBJS) -ldvdread -liconv -ljpeg -lm all: kissdx strip kissdx.exe # warning: on FreeBSD the root's group is wheel, edit the lines # below accordingly install: install -b -S .old -o root -g root -m 755 kissdx $(DESTDIR)/usr/sbin/kissdx install -b -S .old -o root -g root -m 644 kissdx.conf $(DESTDIR)/etc/kissdx.conf install -o root -g root -m 644 kissdx.1 $(DESTDIR)/usr/share/man/man1/kissdx.1 clean: rm -rf kissdx.exe $(OBJS) *.bak *~