httpmodules: init module httpmodules
This commit is contained in:
parent
d54bc367f1
commit
caacad97dd
3 changed files with 16 additions and 4 deletions
9
Makefile
9
Makefile
|
@ -2,18 +2,19 @@ DC = ldc2
|
|||
CFLAGS = -Jstatic -Oz
|
||||
|
||||
OBJS = httpd.o http.o mimetypes.o
|
||||
MODULEOBJS = $(shell ls httpmodules/*.d | sed 's/\.d$$/.o/')
|
||||
|
||||
all: httpd
|
||||
|
||||
httpd: ${OBJS}
|
||||
${DC} -of=httpd ${OBJS}
|
||||
httpd: ${MODULEOBJS} ${OBJS}
|
||||
${DC} -of=httpd ${OBJS} ${MODULEOBJS}
|
||||
|
||||
.SUFFIXES: .d .o
|
||||
.d.o:
|
||||
${DC} ${CFLAGS} -c $<
|
||||
${DC} ${CFLAGS} -od=$(dir $<) -c $<
|
||||
|
||||
clean:
|
||||
rm -f httpd ${OBJS}
|
||||
rm -f httpd ${OBJS} ${MODULEOBJS}
|
||||
|
||||
$(shell ${DC} -o- -makedeps ${OBJS})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue