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 |
+ |
docdir=$(prefix)/doc/BasiliskII |
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 -DSHAREDIR=\"$(sharedir)\" |
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 |
38 |
+ |
|
39 |
|
default: $(APP) |
40 |
|
|
41 |
|
OBJ_DIR = obj |
56 |
|
$(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS) |
57 |
|
|
58 |
|
modules: |
59 |
< |
cd Linux/NetDriver && make |
59 |
> |
cd Linux/NetDriver; make |
60 |
|
|
61 |
|
install: $(APP) |
62 |
< |
$(INSTALL_PROGRAM) -s BasiliskII $(bindir) |
62 |
> |
$(INSTALL_PROGRAM) BasiliskII $(bindir)/ |
63 |
|
$(INSTALL_DATA) BasiliskII.1 $(mandir)/man1/ |
64 |
< |
$(INSTALL_DATA) basilisk_ii_keycodes $(libdir) |
64 |
> |
$(INSTALL_DATA) keycodes $(sharedir)/ |
65 |
|
|
66 |
|
clean: |
67 |
< |
rm -f $(OBJ_DIR)/* core* *.core *~ *.bak |
68 |
< |
rm -f cpuemu.cpp cpudefs.cpp cputmp.s cpufast*.s cpustbl.cpp cputbl.h |
67 |
> |
-rm -f $(OBJ_DIR)/* core* *.core *~ *.bak |
68 |
> |
-rm -f cpuemu.cpp cpudefs.cpp cputmp.s cpufast*.s cpustbl.cpp cputbl.h |
69 |
|
|
70 |
|
distclean: clean |
71 |
< |
rm -f Makefile |
72 |
< |
rm -f config.cache config.log config.status config.h |
73 |
< |
strip $(APP) |
71 |
> |
-rm -f Makefile |
72 |
> |
-rm -f config.cache config.log config.status config.h |
73 |
> |
-strip $(APP) |
74 |
|
|
75 |
|
realclean: distclean |
76 |
< |
rm -f $(APP) |
76 |
> |
-rm -f $(APP) |
77 |
|
|
78 |
|
depend dep: |
79 |
|
makedepend $(CPPFLAGS) -Y ../*.cpp ../*.c *.cpp |