-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (35 loc) · 1.29 KB
/
Makefile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
OBJS+=jstr/jstr.o src/cgroup.o src/fail.o src/file.o src/jshelper.o
OBJS+=src/mounts.o src/net.o src/pipes.o src/request.o src/response.o
OBJS+=src/sandals.o src/spawner.o src/stdstreams.o src/supervisor.o
OBJS+=src/usrgrp.o
CFLAGS?=-Os -DNDEBUG
CFLAGS+=-I.
build: sandals
test: build
test "$$(whoami)" != root
nodejs tests/run.js
nodejs tests/socket.js
sandals: ${OBJS} kafel/libkafel.a
${CC} ${LDFLAGS} -o sandals $^
install: sandals
install -Ds sandals ${DESTDIR}${PREFIX}/bin/sandals
clean:
rm -fv sandbal ${OBJS}
make -C kafel clean
kafel/libkafel.a:
make -C kafel
jstr/jstr.o: jstr/jstr.h
src/cgroup.o: jstr/jstr.h src/sandals.h src/jshelper.h
src/fail.o: jstr/jstr.h src/sandals.h
src/file.o: jstr/jstr.h src/sandals.h src/jshelper.h
src/jshelper.o: jstr/jstr.h src/sandals.h src/jshelper.h
src/mounts.o: jstr/jstr.h src/sandals.h src/jshelper.h
src/net.o: jstr/jstr.h src/sandals.h
src/pipes.o: jstr/jstr.h src/sandals.h src/jshelper.h
src/request.o: jstr/jstr.h src/sandals.h src/jshelper.h
src/response.o: jstr/jstr.h src/sandals.h
src/sandals.o: jstr/jstr.h src/sandals.h
src/spawner.o: jstr/jstr.h src/sandals.h src/stdstreams.h
src/stdstreams.o: jstr/jstr.h src/sandals.h src/stdstreams.h
src/supervisor.o: jstr/jstr.h src/sandals.h src/stdstreams.h
src/usrgrp.o: jstr/jstr.h src/sandals.o