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 |
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 -DSHAREDIR=\"$(sharedir)\" |
18 |
> |
DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\" |
19 |
|
LDFLAGS = @LDFLAGS@ |
20 |
|
LIBS = @LIBS@ |
21 |
|
SYSSRCS = @SYSSRCS@ |
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) BasiliskII $(bindir)/ |
63 |
< |
$(INSTALL_DATA) BasiliskII.1 $(mandir)/man1/ |
64 |
< |
$(INSTALL) -d $(sharedir) |
65 |
< |
$(INSTALL_DATA) keycodes $(sharedir) |
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)/BasiliskII |
69 |
< |
-rm -f $(mandir)/man1/BasiliskII.1 |
70 |
< |
-rm -rf $(sharedir) |
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 |
78 |
– |
-strip $(APP) |
79 |
– |
|
80 |
– |
realclean: distclean |
81 |
– |
-rm -f $(APP) |
80 |
|
|
81 |
|
depend dep: |
82 |
|
makedepend $(CPPFLAGS) -Y ../*.cpp ../*.c *.cpp |