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

Comparing BasiliskII/src/Unix/Makefile.in (file contents):
Revision 1.12 by cebix, 1999-10-19T17:41:34Z vs.
Revision 1.34 by gbeauche, 2005-05-13T09:21:21Z

# Line 11 | Line 11 | datadir = @datadir@
11   mandir = @mandir@
12   man1dir = $(mandir)/man1
13  
14 + KEYCODES = @KEYCODES@
15 +
16 + DESTDIR =
17 +
18   CC = @CC@
19   CXX = @CXX@
20   CFLAGS = @CFLAGS@
21   CXXFLAGS = @CXXFLAGS@
22 < CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
22 > CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@ -I../slirp
23   DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\"
24   LDFLAGS = @LDFLAGS@
25   LIBS = @LIBS@
26   SYSSRCS = @SYSSRCS@
27   CPUSRCS = @CPUSRCS@
28 + BLESS = @BLESS@
29 + EXEEXT = @EXEEXT@
30   INSTALL = @INSTALL@
31   INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
32   INSTALL_DATA = @INSTALL_DATA@
33  
34 + SLIRP_CFLAGS = @SLIRP_CFLAGS@
35 + SLIRP_SRCS = \
36 +        ../slirp/bootp.c     ../slirp/ip_output.c  ../slirp/tcp_input.c  \
37 +        ../slirp/cksum.c     ../slirp/mbuf.c       ../slirp/tcp_output.c \
38 +        ../slirp/debug.c     ../slirp/misc.c       ../slirp/tcp_subr.c   \
39 +        ../slirp/if.c        ../slirp/sbuf.c       ../slirp/tcp_timer.c  \
40 +        ../slirp/ip_icmp.c   ../slirp/slirp.c      ../slirp/tftp.c       \
41 +        ../slirp/ip_input.c  ../slirp/socket.c     ../slirp/udp.c
42 + SLIRP_OBJS = $(SLIRP_SRCS:../slirp/%.c=obj/%.o)
43 +
44   ## Files
45 < SRCS = ../main.cpp main_unix.cpp ../prefs.cpp prefs_unix.cpp sys_unix.cpp \
46 <    ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp ../emul_op.cpp \
47 <    ../macos_util.cpp ../xpram.cpp xpram_unix.cpp ../timer.cpp timer_unix.cpp \
48 <    clip_unix.cpp ../adb.cpp ../serial.cpp serial_unix.cpp ../ether.cpp ../sony.cpp \
49 <    ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp video_x.cpp ../audio.cpp \
50 <    ../extfs.cpp extfs_unix.cpp ../user_strings.cpp user_strings_unix.cpp \
51 <    $(SYSSRCS) $(CPUSRCS)
45 > SRCS = ../main.cpp main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp \
46 >    sys_unix.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp \
47 >    ../emul_op.cpp ../macos_util.cpp ../xpram.cpp xpram_unix.cpp ../timer.cpp \
48 >    timer_unix.cpp ../adb.cpp ../serial.cpp ../ether.cpp \
49 >    ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp video_blit.cpp \
50 >    vm_alloc.cpp sigsegv.cpp ../audio.cpp ../extfs.cpp extfs_unix.cpp \
51 >        ../user_strings.cpp user_strings_unix.cpp sshpty.c strlcpy.c \
52 >    $(SYSSRCS) $(CPUSRCS) $(SLIRP_SRCS)
53   APP = BasiliskII
54  
55   ## Rules
56 < .PHONY: modules install uninstall clean distclean depend
56 > .PHONY: modules install installdirs uninstall mostlyclean clean distclean depend dep
57   .SUFFIXES:
58   .SUFFIXES: .c .cpp .s .o .h
59  
60 < all: $(APP)
60 > all: $(APP)$(EXEEXT)
61  
62   OBJ_DIR = obj
63   $(OBJ_DIR)::
# Line 56 | Line 73 | SRC_PATHS += $(sort $(foreach file, $(SR
73   VPATH :=
74   VPATH += $(addprefix :, $(subst  ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
75  
76 < $(APP): $(OBJ_DIR) $(OBJS)
77 <        $(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS)
76 > $(APP)$(EXEEXT): $(OBJ_DIR) $(OBJS)
77 >        $(CXX) -o $(APP)$(EXEEXT) $(LDFLAGS) $(OBJS) $(LIBS)
78 >        $(BLESS) $(APP)$(EXEEXT)
79  
80   modules:
81          cd Linux/NetDriver; make
82  
83 < install: $(APP)
84 <        $(INSTALL_PROGRAM) $(APP) $(bindir)/$(APP)
85 <        -$(INSTALL_DATA) $(APP).1 $(man1dir)/$(APP).1
86 <        $(INSTALL) -d $(datadir)/$(APP)
87 <        $(INSTALL_DATA) keycodes $(datadir)/$(APP)/keycodes
83 > install: $(APP)$(EXEEXT) installdirs
84 >        $(INSTALL_PROGRAM) $(APP)$(EXEEXT) $(DESTDIR)$(bindir)/$(APP)$(EXEEXT)
85 >        -$(INSTALL_DATA) $(APP).1 $(DESTDIR)$(man1dir)/$(APP).1
86 >        $(INSTALL_DATA) $(KEYCODES) $(DESTDIR)$(datadir)/$(APP)/keycodes
87 >        $(INSTALL_DATA) fbdevices $(DESTDIR)$(datadir)/$(APP)/fbdevices
88 >        $(INSTALL_DATA) tunconfig $(DESTDIR)$(datadir)/$(APP)/tunconfig
89 >
90 > installdirs:
91 >        $(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(datadir)/$(APP)
92  
93   uninstall:
94 <        rm -f $(bindir)/$(APP)
95 <        rm -f $(man1dir)/$(APP).1
96 <        rm -f $(datadir)/$(APP)/keycodes
97 <        rmdir $(datadir)/$(APP)
94 >        rm -f $(DESTDIR)$(bindir)/$(APP)$(EXEEXT)
95 >        rm -f $(DESTDIR)$(man1dir)/$(APP).1
96 >        rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes
97 >        rm -f $(DESTDIR)$(datadir)/$(APP)/fbdevices
98 >        rm -f $(DESTDIR)$(datadir)/$(APP)/tunconfig
99 >        rmdir $(DESTDIR)$(datadir)/$(APP)
100  
101   mostlyclean:
102 <        rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak
102 >        rm -f $(APP)$(EXEEXT) $(OBJ_DIR)/* core* *.core *~ *.bak
103  
104   clean: mostlyclean
105 <        rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h
105 >        rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h compemu.cpp compstbl.cpp comptbl.h
106  
107   distclean: clean
108          rm -rf $(OBJ_DIR)
109 +        rm -rf autom4te.cache
110          rm -f Makefile
111 <        rm -f config.cache config.log config.status config.h
111 >        rm -f config.cache config.log config.status config.h config.h.in
112 >        rm -f Darwin/lowmem Darwin/pagezero
113  
114   depend dep:
115          makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null
116  
117 + $(OBJ_DIR)/%.o : ../slirp/%.c
118 +        $(CC) $(CPPFLAGS) $(DEFS) $(SLIRP_CFLAGS) -c $< -o $@
119   $(OBJ_DIR)/%.o : %.c
120          $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
121   $(OBJ_DIR)/%.o : %.cpp
# Line 95 | Line 123 | $(OBJ_DIR)/%.o : %.cpp
123   $(OBJ_DIR)/%.o : %.s
124          $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
125  
126 < $(OBJ_DIR)/cpuopti: $(OBJ_DIR)/cpuopti.o
127 <        $(CC) $(LDFLAGS) -o $(OBJ_DIR)/cpuopti $(OBJ_DIR)/cpuopti.o
128 < $(OBJ_DIR)/build68k: $(OBJ_DIR)/build68k.o
129 <        $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k $(OBJ_DIR)/build68k.o
130 < $(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
131 <        $(CC) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
132 < cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
133 <        $(OBJ_DIR)/build68k <../uae_cpu/table68k >cpudefs.cpp
126 > # Windows resources
127 > $(OBJ_DIR)/%.o: %.rc
128 >        windres --include-dir ../Windows -i $< -o $@
129 >
130 > $(OBJ_DIR)/build68k$(EXEEXT): $(OBJ_DIR)/build68k.o
131 >        $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k$(EXEEXT) $(OBJ_DIR)/build68k.o
132 > $(OBJ_DIR)/gencpu$(EXEEXT): $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
133 >        $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencpu$(EXEEXT) $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
134 > $(OBJ_DIR)/gencomp$(EXEEXT): $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
135 >        $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencomp$(EXEEXT) $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
136 >
137 > cpudefs.cpp: $(OBJ_DIR)/build68k$(EXEEXT) ../uae_cpu/table68k
138 >        $(OBJ_DIR)/build68k$(EXEEXT) <../uae_cpu/table68k >cpudefs.cpp
139   cpustbl.cpp: cpuemu.cpp
140 + cpustbl_nf.cpp: cpustbl.cpp
141 + compstbl.cpp: compemu.cpp
142   cputbl.h: cpuemu.cpp
143 + comptbl.h: compemu.cpp
144  
145 < cpuemu.cpp: $(OBJ_DIR)/gencpu
146 <        $(OBJ_DIR)/gencpu
145 > cpuemu.cpp: $(OBJ_DIR)/gencpu$(EXEEXT)
146 >        $(OBJ_DIR)/gencpu$(EXEEXT)
147 >
148 > compemu.cpp: $(OBJ_DIR)/gencomp$(EXEEXT)
149 >        $(OBJ_DIR)/gencomp$(EXEEXT)
150 >
151 > $(OBJ_DIR)/cpustbl_nf.o: cpustbl.cpp
152 >        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DNOFLAGS -c $< -o $@
153 >
154 > $(OBJ_DIR)/compemu_support.o: compemu_support.cpp comptbl.h
155 >        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
156  
157   $(OBJ_DIR)/cpuemu1.o: cpuemu.cpp
158          $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
# Line 126 | Line 171 | $(OBJ_DIR)/cpuemu7.o: cpuemu.cpp
171   $(OBJ_DIR)/cpuemu8.o: cpuemu.cpp
172          $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
173  
174 < cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
175 <        $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s
176 <        $(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@
177 <        rm -f cputmp.s
178 < cpufast1.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
179 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -S $(CXXFLAGS) $< -o cputmp1.s
180 <        $(OBJ_DIR)/cpuopti <cputmp1.s >$@ || mv cputmp1.s $@
181 <        rm -f cputmp1.s
182 < cpufast2.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
183 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -S $(CXXFLAGS) $< -o cputmp2.s
184 <        $(OBJ_DIR)/cpuopti <cputmp2.s >$@ || mv cputmp2.s $@
185 <        rm -f cputmp2.s
186 < cpufast3.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
187 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -S $(CXXFLAGS) $< -o cputmp3.s
188 <        $(OBJ_DIR)/cpuopti <cputmp3.s >$@ || mv cputmp3.s $@
189 <        rm -f cputmp3.s
190 < cpufast4.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
191 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -S $(CXXFLAGS) $< -o cputmp4.s
192 <        $(OBJ_DIR)/cpuopti <cputmp4.s >$@ || mv cputmp4.s $@
193 <        rm -f cputmp4.s
194 < cpufast5.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
195 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -S $(CXXFLAGS) $< -o cputmp5.s
196 <        $(OBJ_DIR)/cpuopti <cputmp5.s >$@ || mv cputmp5.s $@
197 <        rm -f cputmp5.s
198 < cpufast6.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
199 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -S $(CXXFLAGS) $< -o cputmp6.s
200 <        $(OBJ_DIR)/cpuopti <cputmp6.s >$@ || mv cputmp6.s $@
201 <        rm -f cputmp6.s
202 < cpufast7.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
203 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -S $(CXXFLAGS) $< -o cputmp7.s
204 <        $(OBJ_DIR)/cpuopti <cputmp7.s >$@ || mv cputmp7.s $@
205 <        rm -f cputmp7.s
206 < cpufast8.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
162 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -S $(CXXFLAGS) $< -o cputmp8.s
163 <        $(OBJ_DIR)/cpuopti <cputmp8.s >$@ || mv cputmp8.s $@
164 <        rm -f cputmp8.s
174 > $(OBJ_DIR)/cpuemu1_nf.o: cpuemu.cpp
175 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
176 > $(OBJ_DIR)/cpuemu2_nf.o: cpuemu.cpp
177 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
178 > $(OBJ_DIR)/cpuemu3_nf.o: cpuemu.cpp
179 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
180 > $(OBJ_DIR)/cpuemu4_nf.o: cpuemu.cpp
181 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
182 > $(OBJ_DIR)/cpuemu5_nf.o: cpuemu.cpp
183 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
184 > $(OBJ_DIR)/cpuemu6_nf.o: cpuemu.cpp
185 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
186 > $(OBJ_DIR)/cpuemu7_nf.o: cpuemu.cpp
187 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
188 > $(OBJ_DIR)/cpuemu8_nf.o: cpuemu.cpp
189 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
190 >
191 > $(OBJ_DIR)/compemu1.o: compemu.cpp
192 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
193 > $(OBJ_DIR)/compemu2.o: compemu.cpp
194 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@
195 > $(OBJ_DIR)/compemu3.o: compemu.cpp
196 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@
197 > $(OBJ_DIR)/compemu4.o: compemu.cpp
198 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@
199 > $(OBJ_DIR)/compemu5.o: compemu.cpp
200 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@
201 > $(OBJ_DIR)/compemu6.o: compemu.cpp
202 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@
203 > $(OBJ_DIR)/compemu7.o: compemu.cpp
204 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@
205 > $(OBJ_DIR)/compemu8.o: compemu.cpp
206 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
207  
208   #-------------------------------------------------------------------------
209   # DO NOT DELETE THIS LINE -- make depend depends on it.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines