ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/Makefile.in
Revision: 1.31
Committed: 2004-06-27T18:14:43Z (20 years, 5 months ago) by gbeauche
Branch: MAIN
Changes since 1.30: +3 -1 lines
Log Message:
Handle SDL scancode -> Mac keycode map files

File Contents

# User Rev Content
1 cebix 1.1 # Unix makefile for Basilisk II
2    
3     ## System specific configuration
4     @SET_MAKE@
5 cebix 1.9 SHELL = /bin/sh
6 cebix 1.3
7 cebix 1.6 prefix = @prefix@
8     exec_prefix = @exec_prefix@
9     bindir = @bindir@
10     datadir = @datadir@
11     mandir = @mandir@
12     man1dir = $(mandir)/man1
13 cebix 1.3
14 gbeauche 1.31 KEYCODES = @KEYCODES@
15    
16 cebix 1.18 DESTDIR =
17    
18 cebix 1.1 CC = @CC@
19     CXX = @CXX@
20     CFLAGS = @CFLAGS@
21     CXXFLAGS = @CXXFLAGS@
22     CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
23 cebix 1.6 DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\"
24 cebix 1.1 LDFLAGS = @LDFLAGS@
25     LIBS = @LIBS@
26     SYSSRCS = @SYSSRCS@
27     CPUSRCS = @CPUSRCS@
28 gbeauche 1.26 BLESS = @BLESS@
29 cebix 1.3 INSTALL = @INSTALL@
30     INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
31     INSTALL_DATA = @INSTALL_DATA@
32 cebix 1.1
33     ## Files
34 cebix 1.17 SRCS = ../main.cpp main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp \
35     sys_unix.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp \
36     ../emul_op.cpp ../macos_util.cpp ../xpram.cpp xpram_unix.cpp ../timer.cpp \
37 gbeauche 1.30 timer_unix.cpp ../adb.cpp ../serial.cpp ../ether.cpp \
38 gbeauche 1.20 ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp video_blit.cpp \
39 gbeauche 1.29 vm_alloc.cpp sigsegv.cpp ../audio.cpp ../extfs.cpp extfs_unix.cpp \
40 cebix 1.24 ../user_strings.cpp user_strings_unix.cpp sshpty.c strlcpy.c \
41 cebix 1.1 $(SYSSRCS) $(CPUSRCS)
42     APP = BasiliskII
43    
44     ## Rules
45 cebix 1.18 .PHONY: modules install installdirs uninstall mostlyclean clean distclean depend dep
46 cebix 1.9 .SUFFIXES:
47     .SUFFIXES: .c .cpp .s .o .h
48 cebix 1.2
49 cebix 1.9 all: $(APP)
50 cebix 1.1
51     OBJ_DIR = obj
52     $(OBJ_DIR)::
53     @[ -d $(OBJ_DIR) ] || mkdir $(OBJ_DIR) > /dev/null 2>&1
54    
55     define SRCS_LIST_TO_OBJS
56     $(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(foreach file, $(SRCS), \
57     $(basename $(notdir $(file))))))
58     endef
59     OBJS = $(SRCS_LIST_TO_OBJS)
60    
61     SRC_PATHS += $(sort $(foreach file, $(SRCS), $(dir $(file))))
62     VPATH :=
63     VPATH += $(addprefix :, $(subst ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
64    
65     $(APP): $(OBJ_DIR) $(OBJS)
66     $(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS)
67 gbeauche 1.26 $(BLESS) $(APP)
68 cebix 1.1
69     modules:
70 cebix 1.2 cd Linux/NetDriver; make
71 cebix 1.1
72 cebix 1.14 install: $(APP) installdirs
73 cebix 1.18 $(INSTALL_PROGRAM) $(APP) $(DESTDIR)$(bindir)/$(APP)
74     -$(INSTALL_DATA) $(APP).1 $(DESTDIR)$(man1dir)/$(APP).1
75 gbeauche 1.31 $(INSTALL_DATA) $(KEYCODES) $(DESTDIR)$(datadir)/$(APP)/keycodes
76 cebix 1.18 $(INSTALL_DATA) fbdevices $(DESTDIR)$(datadir)/$(APP)/fbdevices
77 gbeauche 1.28 $(INSTALL_DATA) tunconfig $(DESTDIR)$(datadir)/$(APP)/tunconfig
78 cebix 1.14
79     installdirs:
80 cebix 1.19 $(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(datadir)/$(APP)
81 cebix 1.5
82     uninstall:
83 cebix 1.18 rm -f $(DESTDIR)$(bindir)/$(APP)
84     rm -f $(DESTDIR)$(man1dir)/$(APP).1
85     rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes
86     rm -f $(DESTDIR)$(datadir)/$(APP)/fbdevices
87 gbeauche 1.28 rm -f $(DESTDIR)$(datadir)/$(APP)/tunconfig
88 cebix 1.18 rmdir $(DESTDIR)$(datadir)/$(APP)
89 cebix 1.9
90     mostlyclean:
91     rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak
92    
93     clean: mostlyclean
94 gbeauche 1.25 rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h compemu.cpp compstbl.cpp comptbl.h
95 cebix 1.1
96     distclean: clean
97 cebix 1.9 rm -rf $(OBJ_DIR)
98 nigel 1.27 rm -rf autom4te.cache
99 cebix 1.9 rm -f Makefile
100 nigel 1.27 rm -f config.cache config.log config.status config.h config.h.in
101     rm -f Darwin/lowmem Darwin/pagezero
102 cebix 1.1
103     depend dep:
104 cebix 1.8 makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null
105 cebix 1.1
106     $(OBJ_DIR)/%.o : %.c
107     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
108     $(OBJ_DIR)/%.o : %.cpp
109     $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
110     $(OBJ_DIR)/%.o : %.s
111     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
112    
113     $(OBJ_DIR)/cpuopti: $(OBJ_DIR)/cpuopti.o
114     $(CC) $(LDFLAGS) -o $(OBJ_DIR)/cpuopti $(OBJ_DIR)/cpuopti.o
115     $(OBJ_DIR)/build68k: $(OBJ_DIR)/build68k.o
116     $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k $(OBJ_DIR)/build68k.o
117     $(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
118 gbeauche 1.23 $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
119 gbeauche 1.25 $(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
121    
122 cebix 1.1 cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
123     $(OBJ_DIR)/build68k <../uae_cpu/table68k >cpudefs.cpp
124 cebix 1.11 cpustbl.cpp: cpuemu.cpp
125 gbeauche 1.25 cpustbl_nf.cpp: cpustbl.cpp
126     compstbl.cpp: compemu.cpp
127 cebix 1.11 cputbl.h: cpuemu.cpp
128 gbeauche 1.25 comptbl.h: compemu.cpp
129 cebix 1.11
130 cebix 1.1 cpuemu.cpp: $(OBJ_DIR)/gencpu
131     $(OBJ_DIR)/gencpu
132 cebix 1.11
133 gbeauche 1.25 compemu.cpp: $(OBJ_DIR)/gencomp
134     $(OBJ_DIR)/gencomp
135    
136     $(OBJ_DIR)/cpustbl_nf.o: cpustbl.cpp
137     $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DNOFLAGS -c $< -o $@
138    
139     $(OBJ_DIR)/compemu_support.o: compemu_support.cpp comptbl.h
140     $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
141    
142 cebix 1.11 $(OBJ_DIR)/cpuemu1.o: cpuemu.cpp
143     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
144     $(OBJ_DIR)/cpuemu2.o: cpuemu.cpp
145     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@
146     $(OBJ_DIR)/cpuemu3.o: cpuemu.cpp
147     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@
148     $(OBJ_DIR)/cpuemu4.o: cpuemu.cpp
149     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@
150     $(OBJ_DIR)/cpuemu5.o: cpuemu.cpp
151     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@
152     $(OBJ_DIR)/cpuemu6.o: cpuemu.cpp
153     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@
154     $(OBJ_DIR)/cpuemu7.o: cpuemu.cpp
155     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@
156     $(OBJ_DIR)/cpuemu8.o: cpuemu.cpp
157     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
158    
159 gbeauche 1.25 $(OBJ_DIR)/cpuemu1_nf.o: cpuemu.cpp
160     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
161     $(OBJ_DIR)/cpuemu2_nf.o: cpuemu.cpp
162     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
163     $(OBJ_DIR)/cpuemu3_nf.o: cpuemu.cpp
164     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
165     $(OBJ_DIR)/cpuemu4_nf.o: cpuemu.cpp
166     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
167     $(OBJ_DIR)/cpuemu5_nf.o: cpuemu.cpp
168     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
169     $(OBJ_DIR)/cpuemu6_nf.o: cpuemu.cpp
170     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
171     $(OBJ_DIR)/cpuemu7_nf.o: cpuemu.cpp
172     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
173     $(OBJ_DIR)/cpuemu8_nf.o: cpuemu.cpp
174     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
175    
176     $(OBJ_DIR)/compemu1.o: compemu.cpp
177     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
178     $(OBJ_DIR)/compemu2.o: compemu.cpp
179     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@
180     $(OBJ_DIR)/compemu3.o: compemu.cpp
181     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@
182     $(OBJ_DIR)/compemu4.o: compemu.cpp
183     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@
184     $(OBJ_DIR)/compemu5.o: compemu.cpp
185     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@
186     $(OBJ_DIR)/compemu6.o: compemu.cpp
187     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@
188     $(OBJ_DIR)/compemu7.o: compemu.cpp
189     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@
190     $(OBJ_DIR)/compemu8.o: compemu.cpp
191     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
192    
193 cebix 1.1 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 cebix 1.11 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 gbeauche 1.25
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 cebix 1.1
267     #-------------------------------------------------------------------------
268     # DO NOT DELETE THIS LINE -- make depend depends on it.