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@ |
25 |
|
INSTALL_DATA = @INSTALL_DATA@ |
26 |
|
|
27 |
|
## Files |
28 |
< |
SRCS=../prefs.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp ../emul_op.cpp \ |
28 |
> |
SRCS = ../prefs.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp ../emul_op.cpp \ |
29 |
|
../macos_util.cpp ../xpram.cpp ../timer.cpp ../adb.cpp ../serial.cpp ../ether.cpp ../sony.cpp \ |
30 |
|
../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp ../audio.cpp ../user_strings.cpp \ |
31 |
|
main_unix.cpp prefs_unix.cpp sys_unix.cpp xpram_unix.cpp timer_unix.cpp clip_unix.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) 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 |
82 |
> |
makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null |
83 |
|
|
84 |
|
$(OBJ_DIR)/%.o : %.c |
85 |
|
$(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@ |