forked from TricksterGuy/complx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
67 lines (56 loc) · 1.98 KB
/
Makefile
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
57
58
59
60
61
62
63
64
65
66
# File intended only to be ran with GNU make. Use any other make program at your own risk!
PREFIX := /usr/local
export PREFIX
MASTER_CPP_FLAGS := -O3 -s
export MASTER_CPP_FLAGS
INSTALL := install
ARCH = $(shell getconf LONG_BIT)
export ARCH
all: liblc3.so as2obj lc3runner lc3test lc3plugins complx
liblc3.so :
$(MAKE) -C liblc3 liblc3.so -f Makefile
as2obj : liblc3.so
$(MAKE) -C $@ $@ -f Makefile
lc3runner : liblc3.so
$(MAKE) -C $@ $@ -f Makefile
lc3test : liblc3.so
$(MAKE) -C $@ $@ -f Makefile
lc3plugins : liblc3.so
$(MAKE) -C $@ all -f Makefile
complx : liblc3.so
$(MAKE) -C $@ $@ -f Makefile
clean :
$(MAKE) -C liblc3 clean -f Makefile
$(MAKE) -C as2obj clean -f Makefile
$(MAKE) -C lc3runner clean -f Makefile
$(MAKE) -C lc3test clean -f Makefile
$(MAKE) -C lc3plugins clean -f Makefile
$(MAKE) -C complx clean -f Makefile
install : all
mkdir -p $(PREFIX)
mkdir -p $(PREFIX)/bin
mkdir -p $(PREFIX)/lib
mkdir -p $(PREFIX)/share/complx-tools
mkdir -p $(PREFIX)/share/icons
mkdir -p $(PREFIX)/share/applications
$(MAKE) -C liblc3 install -f Makefile
$(MAKE) -C as2obj install -f Makefile
$(MAKE) -C lc3runner install -f Makefile
$(MAKE) -C lc3test install -f Makefile
$(MAKE) -C lc3plugins install -f Makefile
$(MAKE) -C complx install -f Makefile
$(INSTALL) -m 0644 Complx.pdf $(PREFIX)/share/complx-tools
$(INSTALL) -m 0644 ComplxChangeLog.txt $(PREFIX)/share/complx-tools
$(INSTALL) -m 0644 ChangeLog $(PREFIX)/share/complx-tools
$(INSTALL) -m 0644 PattPatelAppA.pdf $(PREFIX)/share/complx-tools
$(INSTALL) -m 0644 complx.png $(PREFIX)/share/icons
$(INSTALL) -m 0644 complx.desktop $(PREFIX)/share/applications
$(INSTALL) -m 0644 complx-tips.txt $(PREFIX)/share/complx-tools
@echo remember to run sudo ldconfig
uninstall :
$(MAKE) -C liblc3 uninstall -f Makefile
$(MAKE) -C as2obj uninstall -f Makefile
$(MAKE) -C lc3runner uninstall -f Makefile
$(MAKE) -C lc3test uninstall -f Makefile
$(MAKE) -C lc3plugins uninstall -f Makefile
$(MAKE) -C complx uninstall -f Makefile