1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
srcdir=@srcdir@
VPATH=$(srcdir)
# directories
DESTDIR=
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=$(DESTDIR)@bindir@
mandir=$(DESTDIR)@mandir@
# programs
CC=@CC@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
INSTALL_DIR=mkdir -p
# cflags / libs
WARN=-Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
VER=-DVERSION='"@FBI_VERSION@"'
CFLAGS=@CFLAGS@ $(WARN) $(VER) -I$(srcdir) \
@X_CFLAGS@ -I/usr/X11R6/include/X11/fonts
MAGICK=@MAGICK@
UNGIF3=-L$(HOME)/ports/libungif-3.0/lib/.libs
LDLIBS=$(UNGIF3) @LIBS@ $(MAGICK) -lpcd -lm
# build
TARGET=fbi
OBJS=main.o fbtools.o fs.o dither.o \
loader.o ppm.o bmp.o @GFX@
########################################################################
# rules
all build:: $(TARGET) $(I18N)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS)
install:: all
$(INSTALL_DIR) $(bindir)
$(INSTALL_DIR) $(mandir)/man1
$(INSTALL_PROGRAM) -s $(TARGET) $(bindir)
$(INSTALL_DATA) fbi.man $(mandir)/man1/fbi.1
$(INSTALL_PROGRAM) fbgs $(bindir)
$(INSTALL_DATA) fbgs.man $(mandir)/man1/fbgs.1
clean::
-rm -f $(OBJS)
realclean distclean:: clean
-rm -f config.cache config.h config.log config.status Makefile
-rm -f $(TARGET) *~ xpm/*~ *.bak
cp Makefile.clean Makefile
depend dep::
gccmakedep -- $(CFLAGS) -- *.c
########################################################################
# maintainer stuff
COPY1 = loader.h loader.c \
ppm.c xwd.c pcd.c bmp.c \
jpeg.c tiff.c png.c gif.c
COPY2 = fbtools.c fbtools.h fs.c fs.h
sync:
rm -rf $(COPY1) $(COPY2)
for file in $(COPY1); do \
cp ../ida-*/$$file .; \
done
for file in $(COPY2); do \
cp ../xawtv-*/src/$$file .; \
done
chmod 444 $(COPY1) $(COPY2)
auto: clean
rm -f config.cache
autoconf
autoheader
./configure
make depend
make
checkit: realclean
dpkg-buildpackage -tc -us -uc -rfakeroot
lintian ../fbi_*.changes
release: realclean
dpkg-buildpackage -tc -rfakeroot
port:
dpkg-buildpackage -b -tc -rfakeroot
########################################################################
# DO NOT DELETE
|