2 |
|
|
3 |
|
## System specific configuration |
4 |
|
@SET_MAKE@ |
5 |
+ |
SHELL = /bin/sh |
6 |
+ |
|
7 |
+ |
prefix = @prefix@ |
8 |
+ |
exec_prefix = @exec_prefix@ |
9 |
+ |
bindir = @bindir@ |
10 |
+ |
datadir = @datadir@ |
11 |
+ |
mandir = @mandir@ |
12 |
+ |
man1dir = $(mandir)/man1 |
13 |
+ |
|
14 |
|
CC = @CC@ |
15 |
|
CXX = @CXX@ |
16 |
|
CFLAGS = @CFLAGS@ |
17 |
|
CXXFLAGS = @CXXFLAGS@ |
18 |
|
CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@ |
19 |
< |
DEFS = @DEFS@ @DEFINES@ -D_REENTRANT |
19 |
> |
DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\" |
20 |
|
LDFLAGS = @LDFLAGS@ |
21 |
|
LIBS = @LIBS@ |
22 |
|
SYSSRCS = @SYSSRCS@ |
23 |
|
CPUSRCS = @CPUSRCS@ |
24 |
< |
|
25 |
< |
prefix=@prefix@ |
26 |
< |
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@ |
24 |
> |
INSTALL = @INSTALL@ |
25 |
> |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s |
26 |
> |
INSTALL_DATA = @INSTALL_DATA@ |
27 |
|
|
28 |
|
## Files |
29 |
< |
SRCS=../prefs.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp ../emul_op.cpp \ |
29 |
> |
SRCS = ../prefs.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp ../emul_op.cpp \ |
30 |
|
../macos_util.cpp ../xpram.cpp ../timer.cpp ../adb.cpp ../serial.cpp ../ether.cpp ../sony.cpp \ |
31 |
|
../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp ../audio.cpp ../user_strings.cpp \ |
32 |
|
main_unix.cpp prefs_unix.cpp sys_unix.cpp xpram_unix.cpp timer_unix.cpp clip_unix.cpp \ |
35 |
|
APP = BasiliskII |
36 |
|
|
37 |
|
## Rules |
38 |
< |
.PHONY: clean distclean realclean depend |
38 |
> |
.PHONY: modules install uninstall clean distclean depend |
39 |
> |
.SUFFIXES: |
40 |
> |
.SUFFIXES: .c .cpp .s .o .h |
41 |
|
|
42 |
< |
default: $(APP) |
42 |
> |
all: $(APP) |
43 |
|
|
44 |
|
OBJ_DIR = obj |
45 |
|
$(OBJ_DIR):: |
62 |
|
cd Linux/NetDriver; make |
63 |
|
|
64 |
|
install: $(APP) |
65 |
< |
$(INSTALL_PROGRAM) -s BasiliskII $(bindir) |
66 |
< |
$(INSTALL_DATA) BasiliskII.1 $(mandir)/man1/ |
67 |
< |
$(INSTALL_DATA) basilisk_ii_keycodes $(libdir) |
68 |
< |
|
69 |
< |
clean: |
70 |
< |
-rm -f $(OBJ_DIR)/* core* *.core *~ *.bak |
71 |
< |
-rm -f cpuemu.cpp cpudefs.cpp cputmp.s cpufast*.s cpustbl.cpp cputbl.h |
65 |
> |
$(INSTALL_PROGRAM) $(APP) $(bindir)/$(APP) |
66 |
> |
-$(INSTALL_DATA) $(APP).1 $(man1dir)/$(APP).1 |
67 |
> |
$(INSTALL) -d $(datadir)/$(APP) |
68 |
> |
$(INSTALL_DATA) keycodes $(datadir)/$(APP)/keycodes |
69 |
> |
|
70 |
> |
uninstall: |
71 |
> |
rm -f $(bindir)/$(APP) |
72 |
> |
rm -f $(man1dir)/$(APP).1 |
73 |
> |
rm -f $(datadir)/$(APP)/keycodes |
74 |
> |
rmdir $(datadir)/$(APP) |
75 |
|
|
76 |
< |
distclean: clean |
77 |
< |
-rm -f Makefile |
78 |
< |
-rm -f config.cache config.log config.status config.h |
79 |
< |
-strip $(APP) |
76 |
> |
mostlyclean: |
77 |
> |
rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak |
78 |
> |
|
79 |
> |
clean: mostlyclean |
80 |
> |
rm -f cpuemu.cpp cpudefs.cpp cputmp.s cpufast*.s cpustbl.cpp cputbl.h |
81 |
|
|
82 |
< |
realclean: distclean |
83 |
< |
-rm -f $(APP) |
82 |
> |
distclean: clean |
83 |
> |
rm -rf $(OBJ_DIR) |
84 |
> |
rm -f Makefile |
85 |
> |
rm -f config.cache config.log config.status config.h |
86 |
|
|
87 |
|
depend dep: |
88 |
< |
makedepend $(CPPFLAGS) -Y ../*.cpp ../*.c *.cpp |
88 |
> |
makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null |
89 |
|
|
90 |
|
$(OBJ_DIR)/%.o : %.c |
91 |
|
$(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@ |