11 |
|
mandir = @mandir@ |
12 |
|
man1dir = $(mandir)/man1 |
13 |
|
|
14 |
+ |
DESTDIR = |
15 |
+ |
|
16 |
|
CC = @CC@ |
17 |
|
CXX = @CXX@ |
18 |
|
CFLAGS = @CFLAGS@ |
28 |
|
INSTALL_DATA = @INSTALL_DATA@ |
29 |
|
|
30 |
|
## Files |
31 |
< |
SRCS = ../main.cpp main_unix.cpp ../prefs.cpp prefs_unix.cpp sys_unix.cpp \ |
32 |
< |
../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp ../emul_op.cpp \ |
33 |
< |
../macos_util.cpp ../xpram.cpp xpram_unix.cpp ../timer.cpp timer_unix.cpp \ |
34 |
< |
clip_unix.cpp ../adb.cpp ../serial.cpp serial_unix.cpp ../ether.cpp ../sony.cpp \ |
35 |
< |
../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp video_x.cpp ../audio.cpp \ |
36 |
< |
../extfs.cpp extfs_unix.cpp ../user_strings.cpp user_strings_unix.cpp \ |
31 |
> |
SRCS = ../main.cpp main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp \ |
32 |
> |
sys_unix.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp \ |
33 |
> |
../emul_op.cpp ../macos_util.cpp ../xpram.cpp xpram_unix.cpp ../timer.cpp \ |
34 |
> |
timer_unix.cpp clip_unix.cpp ../adb.cpp ../serial.cpp ../ether.cpp \ |
35 |
> |
../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp video_blit.cpp \ |
36 |
> |
video_x.cpp vm_alloc.cpp sigsegv.cpp ../audio.cpp ../extfs.cpp extfs_unix.cpp \ |
37 |
> |
../user_strings.cpp user_strings_unix.cpp \ |
38 |
|
$(SYSSRCS) $(CPUSRCS) |
39 |
|
APP = BasiliskII |
40 |
|
|
41 |
|
## Rules |
42 |
< |
.PHONY: modules install uninstall clean distclean depend dep |
42 |
> |
.PHONY: modules install installdirs uninstall mostlyclean clean distclean depend dep |
43 |
|
.SUFFIXES: |
44 |
|
.SUFFIXES: .c .cpp .s .o .h |
45 |
|
|
66 |
|
cd Linux/NetDriver; make |
67 |
|
|
68 |
|
install: $(APP) installdirs |
69 |
< |
$(INSTALL_PROGRAM) $(APP) $(bindir)/$(APP) |
70 |
< |
-$(INSTALL_DATA) $(APP).1 $(man1dir)/$(APP).1 |
71 |
< |
$(INSTALL_DATA) keycodes $(datadir)/$(APP)/keycodes |
72 |
< |
$(INSTALL_DATA) fbdevices $(datadir)/$(APP)/fbdevices |
69 |
> |
$(INSTALL_PROGRAM) $(APP) $(DESTDIR)$(bindir)/$(APP) |
70 |
> |
-$(INSTALL_DATA) $(APP).1 $(DESTDIR)$(man1dir)/$(APP).1 |
71 |
> |
$(INSTALL_DATA) keycodes $(DESTDIR)$(datadir)/$(APP)/keycodes |
72 |
> |
$(INSTALL_DATA) fbdevices $(DESTDIR)$(datadir)/$(APP)/fbdevices |
73 |
|
|
74 |
|
installdirs: |
75 |
< |
$(SHELL) mkinstalldirs $(bindir) $(man1dir) $(datadir)/$(APP) |
75 |
> |
$(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(datadir)/$(APP) |
76 |
|
|
77 |
|
uninstall: |
78 |
< |
rm -f $(bindir)/$(APP) |
79 |
< |
rm -f $(man1dir)/$(APP).1 |
80 |
< |
rm -f $(datadir)/$(APP)/keycodes |
81 |
< |
rm -f $(datadir)/$(APP)/fbdevices |
82 |
< |
rmdir $(datadir)/$(APP) |
78 |
> |
rm -f $(DESTDIR)$(bindir)/$(APP) |
79 |
> |
rm -f $(DESTDIR)$(man1dir)/$(APP).1 |
80 |
> |
rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes |
81 |
> |
rm -f $(DESTDIR)$(datadir)/$(APP)/fbdevices |
82 |
> |
rmdir $(DESTDIR)$(datadir)/$(APP) |
83 |
|
|
84 |
|
mostlyclean: |
85 |
|
rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak |
107 |
|
$(OBJ_DIR)/build68k: $(OBJ_DIR)/build68k.o |
108 |
|
$(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k $(OBJ_DIR)/build68k.o |
109 |
|
$(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o |
110 |
< |
$(CC) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o |
110 |
> |
$(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o |
111 |
|
cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k |
112 |
|
$(OBJ_DIR)/build68k <../uae_cpu/table68k >cpudefs.cpp |
113 |
|
cpustbl.cpp: cpuemu.cpp |