ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/Makefile.in
(Generate patch)

Comparing SheepShaver/src/Unix/Makefile.in (file contents):
Revision 1.4 by gbeauche, 2003-05-22T22:12:04Z vs.
Revision 1.10 by gbeauche, 2004-02-16T16:30:22Z

# Line 20 | Line 20 | DEFS = @DEFS@ -D_REENTRANT -DDATADIR=\"$
20   LDFLAGS = @LDFLAGS@
21   LIBS = @LIBS@
22   SYSSRCS = @SYSSRCS@
23 + CPUSRCS = @CPUSRCS@
24 + DYNGENSRCS = @DYNGENSRCS@
25 + DYNGEN_CC = @DYNGEN_CC@
26 + DYNGEN_OP_FLAGS = @DYNGEN_OP_FLAGS@
27 + BLESS = @BLESS@
28   INSTALL = @INSTALL@
29   INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
30   INSTALL_DATA = @INSTALL_DATA@
# Line 29 | Line 34 | SRCS = main_unix.cpp ../prefs.cpp ../pre
34      ../rom_patches.cpp ../rsrc_patches.cpp ../emul_op.cpp ../name_registry.cpp \
35      ../macos_util.cpp ../timer.cpp timer_unix.cpp ../xpram.cpp xpram_unix.cpp \
36      ../adb.cpp clip_unix.cpp ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp \
37 <    Linux/scsi_linux.cpp ../video.cpp video_blit.cpp video_x.cpp \
38 <    ../audio.cpp audio_oss_esd.cpp ../ether.cpp \
34 <    Linux/ether_linux.cpp ../serial.cpp serial_unix.cpp ../extfs.cpp extfs_unix.cpp \
37 >    ../video.cpp video_blit.cpp video_x.cpp ../audio.cpp ../ether.cpp ../thunks.cpp \
38 >    ../serial.cpp ../extfs.cpp extfs_unix.cpp \
39      about_window_unix.cpp ../user_strings.cpp user_strings_unix.cpp \
40      vm_alloc.cpp sigsegv.cpp \
41 <    sshpty.c strlcpy.c $(SYSSRCS)
41 >    sshpty.c strlcpy.c $(SYSSRCS) $(CPUSRCS)
42   APP = SheepShaver
43  
44   ## Rules
# Line 54 | Line 58 | define SRCS_LIST_TO_OBJS
58   endef
59   OBJS = $(SRCS_LIST_TO_OBJS)
60  
61 + define DYNGENSRCS_LIST_TO_OBJS
62 +        $(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(foreach file, $(DYNGENSRCS), \
63 +        $(basename $(notdir $(file))))))
64 + endef
65 + DYNGENOBJS = $(DYNGENSRCS_LIST_TO_OBJS)
66 +
67   SRC_PATHS += $(sort $(foreach file, $(SRCS), $(dir $(file))))
68   VPATH :=
69   VPATH += $(addprefix :, $(subst  ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
70  
71   $(APP): $(OBJ_DIR) $(OBJS)
72          $(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS)
73 +        $(BLESS) $(APP)
74  
75   modules:
76          cd NetDriver; make
# Line 76 | Line 87 | uninstall:
87          rm -f $(man1dir)/$(APP).1
88  
89   clean:
90 <        rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak
90 >        rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak ppc-execute-impl.cpp
91 >        rm -f dyngen basic-dyngen-ops.hpp ppc-dyngen-ops.hpp
92  
93   distclean: clean
94          rm -rf $(OBJ_DIR)
# Line 95 | Line 107 | $(OBJ_DIR)/%.o : %.S
107          $(AS) $(ASFLAGS) -o $@ $*.s
108          rm $*.s
109  
110 + # Kheperix CPU emulator
111 + GENEXEC = ../kpx_cpu/src/cpu/ppc/genexec.pl
112 +
113 + $(OBJ_DIR)/ppc-execute.o: ppc-execute-impl.cpp
114 + ppc-execute-impl.cpp: ../kpx_cpu/src/cpu/ppc/ppc-decode.cpp $(GENEXEC)
115 +        $(CPP) $(CPPFLAGS) -DGENEXEC $< | $(GENEXEC) > $@
116 +
117 + dyngen: $(DYNGENOBJS)
118 +        $(CXX) -o $@ $(LDFLAGS) $(DYNGENOBJS)
119 +
120 + $(OBJ_DIR)/basic-dyngen.o: basic-dyngen-ops.hpp
121 + $(OBJ_DIR)/basic-dyngen-ops.o: ../kpx_cpu/src/cpu/jit/basic-dyngen-ops.cpp
122 +        $(DYNGEN_CC) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) $(DYNGEN_OP_FLAGS) -c $< -o $@
123 + basic-dyngen-ops.hpp: $(OBJ_DIR)/basic-dyngen-ops.o dyngen
124 +        ./dyngen -o $@ $<
125 +
126 + $(OBJ_DIR)/ppc-dyngen.o: ppc-dyngen-ops.hpp
127 + $(OBJ_DIR)/ppc-dyngen-ops.o: ../kpx_cpu/src/cpu/ppc/ppc-dyngen-ops.cpp
128 +        $(DYNGEN_CC) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) $(DYNGEN_OP_FLAGS) -c $< -o $@
129 + ppc-dyngen-ops.hpp: $(OBJ_DIR)/ppc-dyngen-ops.o dyngen
130 +        ./dyngen -o $@ $<
131 +
132   #-------------------------------------------------------------------------
133   # DO NOT DELETE THIS LINE -- make depend depends on it.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines