-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (49 loc) · 1.17 KB
/
Makefile
File metadata and controls
57 lines (49 loc) · 1.17 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
53
54
55
56
# CC=gcc
CFLAGS=-Wall -g
all: mrcc mrcc-map
mrcc_obj=src/mrcc.o \
src/files.o \
src/stringutils.o \
src/args.o \
src/utils.o \
src/tempfile.o \
src/cleanup.o \
src/io.o \
src/safeguard.o \
src/compile.o \
src/exec.o \
src/remote.o \
src/trace.o \
src/traceenv.o \
src/netfsutils.o \
src/mrutils.o
mrcc: $(mrcc_obj)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(mrcc_obj) $(LIBS)
mrcc-map_obj=src/mrcc-map.o \
src/files.o \
src/stringutils.o \
src/args.o \
src/utils.o \
src/tempfile.o \
src/cleanup.o \
src/io.o \
src/safeguard.o \
src/compile.o \
src/exec.o \
src/remote.o \
src/trace.o \
src/traceenv.o \
src/netfsutils.o \
src/mrutils.o
mrcc-map: $(mrcc-map_obj)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(mrcc-map_obj) $(LIBS)
install:
echo "Copy mrcc and mrcc-map to /usr/bin/:"
mkdir -p /usr/bin
cp ./mrcc /usr/bin/
cp ./mrcc-map /usr/bin/
uninstall:
rm -f /usr/bin/mrcc
rm -f /usr/bin/mrcc-map
clean:
rm -f mrcc $(mrcc_obj) mrcc-map $(mrcc-map_obj)