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.31 by gbeauche, 2004-06-27T18:14:43Z vs.
Revision 1.32 by gbeauche, 2004-11-14T23:21:54Z

# Line 26 | Line 26 | 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@
# Line 46 | Line 47 | APP = BasiliskII
47   .SUFFIXES:
48   .SUFFIXES: .c .cpp .s .o .h
49  
50 < all: $(APP)
50 > all: $(APP)$(EXEEXT)
51  
52   OBJ_DIR = obj
53   $(OBJ_DIR)::
# Line 62 | Line 63 | SRC_PATHS += $(sort $(foreach file, $(SR
63   VPATH :=
64   VPATH += $(addprefix :, $(subst  ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
65  
66 < $(APP): $(OBJ_DIR) $(OBJS)
67 <        $(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS)
68 <        $(BLESS) $(APP)
66 > $(APP)$(EXEEXT): $(OBJ_DIR) $(OBJS)
67 >        $(CXX) -o $(APP)$(EXEEXT) $(LDFLAGS) $(OBJS) $(LIBS)
68 >        $(BLESS) $(APP)$(EXEEXT)
69  
70   modules:
71          cd Linux/NetDriver; make
72  
73 < install: $(APP) installdirs
74 <        $(INSTALL_PROGRAM) $(APP) $(DESTDIR)$(bindir)/$(APP)
73 > install: $(APP)$(EXEEXT) installdirs
74 >        $(INSTALL_PROGRAM) $(APP)$(EXEEXT) $(DESTDIR)$(bindir)/$(APP)$(EXEEXT)
75          -$(INSTALL_DATA) $(APP).1 $(DESTDIR)$(man1dir)/$(APP).1
76          $(INSTALL_DATA) $(KEYCODES) $(DESTDIR)$(datadir)/$(APP)/keycodes
77          $(INSTALL_DATA) fbdevices $(DESTDIR)$(datadir)/$(APP)/fbdevices
# Line 80 | Line 81 | installdirs:
81          $(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(datadir)/$(APP)
82  
83   uninstall:
84 <        rm -f $(DESTDIR)$(bindir)/$(APP)
84 >        rm -f $(DESTDIR)$(bindir)/$(APP)$(EXEEXT)
85          rm -f $(DESTDIR)$(man1dir)/$(APP).1
86          rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes
87          rm -f $(DESTDIR)$(datadir)/$(APP)/fbdevices
# Line 88 | Line 89 | uninstall:
89          rmdir $(DESTDIR)$(datadir)/$(APP)
90  
91   mostlyclean:
92 <        rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak
92 >        rm -f $(APP)$(EXEEXT) $(OBJ_DIR)/* core* *.core *~ *.bak
93  
94   clean: mostlyclean
95          rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h compemu.cpp compstbl.cpp comptbl.h
# Line 110 | Line 111 | $(OBJ_DIR)/%.o : %.cpp
111   $(OBJ_DIR)/%.o : %.s
112          $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
113  
114 < $(OBJ_DIR)/cpuopti: $(OBJ_DIR)/cpuopti.o
115 <        $(CC) $(LDFLAGS) -o $(OBJ_DIR)/cpuopti $(OBJ_DIR)/cpuopti.o
116 < $(OBJ_DIR)/build68k: $(OBJ_DIR)/build68k.o
117 <        $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k $(OBJ_DIR)/build68k.o
118 < $(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
119 <        $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
119 < $(OBJ_DIR)/gencomp: $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
120 <        $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencomp $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
114 > $(OBJ_DIR)/build68k$(EXEEXT): $(OBJ_DIR)/build68k.o
115 >        $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k$(EXEEXT) $(OBJ_DIR)/build68k.o
116 > $(OBJ_DIR)/gencpu$(EXEEXT): $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
117 >        $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencpu$(EXEEXT) $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
118 > $(OBJ_DIR)/gencomp$(EXEEXT): $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
119 >        $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencomp$(EXEEXT) $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
120  
121 < cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
122 <        $(OBJ_DIR)/build68k <../uae_cpu/table68k >cpudefs.cpp
121 > cpudefs.cpp: $(OBJ_DIR)/build68k$(EXEEXT) ../uae_cpu/table68k
122 >        $(OBJ_DIR)/build68k$(EXEEXT) <../uae_cpu/table68k >cpudefs.cpp
123   cpustbl.cpp: cpuemu.cpp
124   cpustbl_nf.cpp: cpustbl.cpp
125   compstbl.cpp: compemu.cpp
126   cputbl.h: cpuemu.cpp
127   comptbl.h: compemu.cpp
128  
129 < cpuemu.cpp: $(OBJ_DIR)/gencpu
130 <        $(OBJ_DIR)/gencpu
129 > cpuemu.cpp: $(OBJ_DIR)/gencpu$(EXEEXT)
130 >        $(OBJ_DIR)/gencpu$(EXEEXT)
131  
132 < compemu.cpp: $(OBJ_DIR)/gencomp
133 <        $(OBJ_DIR)/gencomp
132 > compemu.cpp: $(OBJ_DIR)/gencomp$(EXEEXT)
133 >        $(OBJ_DIR)/gencomp$(EXEEXT)
134  
135   $(OBJ_DIR)/cpustbl_nf.o: cpustbl.cpp
136          $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DNOFLAGS -c $< -o $@
# Line 190 | Line 189 | $(OBJ_DIR)/compemu7.o: compemu.cpp
189   $(OBJ_DIR)/compemu8.o: compemu.cpp
190          $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
191  
193 cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
194        $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s
195        $(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@
196        rm -f cputmp.s
197 cpufast1.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
198        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -S $(CXXFLAGS) $< -o cputmp1.s
199        $(OBJ_DIR)/cpuopti <cputmp1.s >$@ || mv cputmp1.s $@
200        rm -f cputmp1.s
201 cpufast2.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
202        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -S $(CXXFLAGS) $< -o cputmp2.s
203        $(OBJ_DIR)/cpuopti <cputmp2.s >$@ || mv cputmp2.s $@
204        rm -f cputmp2.s
205 cpufast3.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
206        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -S $(CXXFLAGS) $< -o cputmp3.s
207        $(OBJ_DIR)/cpuopti <cputmp3.s >$@ || mv cputmp3.s $@
208        rm -f cputmp3.s
209 cpufast4.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
210        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -S $(CXXFLAGS) $< -o cputmp4.s
211        $(OBJ_DIR)/cpuopti <cputmp4.s >$@ || mv cputmp4.s $@
212        rm -f cputmp4.s
213 cpufast5.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
214        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -S $(CXXFLAGS) $< -o cputmp5.s
215        $(OBJ_DIR)/cpuopti <cputmp5.s >$@ || mv cputmp5.s $@
216        rm -f cputmp5.s
217 cpufast6.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
218        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -S $(CXXFLAGS) $< -o cputmp6.s
219        $(OBJ_DIR)/cpuopti <cputmp6.s >$@ || mv cputmp6.s $@
220        rm -f cputmp6.s
221 cpufast7.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
222        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -S $(CXXFLAGS) $< -o cputmp7.s
223        $(OBJ_DIR)/cpuopti <cputmp7.s >$@ || mv cputmp7.s $@
224        rm -f cputmp7.s
225 cpufast8.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
226        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -S $(CXXFLAGS) $< -o cputmp8.s
227        $(OBJ_DIR)/cpuopti <cputmp8.s >$@ || mv cputmp8.s $@
228        rm -f cputmp8.s
229
230 cpufast_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
231        $(CXX) $(CPPFLAGS) $(DEFS) -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp_nf.s
232        $(OBJ_DIR)/cpuopti <cputmp_nf.s >$@ || mv cputmp_nf.s $@
233        rm -f cputmp_nf.s
234 cpufast1_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
235        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp1_nf.s
236        $(OBJ_DIR)/cpuopti <cputmp1_nf.s >$@ || mv cputmp1_nf.s $@
237        rm -f cputmp1_nf.s
238 cpufast2_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
239        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp2_nf.s
240        $(OBJ_DIR)/cpuopti <cputmp2_nf.s >$@ || mv cputmp2_nf.s $@
241        rm -f cputmp2_nf.s
242 cpufast3_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
243        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp3_nf.s
244        $(OBJ_DIR)/cpuopti <cputmp3_nf.s >$@ || mv cputmp3_nf.s $@
245        rm -f cputmp3_nf.s
246 cpufast4_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
247        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp4_nf.s
248        $(OBJ_DIR)/cpuopti <cputmp4_nf.s >$@ || mv cputmp4_nf.s $@
249        rm -f cputmp4_nf.s
250 cpufast5_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
251        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp5_nf.s
252        $(OBJ_DIR)/cpuopti <cputmp5_nf.s >$@ || mv cputmp5_nf.s $@
253        rm -f cputmp5_nf.s
254 cpufast6_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
255        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp6_nf.s
256        $(OBJ_DIR)/cpuopti <cputmp6_nf.s >$@ || mv cputmp6_nf.s $@
257        rm -f cputmp6_nf.s
258 cpufast7_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
259        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp7_nf.s
260        $(OBJ_DIR)/cpuopti <cputmp7_nf.s >$@ || mv cputmp7_nf.s $@
261        rm -f cputmp7_nf.s
262 cpufast8_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
263        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp8_nf.s
264        $(OBJ_DIR)/cpuopti <cputmp8_nf.s >$@ || mv cputmp8_nf.s $@
265        rm -f cputmp8_nf.s
266
192   #-------------------------------------------------------------------------
193   # DO NOT DELETE THIS LINE -- make depend depends on it.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines