ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/Makefile.in
Revision: 1.5
Committed: 2003-09-07T14:26:15Z (21 years, 2 months ago) by gbeauche
Branch: MAIN
Changes since 1.4: +8 -1 lines
Log Message:
Handle new ppc emulator

File Contents

# User Rev Content
1 cebix 1.1 # Linux makefile for SheepShaver
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.
19     DEFS = @DEFS@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\"
20     LDFLAGS = @LDFLAGS@
21     LIBS = @LIBS@
22     SYSSRCS = @SYSSRCS@
23     INSTALL = @INSTALL@
24     INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
25     INSTALL_DATA = @INSTALL_DATA@
26    
27     ## Files
28     SRCS = main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp sys_unix.cpp \
29     ../rom_patches.cpp ../rsrc_patches.cpp ../emul_op.cpp ../name_registry.cpp \
30     ../macos_util.cpp ../timer.cpp timer_unix.cpp ../xpram.cpp xpram_unix.cpp \
31     ../adb.cpp clip_unix.cpp ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp \
32 gbeauche 1.4 Linux/scsi_linux.cpp ../video.cpp video_blit.cpp video_x.cpp \
33     ../audio.cpp audio_oss_esd.cpp ../ether.cpp \
34 cebix 1.1 Linux/ether_linux.cpp ../serial.cpp serial_unix.cpp ../extfs.cpp extfs_unix.cpp \
35 gbeauche 1.2 about_window_unix.cpp ../user_strings.cpp user_strings_unix.cpp \
36 gbeauche 1.3 vm_alloc.cpp sigsegv.cpp \
37 gbeauche 1.2 sshpty.c strlcpy.c $(SYSSRCS)
38 cebix 1.1 APP = SheepShaver
39    
40     ## Rules
41     .PHONY: modules install uninstall clean distclean depend dep
42     .SUFFIXES:
43     .SUFFIXES: .c .cpp .S .o .h
44    
45     all: $(APP)
46    
47     OBJ_DIR = obj
48     $(OBJ_DIR)::
49     @[ -d $(OBJ_DIR) ] || mkdir $(OBJ_DIR) > /dev/null 2>&1
50    
51     define SRCS_LIST_TO_OBJS
52     $(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(foreach file, $(SRCS), \
53     $(basename $(notdir $(file))))))
54     endef
55     OBJS = $(SRCS_LIST_TO_OBJS)
56    
57     SRC_PATHS += $(sort $(foreach file, $(SRCS), $(dir $(file))))
58     VPATH :=
59     VPATH += $(addprefix :, $(subst ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
60    
61     $(APP): $(OBJ_DIR) $(OBJS)
62     $(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS)
63    
64     modules:
65     cd NetDriver; make
66    
67     install: $(APP) installdirs
68     $(INSTALL_PROGRAM) $(APP) $(bindir)/$(APP)
69     -$(INSTALL_DATA) $(APP).1 $(man1dir)/$(APP).1
70    
71     installdirs:
72     $(SHELL) mkinstalldirs $(bindir) $(man1dir)
73    
74     uninstall:
75     rm -f $(bindir)/$(APP)
76     rm -f $(man1dir)/$(APP).1
77    
78     clean:
79 gbeauche 1.5 rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak ppc-execute-impl.cpp
80 cebix 1.1
81     distclean: clean
82     rm -rf $(OBJ_DIR)
83     rm -f Makefile
84     rm -f config.cache config.log config.status config.h
85    
86     depend dep:
87     makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null
88    
89     $(OBJ_DIR)/%.o : %.c
90     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
91     $(OBJ_DIR)/%.o : %.cpp
92     $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
93     $(OBJ_DIR)/%.o : %.S
94     $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ $< -o $*.s
95     $(AS) $(ASFLAGS) -o $@ $*.s
96     rm $*.s
97 gbeauche 1.5
98     # Kheperix CPU emulator
99     GENEXEC = ../kpx_cpu/src/cpu/ppc/genexec.pl
100    
101     ../kpx_cpu/src/cpu/ppc/ppc-execute.cpp: ppc-execute-impl.cpp
102     ppc-execute-impl.cpp: ../kpx_cpu/src/cpu/ppc/ppc-decode.cpp $(GENEXEC)
103     $(CPP) $(CPPFLAGS) $< | $(GENEXEC) > $@
104 cebix 1.1
105     #-------------------------------------------------------------------------
106     # DO NOT DELETE THIS LINE -- make depend depends on it.