summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-03-25 21:13:37 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2010-03-25 21:13:37 +0100
commit8290c007f41b3f14ff706dd4ef90ba9be8da598c (patch)
treee0b790494abe9c04a2b2b43fb66ba20fb80c8982 /src/Makefile
parentd3da16983b281019b65458b6f7f842ea112bf14f (diff)
Shorten src/Makefile, use autogenerated deps.mk
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile79
1 files changed, 6 insertions, 73 deletions
diff --git a/src/Makefile b/src/Makefile
index 5fdc498..b23bde0 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,82 +1,15 @@
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