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