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