-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.macosx
executable file
·78 lines (70 loc) · 1.58 KB
/
Makefile.macosx
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
67
68
69
70
71
72
73
74
75
76
77
78
# TI-99/sim Makefile for Mac OS X
BIN_DIR = appdir/bin
DATA_DIR = appdir
SYS_BIN = appdir/sbin
INSTALL = /usr/bin/install
TARGETS = \
src/sdl/ti99sim-sdl \
src/util/convert-ctg \
src/util/decode \
src/util/disk \
src/util/dumpcpu \
src/util/dumpgrom \
src/util/dumpspch \
src/util/list \
src/util/mkspch \
src/util/say \
src/console/ti99sim-console
SRC_DIRS = \
src/core \
src/console \
src/sdl \
src/util
install: ti99sim
@$(INSTALL) -d $(DATA_DIR)
@$(INSTALL) -d $(DATA_DIR)/cartridges
@$(INSTALL) -d $(DATA_DIR)/disks
@$(INSTALL) -d $(DATA_DIR)/roms
@$(INSTALL) -d $(BIN_DIR)
@if [ -x src ]; then \
for target in $(TARGETS); do \
$(INSTALL) -s $$target $(BIN_DIR); \
done \
else \
for target in $(notdir $(TARGETS)); do \
$(INSTALL) -s $$target $(BIN_DIR); \
done \
fi
@for target in $(notdir $(TARGETS)); do \
ln -f -s $(BIN_DIR)/$$target $(SYS_BIN)/$$target; \
done
uninstall:
@for target in $(notdir $(TARGETS)); do \
rm -f $(BIN_DIR)/$$target; \
rm -f $(SYS_BIN)/$$target; \
done
clean:
@if [ -x src ]; then \
rm -f {.,include,doc}/*~; \
for dir in $(SRC_DIRS); do \
$(MAKE) -C $$dir clean; \
done \
fi
dep:
@if [ -x src ]; then \
for dir in $(SRC_DIRS); do \
$(MAKE) -C $$dir dep; \
done \
fi
ti99sim:
@if [ -x src ]; then \
if ! [ -r /usr/include/endian.h ]; then \
if [ -r /usr/include/machine/endian.h ]; then \
rm -f include/endian.h; \
ln -s /usr/include/machine/endian.h include/endian.h; \
fi \
fi; \
for dir in $(SRC_DIRS); do \
$(MAKE) -C $$dir; \
done \
fi