2 |
|
|
3 |
|
## System specific configuration |
4 |
|
@SET_MAKE@ |
5 |
+ |
|
6 |
+ |
prefix = @prefix@ |
7 |
+ |
exec_prefix = @exec_prefix@ |
8 |
+ |
bindir = @bindir@ |
9 |
+ |
datadir = @datadir@ |
10 |
+ |
mandir = @mandir@ |
11 |
+ |
man1dir = $(mandir)/man1 |
12 |
+ |
|
13 |
|
CC = @CC@ |
14 |
|
CXX = @CXX@ |
15 |
|
CFLAGS = @CFLAGS@ |
16 |
|
CXXFLAGS = @CXXFLAGS@ |
17 |
|
CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@ |
18 |
< |
DEFS = @DEFS@ @DEFINES@ -D_REENTRANT |
18 |
> |
DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\" |
19 |
|
LDFLAGS = @LDFLAGS@ |
20 |
|
LIBS = @LIBS@ |
21 |
|
SYSSRCS = @SYSSRCS@ |
22 |
|
CPUSRCS = @CPUSRCS@ |
23 |
< |
|
24 |
< |
prefix=@prefix@ |
25 |
< |
exec_prefix=@exec_prefix@ |
18 |
< |
bindir=$(exec_prefix)/bin |
19 |
< |
libdir=$(exec_prefix)/lib |
20 |
< |
mandir=$(prefix)/man |
21 |
< |
INSTALL=@INSTALL@ |
22 |
< |
INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
23 |
< |
INSTALL_DATA=@INSTALL_DATA@ |
23 |
> |
INSTALL = @INSTALL@ |
24 |
> |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s |
25 |
> |
INSTALL_DATA = @INSTALL_DATA@ |
26 |
|
|
27 |
|
## Files |
28 |
|
SRCS=../prefs.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp ../emul_op.cpp \ |
34 |
|
APP = BasiliskII |
35 |
|
|
36 |
|
## Rules |
37 |
< |
.PHONY: clean distclean realclean depend |
37 |
> |
.PHONY: modules install uninstall clean distclean depend |
38 |
|
|
39 |
|
default: $(APP) |
40 |
|
|
59 |
|
cd Linux/NetDriver; make |
60 |
|
|
61 |
|
install: $(APP) |
62 |
< |
$(INSTALL_PROGRAM) -s BasiliskII $(bindir) |
63 |
< |
$(INSTALL_DATA) BasiliskII.1 $(mandir)/man1/ |
64 |
< |
$(INSTALL_DATA) basilisk_ii_keycodes $(libdir) |
62 |
> |
$(INSTALL_PROGRAM) $(APP) $(bindir) |
63 |
> |
$(INSTALL_DATA) $(APP).1 $(man1dir) |
64 |
> |
$(INSTALL) -d $(datadir)/$(APP) |
65 |
> |
$(INSTALL_DATA) keycodes $(datadir)/$(APP) |
66 |
> |
|
67 |
> |
uninstall: |
68 |
> |
-rm -f $(bindir)/$(APP) |
69 |
> |
-rm -f $(man1dir)/$(APP).1 |
70 |
> |
-rm -rf $(datadir)/$(APP) |
71 |
|
|
72 |
|
clean: |
73 |
< |
-rm -f $(OBJ_DIR)/* core* *.core *~ *.bak |
73 |
> |
-rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak |
74 |
|
-rm -f cpuemu.cpp cpudefs.cpp cputmp.s cpufast*.s cpustbl.cpp cputbl.h |
75 |
|
|
76 |
|
distclean: clean |
77 |
+ |
-rm -rf $(OBJ_DIR) |
78 |
|
-rm -f Makefile |
79 |
|
-rm -f config.cache config.log config.status config.h |
71 |
– |
-strip $(APP) |
72 |
– |
|
73 |
– |
realclean: distclean |
74 |
– |
-rm -f $(APP) |
80 |
|
|
81 |
|
depend dep: |
82 |
|
makedepend $(CPPFLAGS) -Y ../*.cpp ../*.c *.cpp |