2017-06-20 19:40:00 +00:00
|
|
|
# See LICENSE file for copyright and license details
|
2020-09-01 20:50:47 +00:00
|
|
|
# dirl - customizable directory listings based on quark
|
2017-06-20 19:40:00 +00:00
|
|
|
.POSIX:
|
2016-09-02 07:59:02 +00:00
|
|
|
|
|
|
|
include config.mk
|
|
|
|
|
2020-08-30 12:16:41 +00:00
|
|
|
COMPONENTS = data http sock util dirl
|
2018-02-04 20:27:33 +00:00
|
|
|
|
2020-09-01 20:50:47 +00:00
|
|
|
all: dirl
|
2016-09-02 07:59:02 +00:00
|
|
|
|
2020-09-01 20:50:47 +00:00
|
|
|
main.o: main.c util.h sock.h http.h arg.h config.h
|
|
|
|
http.o: http.c http.h util.h http.h data.h config.h
|
|
|
|
data.o: data.c data.h util.h http.h dirl.h
|
|
|
|
dirl.o: dirl.c dirl.h util.h http.h
|
|
|
|
sock.o: sock.c sock.h util.h
|
|
|
|
util.o: util.c util.h
|
2018-02-04 20:27:33 +00:00
|
|
|
|
2020-09-01 20:50:47 +00:00
|
|
|
dirl: $(COMPONENTS:=.o) $(COMPONENTS:=.h) main.o config.mk
|
2018-02-04 20:27:33 +00:00
|
|
|
$(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $(COMPONENTS:=.o) main.o $(LDFLAGS)
|
2016-09-02 07:59:02 +00:00
|
|
|
|
|
|
|
config.h:
|
2016-09-02 08:49:42 +00:00
|
|
|
cp config.def.h $@
|
2016-09-02 07:59:02 +00:00
|
|
|
|
|
|
|
clean:
|
2020-09-01 20:50:47 +00:00
|
|
|
rm -f dirl main.o $(COMPONENTS:=.o)
|