dirl/Makefile

26 lines
627 B
Makefile
Raw Normal View History

# See LICENSE file for copyright and license details
2020-09-01 20:50:47 +00:00
# dirl - customizable directory listings based on quark
.POSIX:
include config.mk
2020-08-30 12:16:41 +00:00
COMPONENTS = data http sock util dirl
2020-09-01 20:50:47 +00:00
all: dirl
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
2020-09-01 20:50:47 +00:00
dirl: $(COMPONENTS:=.o) $(COMPONENTS:=.h) main.o config.mk
$(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $(COMPONENTS:=.o) main.o $(LDFLAGS)
config.h:
cp config.def.h $@
clean:
2020-09-01 20:50:47 +00:00
rm -f dirl main.o $(COMPONENTS:=.o)