"Fossies" - the Fresh Open Source Software Archive

Member "xzgv-0.9.2/src/Makefile" (3 Sep 2017, 2420 Bytes) of package /linux/misc/old/xzgv-0.9.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # src Makefile for xzgv
    2 
    3 # --------------------------------------------
    4 # >>> NB: if you're looking to edit this to
    5 # configure xzgv, edit `../config.mk' instead.
    6 # --------------------------------------------
    7 
    8 
    9 # This gets definitions for CC, CFLAGS, BINDIR etc.
   10 include ../config.mk
   11 
   12 CFLAGS+=`pkg-config --cflags gtk+-2.0` `pkg-config --cflags gdk-pixbuf-2.0` \
   13 	`pkg-config --cflags x11` `pkg-config --cflags libexif`
   14 LDFLAGS+=`pkg-config --libs gtk+-2.0` `pkg-config --libs gdk-pixbuf-2.0` \
   15 	`pkg-config --libs x11` `pkg-config --libs libexif` -lm
   16 
   17 all: xzgv
   18 
   19 OBJS=	main.o \
   20 	filedetails.o gotodir.o updatetn.o confirm.o help.o \
   21 	copymove.o rename.o \
   22 	resizepic.o dither.o \
   23 	rcfile.o misc.o \
   24 	getopt.o getopt1.o \
   25 	backend.o
   26 
   27 xzgv: $(OBJS)
   28 	$(CC) -o xzgv $(OBJS) $(LDFLAGS)
   29 
   30 installdirs:
   31 	/bin/sh ../mkinstalldirs $(BINDIR)
   32 
   33 install: xzgv installdirs
   34 	install xzgv $(BINDIR)
   35 	chmod 755 $(BINDIR)/xzgv
   36 	install xzgv.desktop $(DESKTOPDIR1)
   37 	install xzgv.desktop $(DESKTOPDIR2)
   38 	install icon-64.xpm $(PIXMAPDIR)/xzgv.xpm
   39 	chmod 644 $(DESKTOPDIR1)/xzgv.desktop
   40 	chmod 644 $(DESKTOPDIR2)/xzgv.desktop
   41 	chmod 644 $(PIXMAPDIR)/xzgv.xpm
   42 
   43 uninstall:
   44 	$(RM) $(BINDIR)/xzgv
   45 	$(RM) $(DESKTOPDIR1)/xzgv.desktop
   46 	$(RM) $(DESKTOPDIR2)/xzgv.desktop
   47 	$(RM) $(PIXMAPDIR)/xzgv.xpm
   48 
   49 clean:
   50 	$(RM) *~ *.o xzgv
   51 	$(RM) rcfile_opt.h rcfile_var.h rcfile_short.h
   52 
   53 realclean: clean
   54 
   55 # dependancies
   56 backend.o: backend.c backend.h
   57 confirm.o: confirm.c backend.h main.h confirm.h
   58 copymove.o: copymove.c backend.h main.h copymove.h
   59 dither.o: dither.c dither.h
   60 filedetails.o: filedetails.c backend.h main.h filedetails.h
   61 getopt.o: getopt.c
   62 getopt1.o: getopt1.c getopt.h
   63 gotodir.o: gotodir.c backend.h main.h gotodir.h
   64 help.o: help.c backend.h main.h rcfile.h help.h
   65 main.o: main.c backend.h resizepic.h rcfile.h filedetails.h gotodir.h \
   66  updatetn.h confirm.h misc.h copymove.h rename.h help.h dir_icon.xpm \
   67  dir_icon_small.xpm file_icon.xpm file_icon_small.xpm \
   68  icon-48.xpm xzgv.desktop main.h
   69 misc.o: misc.c misc.h
   70 rcfile.o: rcfile.c getopt.h rcfile.h rcfile_opt.h rcfile_var.h \
   71  rcfile_short.h
   72 rename.o: rename.c backend.h main.h rename.h
   73 resizepic.o: resizepic.c resizepic.h
   74 updatetn.o: updatetn.c backend.h main.h rcfile.h dither.h resizepic.h \
   75  confirm.h misc.h updatetn.h
   76 
   77 # more involved dependancy stuff
   78 rcfile_opt.h rcfile_var.h rcfile_short.h: options.src mkopts.awk
   79 	$(AWK) -f mkopts.awk <options.src
   80 
   81 loc:
   82 	sloccount *.c *.h