summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: b23bde078bb26c97a8a46432e40477dd635f6646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
include ../config.mk

TARGETS = $(shell echo *.c)
OBJECTS = $(TARGETS:.c=.o)

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

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

include deps.mk

clean:
	rm -f feh *.o

.PHONY: clean