forked from couling/WebDAV-Daemon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
25 lines (17 loc) · 662 Bytes
/
makefile
File metadata and controls
25 lines (17 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
CFLAGS=-O3 -s
STATIC_FLAGS=-Werror -Wall -Wno-pointer-sign -Wno-unused-result -std=gnu99 -pthread
all: build/rap build/webdavd
ls -lh $^
build/webdavd: build/webdavd.o build/shared.o build/configuration.o build/xml.o
gcc ${CFLAGS} ${STATIC_FLAGS} -o $@ $(filter %.o,$^) -lmicrohttpd -lxml2 -lgnutls -luuid
build/rap: build/rap.o build/shared.o build/xml.o
gcc ${CFLAGS} ${STATIC_FLAGS} -o $@ $(filter %.o,$^) -lpam -lxml2
build/%.o: %.c makefile | build
gcc ${CFLAGS} ${STATIC_FLAGS} -MMD -o $@ $(filter %.c,$^) -I/usr/include/libxml2 -c
build:
mkdir $@
clean:
rm -rf build
package: all
cd build; package-project ../manifest
-include build/*.d