forked from inrazhtet/Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (37 loc) · 1.56 KB
/
Copy pathMakefile
File metadata and controls
52 lines (37 loc) · 1.56 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
42
43
44
45
46
47
48
49
50
51
52
# This Makefile is hacked for this particular system. It will need to be generalized
# in the future.
# We have learned that
# pkg-config --cflags gio-2.0 glib-2.0 gio-unix-2.0
# returns
# -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0/
# So we need to translate that to mzc syntax. See MZC_CFLAGS
# We have also learned that
# pkg-config --libs gio-2.0 glib-2.0 gio-unix-2.0
# returns
# -lgio-2.0 -lgobject-2.0 -lglib-2.0
# So we need to translate that to mzc syntax, too. See MZC_LDLIBS
CFLAGS = -g -Wall -fPIC `pkg-config --cflags gio-2.0 glib-2.0 gio-unix-2.0` -I/usr/racket/include -DVERBOSE
LDLIBS = `pkg-config --libs gio-2.0 glib-2.0 gio-unix-2.0`
MZC_CFLAGS = ++ccf -g ++ccf -Wall ++ccf -pthread ++cppf -I/usr/include/glib-2.0 ++cppf -I/usr/lib/x86_64-linux-gnu/glib-2.0/include ++cppf -I/usr/include/gio-unix-2.0/
MZC_LDLIBS = ++ldl gio-2.0 ++ldl gobject-2.0 ++ldl glib-2.0
default:rdbus.so
adding.so: adding_3m.o
mzc --3m --ld adding.so adding_3m.o
adding_3m.o: adding.3m.c
mzc --3m --cc adding.3m.c
adding.3m.c: adding.c
mzc --xform adding.c
makeadder.so: makeadder_3m.o
mzc --3m --ld makeadder.so makeadder_3m.o
makeadder_3m.o: makeadder.3m.c
mzc --3m --cc makeadder.3m.c
makeadder.3m.c: makeadder.c
mzc --xform makeadder.c
rdbus.so: rdbus_3m.o
mzc $(MZC_CFLAGS) --3m --ld rdbus.so rdbus_3m.o
rdbus_3m.o: rdbus.3m.c
mzc $(MZC_CFLAGS) --3m --cc rdbus.3m.c
rdbus.3m.c: rdbus.c
mzc $(MZC_CFLAGS) --xform rdbus.c
rams-test-server.o: rams-test-server.c
rams-test-server: rams-test-server.o