-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.observer
49 lines (33 loc) · 1.41 KB
/
Makefile.observer
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
# This is a template Makefile generated by rpcgen
# Parameters
CLIENT = observer_client
SERVER = observer_server
MAIN = main
LIBS = -lm
SOURCES_CLNT.c =
SOURCES_CLNT.h =
SOURCES_SVC.c =
SOURCES_SVC.h =
SOURCES.x = observer.x
TARGETS_SVC.c = observer_svc.c observer_server.c observer_xdr.c history_writer.c array_list.c svg_file.c geometry.c color.c saved_action.c
TARGETS_CLNT.c = observer_clnt.c observer_client.c observer_xdr.c waiting_list.c
TARGETS = main.c history_writer.h observer.h waiting_list.h observer_client.h observer_server.h observer_xdr.c observer_clnt.c observer_svc.c observer_client.c observer_server.c array_list.h svg_file.h geometry.h color.h saved_action.h
OBJECTS_CLNT = $(SOURCES_CLNT.c:%.c=%.o) $(TARGETS_CLNT.c:%.c=%.o)
OBJECTS_SVC = $(SOURCES_SVC.c:%.c=%.o) $(TARGETS_SVC.c:%.c=%.o)
# Compiler flags
CFLAGS += -g -std=c11 -D_POSIX_C_SOURCE
LDLIBS += -lnsl -lpthread -lm
RPCGENFLAGS =
# Targets
all : $(CLIENT) $(SERVER)
$(TARGETS) : $(SOURCES.x)
rpcgen $(RPCGENFLAGS) $(SOURCES.x)
$(OBJECTS_CLNT) : $(SOURCES_CLNT.c) $(SOURCES_CLNT.h) $(TARGETS_CLNT.c)
$(OBJECTS_SVC) : $(SOURCES_SVC.c) $(SOURCES_SVC.h) $(TARGETS_SVC.c)
$(CLIENT) : $(OBJECTS_CLNT)
$(LINK.c) -o $(CLIENT) $(OBJECTS_CLNT) $(LDLIBS)
$(SERVER) : $(OBJECTS_SVC)
$(LINK.c) -o $(SERVER) $(OBJECTS_SVC) $(LDLIBS)
clean:
$(RM) core $(OBJECTS_CLNT) $(OBJECTS_SVC) $(CLIENT) $(SERVER) $(MAIN)
$(RM) /tmp/localSocket.*