Commit 8290c007 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Shorten src/Makefile, use autogenerated deps.mk

parent d3da1698
Loading
Loading
Loading
Loading
+6 −73
Original line number Diff line number Diff line
include ../config.mk

OBJECTS = collage.o events.o feh_png.o filelist.o getopt.o getopt1.o imlib.o \
	index.o ipc.o keyevents.o list.o main.o md5.o menu.o multiwindow.o \
	options.o slideshow.o support.o thumbnail.o timers.o utils.o winwidget.o
TARGETS = $(shell echo *.c)
OBJECTS = $(TARGETS:.c=.o)

feh: $(OBJECTS)
feh: deps.mk $(OBJECTS)
	$(CC) $(CFLAGS) -o $@ $(OBJECTS) $(LDFLAGS)

deps.mk: $(TARGETS)
	$(CC) -MM $(TARGETS) > $@


.c.o:
	$(CC) $(CFLAGS) -c $<

collage.o: collage.c feh.h getopt.h structs.h menu.h ipc.h \
	utils.h debug.h winwidget.h filelist.h options.h

events.o: events.c feh.h getopt.h structs.h menu.h ipc.h \
	utils.h debug.h filelist.h winwidget.h timers.h options.h \
	events.h thumbnail.h

feh_png.o: feh_png.c feh_png.h feh.h getopt.h structs.h menu.h \
	ipc.h utils.h debug.h

filelist.o: filelist.c feh.h getopt.h structs.h menu.h ipc.h \
	utils.h debug.h filelist.h options.h

getopt.o: getopt.c

getopt1.o: getopt1.c getopt.h

imlib.o: imlib.c feh.h getopt.h structs.h menu.h ipc.h utils.h \
	debug.h filelist.h winwidget.h options.h

index.o: index.c feh.h getopt.h structs.h menu.h ipc.h utils.h \
	debug.h filelist.h winwidget.h options.h

ipc.o: ipc.c feh.h getopt.h structs.h menu.h ipc.h utils.h \
	debug.h options.h

keyevents.o: keyevents.c feh.h getopt.h structs.h menu.h ipc.h \
	utils.h debug.h thumbnail.h filelist.h winwidget.h options.h

list.o: list.c feh.h getopt.h structs.h menu.h ipc.h utils.h \
	debug.h filelist.h options.h

main.o: main.c feh.h getopt.h structs.h menu.h ipc.h utils.h \
	debug.h filelist.h winwidget.h timers.h options.h events.h \
	support.h

md5.o: md5.c md5.h

menu.o: menu.c feh.h getopt.h structs.h menu.h ipc.h utils.h \
	debug.h support.h thumbnail.h filelist.h winwidget.h options.h

multiwindow.o: multiwindow.c feh.h getopt.h structs.h menu.h \
	ipc.h utils.h debug.h winwidget.h timers.h filelist.h options.h

options.o: options.c feh.h getopt.h structs.h menu.h ipc.h \
	utils.h debug.h filelist.h options.h

slideshow.o: slideshow.c feh.h getopt.h structs.h menu.h ipc.h \
	utils.h debug.h filelist.h timers.h winwidget.h options.h

support.o: support.c feh.h getopt.h structs.h menu.h ipc.h \
	utils.h debug.h filelist.h options.h support.h

thumbnail.o: thumbnail.c feh.h getopt.h structs.h menu.h ipc.h \
	utils.h debug.h filelist.h winwidget.h options.h thumbnail.h \
	md5.h feh_png.h

timers.o: timers.c feh.h getopt.h structs.h menu.h ipc.h \
	utils.h debug.h options.h timers.h

utils.o: utils.c feh.h getopt.h structs.h menu.h ipc.h utils.h \
	debug.h options.h

winwidget.o: winwidget.c feh.h getopt.h structs.h menu.h ipc.h \
	utils.h debug.h filelist.h winwidget.h options.h
include deps.mk

clean:
	rm -f feh *.o

src/deps.mk

0 → 100644
+41 −0
Original line number Diff line number Diff line
collage.o: collage.c feh.h structs.h menu.h ipc.h utils.h getopt.h \
 debug.h winwidget.h filelist.h options.h
events.o: events.c feh.h structs.h menu.h ipc.h utils.h getopt.h debug.h \
 filelist.h winwidget.h timers.h options.h events.h thumbnail.h
feh_png.o: feh_png.c feh_png.h feh.h structs.h menu.h ipc.h utils.h \
 getopt.h debug.h
filelist.o: filelist.c feh.h structs.h menu.h ipc.h utils.h getopt.h \
 debug.h filelist.h options.h
getopt.o: getopt.c
getopt1.o: getopt1.c getopt.h
imlib.o: imlib.c feh.h structs.h menu.h ipc.h utils.h getopt.h debug.h \
 filelist.h winwidget.h options.h
index.o: index.c feh.h structs.h menu.h ipc.h utils.h getopt.h debug.h \
 filelist.h winwidget.h options.h
ipc.o: ipc.c feh.h structs.h menu.h ipc.h utils.h getopt.h debug.h \
 options.h
keyevents.o: keyevents.c feh.h structs.h menu.h ipc.h utils.h getopt.h \
 debug.h thumbnail.h filelist.h winwidget.h options.h
list.o: list.c feh.h structs.h menu.h ipc.h utils.h getopt.h debug.h \
 filelist.h options.h
main.o: main.c feh.h structs.h menu.h ipc.h utils.h getopt.h debug.h \
 filelist.h winwidget.h timers.h options.h events.h support.h
md5.o: md5.c md5.h
menu.o: menu.c feh.h structs.h menu.h ipc.h utils.h getopt.h debug.h \
 support.h thumbnail.h filelist.h winwidget.h options.h
multiwindow.o: multiwindow.c feh.h structs.h menu.h ipc.h utils.h \
 getopt.h debug.h winwidget.h timers.h filelist.h options.h
options.o: options.c feh.h structs.h menu.h ipc.h utils.h getopt.h \
 debug.h filelist.h options.h
slideshow.o: slideshow.c feh.h structs.h menu.h ipc.h utils.h getopt.h \
 debug.h filelist.h timers.h winwidget.h options.h
support.o: support.c feh.h structs.h menu.h ipc.h utils.h getopt.h \
 debug.h filelist.h options.h support.h
thumbnail.o: thumbnail.c feh.h structs.h menu.h ipc.h utils.h getopt.h \
 debug.h filelist.h winwidget.h options.h thumbnail.h md5.h feh_png.h
timers.o: timers.c feh.h structs.h menu.h ipc.h utils.h getopt.h debug.h \
 options.h timers.h
utils.o: utils.c feh.h structs.h menu.h ipc.h utils.h getopt.h debug.h \
 options.h
winwidget.o: winwidget.c feh.h structs.h menu.h ipc.h utils.h getopt.h \
 debug.h filelist.h winwidget.h options.h