aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: b068faa07c2f29066d9b2f53aad6ab49f3d2a681 (plain) (blame)
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
43
44
45
46
47
48
49
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.  This file is offered as-is,
# without any warranty.


# Include configurations.
include config.mk


# Object files for the libary.
LIBOBJ = linked-list client-list hash-table fd-table mds-message util

# Servers and utilities.
SERVERS = mds mds-respawn mds-server mds-echo mds-registry



OBJ_mds-server = mds-server interception-condition client multicast  \
                 queued-interception globals signals interceptors    \
                 sending slavery reexec receiving

OBJ_mds-registry = mds-registry

OBJ_mds-server_   = $(foreach O,$(OBJ_mds-server),obj/mds-server/$(O).o)
OBJ_mds-registry_ = $(foreach O,$(OBJ_mds-registry),obj/mds-registry/$(O).o)



# Build rules.

.PHONY: all
all: servers libraries

include build.mk

# Set permissions on built files.

.PHONY: perms
perms: all
	sudo chown 'root:root' bin/mds
	sudo chmod 4755 bin/mds

# Clean rules.

.PHONY: clean
clean:
	-rm -rf obj bin