11 |
|
mandir = @mandir@ |
12 |
|
man1dir = $(mandir)/man1 |
13 |
|
|
14 |
+ |
DESTDIR = |
15 |
+ |
|
16 |
|
CC = @CC@ |
17 |
|
CXX = @CXX@ |
18 |
|
CFLAGS = @CFLAGS@ |
27 |
|
DYNGEN_CC = @DYNGEN_CC@ |
28 |
|
DYNGEN_OP_FLAGS = @DYNGEN_OP_FLAGS@ |
29 |
|
BLESS = @BLESS@ |
30 |
+ |
KEYCODES = @KEYCODES@ |
31 |
|
INSTALL = @INSTALL@ |
32 |
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s |
33 |
|
INSTALL_DATA = @INSTALL_DATA@ |
36 |
|
SRCS = main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp sys_unix.cpp \ |
37 |
|
../rom_patches.cpp ../rsrc_patches.cpp ../emul_op.cpp ../name_registry.cpp \ |
38 |
|
../macos_util.cpp ../timer.cpp timer_unix.cpp ../xpram.cpp xpram_unix.cpp \ |
39 |
< |
../adb.cpp clip_unix.cpp ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp \ |
40 |
< |
../video.cpp video_blit.cpp video_x.cpp ../audio.cpp ../ether.cpp ../thunks.cpp \ |
39 |
> |
../adb.cpp ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp \ |
40 |
> |
../video.cpp video_blit.cpp ../audio.cpp ../ether.cpp ../thunks.cpp \ |
41 |
|
../serial.cpp ../extfs.cpp extfs_unix.cpp \ |
42 |
|
about_window_unix.cpp ../user_strings.cpp user_strings_unix.cpp \ |
43 |
|
vm_alloc.cpp sigsegv.cpp \ |
79 |
|
cd NetDriver; make |
80 |
|
|
81 |
|
install: $(APP) installdirs |
82 |
< |
$(INSTALL_PROGRAM) $(APP) $(bindir)/$(APP) |
83 |
< |
-$(INSTALL_DATA) $(APP).1 $(man1dir)/$(APP).1 |
82 |
> |
$(INSTALL_PROGRAM) $(APP) $(DESTDIR)$(bindir)/$(APP) |
83 |
> |
-$(INSTALL_DATA) $(APP).1 $(DESTDIR)$(man1dir)/$(APP).1 |
84 |
> |
$(INSTALL_DATA) $(KEYCODES) $(DESTDIR)$(datadir)/$(APP)/keycodes |
85 |
> |
$(INSTALL_DATA) tunconfig $(DESTDIR)$(datadir)/$(APP)/tunconfig |
86 |
> |
chmod 755 $(DESTDIR)$(datadir)/$(APP)/tunconfig |
87 |
|
|
88 |
|
installdirs: |
89 |
< |
$(SHELL) mkinstalldirs $(bindir) $(man1dir) |
89 |
> |
$(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(datadir)/$(APP) |
90 |
|
|
91 |
|
uninstall: |
92 |
< |
rm -f $(bindir)/$(APP) |
93 |
< |
rm -f $(man1dir)/$(APP).1 |
92 |
> |
rm -f $(DESTDIR)$(bindir)/$(APP) |
93 |
> |
rm -f $(DESTDIR)$(man1dir)/$(APP).1 |
94 |
> |
rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes |
95 |
> |
rm -f $(DESTDIR)$(datadir)/$(APP)/tunconfig |
96 |
> |
rmdir $(DESTDIR)$(datadir)/$(APP) |
97 |
|
|
98 |
|
clean: |
99 |
|
rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak ppc-execute-impl.cpp |