-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathMakevars
More file actions
41 lines (31 loc) · 1.4 KB
/
Makevars
File metadata and controls
41 lines (31 loc) · 1.4 KB
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
# -*- makefile -*-
OBJECTS = init.o poll.o errors.o processx-connection.o \
processx-vector.o create-time.o base64.o \
unix/childlist.o unix/connection.o \
unix/processx.o unix/sigchld.o unix/utils.o \
unix/named_pipe.o cleancall.o utils.o
.PHONY: all clean
all: tools/px tools/sock supervisor/supervisor client$(SHLIB_EXT) $(SHLIB) \
test/sigtermignore$(SHLIB_EXT)
tools/px: tools/px.c
$(CC) $(CFLAGS) $(LDFLAGS) -Wall tools/px.c -o tools/px
supervisor/supervisor: supervisor/supervisor.c supervisor/utils.c
$(CC) $(CFLAGS) $(LDFLAGS) supervisor/supervisor.c \
supervisor/utils.c -o supervisor/supervisor
tools/sock: tools/sock.c
$(CC) $(CFLAGS) $(LDFLAGS) -I../inst/include -Wall tools/sock.c -o tools/sock
CLIENT_OBJECTS = base64.o client.o errors.o
client$(SHLIB_EXT): $(CLIENT_OBJECTS)
$(SHLIB_LINK) -o client$(SHLIB_EXT) $(CLIENT_OBJECTS) $(PKG_LIBS) \
$(SHLIB_LIBADD) $(LIBR)
if [ -n "${PROCESSX_UNLINK_R}" ]; then \
echo Removing libR.so dependency from client.so; \
patchelf --remove-needed libR.so client$(SHLIB_EXT); \
fi
test/sigtermignore$(SHLIB_EXT): test/sigtermignore.o
$(SHLIB_LINK) -o test/sigtermignore$(SHLIB_EXT) test/sigtermignore.o
clean:
rm -rf $(SHLIB) $(OBJECTS) $(CLIENT_OBJECTS) \
supervisor/supervisor supervisor/supervisor.dSYM \
supervisor/supervisor.exe tools/px tools/sock \
client$(SHLIB_EXT)