ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Windows/Makefile.in
Revision: 1.6
Committed: 2006-04-23T15:40:23Z (18 years, 5 months ago) by gbeauche
Branch: MAIN
Changes since 1.5: +2 -1 lines
Log Message:
Update the GUI with the new ethernet configuration changes. Handle migrations
from the GUI. Also move from a combo to a fixed popdown menu with pretty
printed ethernet interfaces.

File Contents

# User Rev Content
1 gbeauche 1.1 # Windows Makefile for Basilisk II
2    
3     ## System specific configuration
4    
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     KEYCODES = ../SDL/keycodes
15    
16     DESTDIR =
17    
18 gbeauche 1.3 SDL_CFLAGS = @SDL_CFLAGS@
19     SDL_LIBS = @SDL_LIBS@
20     WANT_GTK = @WANT_GTK@
21     GTK_CFLAGS = @GTK_CFLAGS@
22     GTK_LIBS = @GTK_LIBS@
23    
24 gbeauche 1.1 LN_S = @LN_S@
25 gbeauche 1.2 WINDRES = @WINDRES@
26 gbeauche 1.1 CC = @CC@
27     CXX = @CXX@
28 gbeauche 1.3 CFLAGS = @CFLAGS@ $(SDL_CFLAGS)
29     CXXFLAGS = @CXXFLAGS@ $(SDL_CFLAGS)
30 gbeauche 1.1 CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
31     DEFS = @DEFS@ @DEFINES@
32     LDFLAGS = @LDFLAGS@
33     LIBS = @LIBS@
34     CPUSRCS = @CPUSRCS@
35    
36     HOST_CC = gcc
37     HOST_CXX = g++
38     HOST_CFLAGS = -O2
39     HOST_CXXFLAGS = -O2
40     HOST_LDFLAGS =
41    
42     ## Files
43     UNIXSRCS = vm_alloc.cpp vm_alloc.h sigsegv.cpp sigsegv.h video_vosf.h video_blit.cpp video_blit.h
44    
45     CDENABLESRCS = cdenable/cache.cpp cdenable/eject_nt.cpp cdenable/ntcd.cpp
46    
47     ROUTERSRCS = router/arp.cpp router/dump.cpp router/dynsockets.cpp router/ftp.cpp \
48     router/icmp.cpp router/mib/interfaces.cpp router/iphelp.cpp router/ipsocket.cpp \
49     router/mib/mibaccess.cpp router/router.cpp router/tcp.cpp router/udp.cpp b2ether/packet32.cpp
50    
51     SRCS = ../main.cpp main_windows.cpp ../prefs.cpp ../prefs_items.cpp prefs_windows.cpp \
52     sys_windows.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp \
53     ../emul_op.cpp ../macos_util.cpp ../xpram.cpp xpram_windows.cpp ../timer.cpp \
54 gbeauche 1.3 timer_windows.cpp ../adb.cpp ../serial.cpp serial_windows.cpp \
55 gbeauche 1.1 ../ether.cpp ether_windows.cpp ../sony.cpp ../disk.cpp ../cdrom.cpp \
56     ../scsi.cpp ../dummy/scsi_dummy.cpp ../video.cpp ../SDL/video_sdl.cpp \
57     video_blit.cpp ../audio.cpp ../SDL/audio_sdl.cpp clip_windows.cpp \
58     ../extfs.cpp extfs_windows.cpp ../user_strings.cpp user_strings_windows.cpp \
59     vm_alloc.cpp sigsegv.cpp posix_emu.cpp util_windows.cpp kernel_windows.cpp \
60     ../dummy/prefs_editor_dummy.cpp BasiliskII.rc \
61     $(CDENABLESRCS) $(ROUTERSRCS) $(CPUSRCS)
62    
63 gbeauche 1.3 UI_SRCS = ../prefs.cpp prefs_windows.cpp prefs_editor_gtk.cpp xpram_windows.cpp \
64 gbeauche 1.6 ../prefs_items.cpp ../user_strings.cpp user_strings_windows.cpp util_windows.cpp \
65     b2ether/Packet32.cpp BasiliskIIGUI.rc
66 gbeauche 1.3
67     UI_APP = BasiliskIIGUI.exe
68    
69 gbeauche 1.1 APP = BasiliskII.exe
70    
71 gbeauche 1.3 PROGS = $(APP)
72    
73     ifeq ($(WANT_GTK),yes)
74     PROGS += $(UI_APP)
75     endif
76    
77 gbeauche 1.1 ## Rules
78     .PHONY: modules install installdirs uninstall mostlyclean clean distclean depend dep
79     .SUFFIXES:
80     .SUFFIXES: .c .cpp .s .o .h
81    
82 gbeauche 1.3 all: $(PROGS)
83 gbeauche 1.1
84     $(UNIXSRCS): %: ../Unix/%
85     $(LN_S) $< $@
86    
87     OBJ_DIR = obj
88     $(OBJ_DIR)::
89     @[ -d $(OBJ_DIR) ] || mkdir $(OBJ_DIR) > /dev/null 2>&1
90    
91     define SRCS_LIST_TO_OBJS
92     $(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(foreach file, $(SRCS), \
93     $(basename $(notdir $(file))))))
94     endef
95     OBJS = $(SRCS_LIST_TO_OBJS)
96    
97 gbeauche 1.3 define UI_SRCS_LIST_TO_OBJS
98     $(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(foreach file, $(UI_SRCS), \
99     $(basename $(notdir $(file))))))
100     endef
101     UI_OBJS = $(UI_SRCS_LIST_TO_OBJS)
102    
103 gbeauche 1.1 SRC_PATHS += $(sort $(foreach file, $(SRCS), $(dir $(file))))
104     VPATH :=
105     VPATH += $(addprefix :, $(subst ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
106    
107     $(APP): $(UNIXSRCS) $(OBJ_DIR) $(OBJS)
108 gbeauche 1.3 $(CXX) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) $(SDL_LIBS)
109    
110     $(UI_APP): $(UNIXSRCS) $(OBJ_DIR) $(UI_OBJS)
111     $(CXX) -o $@ $(LDFLAGS) $(UI_OBJS) $(LIBS) $(GTK_LIBS) -mwindows -mno-cygwin
112 gbeauche 1.1
113     mostlyclean:
114 gbeauche 1.3 rm -f $(APP) $(UI_APP) $(OBJ_DIR)/* core* *.core *~ *.bak
115 gbeauche 1.1
116     clean: mostlyclean
117     rm -f $(UNIXSRCS)
118     rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h compemu.cpp compstbl.cpp comptbl.h
119    
120     distclean: clean
121     rm -rf $(OBJ_DIR)
122     rm -rf autom4te.cache
123     rm -f Makefile
124 gbeauche 1.4 rm -f config.cache config.log config.status config.h
125 gbeauche 1.1
126     depend dep:
127     makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null
128    
129     $(OBJ_DIR)/%.ho : %.c
130     $(HOST_CC) $(CPPFLAGS) $(DEFS) $(HOST_CFLAGS) -c $< -o $@
131     $(OBJ_DIR)/%.ho : %.cpp
132     $(HOST_CXX) $(CPPFLAGS) $(DEFS) $(HOST_CXXFLAGS) -c $< -o $@
133     $(OBJ_DIR)/%.o : %.c
134     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
135     $(OBJ_DIR)/%.o : %.cpp
136     $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
137     $(OBJ_DIR)/%.o : %.s
138     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
139 gbeauche 1.3 $(OBJ_DIR)/prefs_editor_gtk.o: prefs_editor_gtk.cpp
140     $(CXX) -O2 -mno-cygwin -mms-bitfields $(CPPFLAGS) $(DEFS) $(GTK_CFLAGS) -c $< -o $@
141 gbeauche 1.1
142     # Windows resources
143     $(OBJ_DIR)/%.o: %.rc
144 gbeauche 1.2 $(WINDRES) --include-dir ../Windows -i $< -o $@
145 gbeauche 1.1 $(OBJ_DIR)/build68k.exe: $(OBJ_DIR)/build68k.ho
146     $(HOST_CC) $(HOST_LDFLAGS) -o $@ $<
147     $(OBJ_DIR)/gencpu.exe: $(OBJ_DIR)/gencpu.ho $(OBJ_DIR)/readcpu.ho $(OBJ_DIR)/cpudefs.ho
148     $(HOST_CXX) $(HOST_LDFLAGS) -o $@ $(OBJ_DIR)/gencpu.ho $(OBJ_DIR)/readcpu.ho $(OBJ_DIR)/cpudefs.ho
149     $(OBJ_DIR)/gencomp.exe: $(OBJ_DIR)/gencomp.ho $(OBJ_DIR)/readcpu.ho $(OBJ_DIR)/cpudefs.ho
150     $(HOST_CXX) $(HOST_LDFLAGS) -o $@ $(OBJ_DIR)/gencomp.ho $(OBJ_DIR)/readcpu.ho $(OBJ_DIR)/cpudefs.ho
151    
152     cpudefs.cpp: $(OBJ_DIR)/build68k.exe ../uae_cpu/table68k
153     $(OBJ_DIR)/build68k.exe ../uae_cpu/table68k >cpudefs.cpp
154     cpustbl.cpp: cpuemu.cpp
155     cpustbl_nf.cpp: cpustbl.cpp
156     compstbl.cpp: compemu.cpp
157     cputbl.h: cpuemu.cpp
158     comptbl.h: compemu.cpp
159    
160     cpuemu.cpp: $(OBJ_DIR)/gencpu.exe
161     $(OBJ_DIR)/gencpu.exe
162    
163     compemu.cpp: $(OBJ_DIR)/gencomp.exe
164     $(OBJ_DIR)/gencomp.exe
165    
166     $(OBJ_DIR)/cpustbl_nf.o: cpustbl.cpp
167     $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DNOFLAGS -c $< -o $@
168    
169     $(OBJ_DIR)/compemu_support.o: compemu_support.cpp comptbl.h
170     $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
171    
172     $(OBJ_DIR)/cpuemu1.o: cpuemu.cpp
173     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
174     $(OBJ_DIR)/cpuemu2.o: cpuemu.cpp
175     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@
176     $(OBJ_DIR)/cpuemu3.o: cpuemu.cpp
177     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@
178     $(OBJ_DIR)/cpuemu4.o: cpuemu.cpp
179     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@
180     $(OBJ_DIR)/cpuemu5.o: cpuemu.cpp
181     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@
182     $(OBJ_DIR)/cpuemu6.o: cpuemu.cpp
183     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@
184     $(OBJ_DIR)/cpuemu7.o: cpuemu.cpp
185     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@
186     $(OBJ_DIR)/cpuemu8.o: cpuemu.cpp
187     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
188    
189     $(OBJ_DIR)/cpuemu1_nf.o: cpuemu.cpp
190     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
191     $(OBJ_DIR)/cpuemu2_nf.o: cpuemu.cpp
192     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
193     $(OBJ_DIR)/cpuemu3_nf.o: cpuemu.cpp
194     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
195     $(OBJ_DIR)/cpuemu4_nf.o: cpuemu.cpp
196     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
197     $(OBJ_DIR)/cpuemu5_nf.o: cpuemu.cpp
198     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
199     $(OBJ_DIR)/cpuemu6_nf.o: cpuemu.cpp
200     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
201     $(OBJ_DIR)/cpuemu7_nf.o: cpuemu.cpp
202     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
203     $(OBJ_DIR)/cpuemu8_nf.o: cpuemu.cpp
204     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
205    
206     $(OBJ_DIR)/compemu1.o: compemu.cpp
207     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
208     $(OBJ_DIR)/compemu2.o: compemu.cpp
209     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@
210     $(OBJ_DIR)/compemu3.o: compemu.cpp
211     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@
212     $(OBJ_DIR)/compemu4.o: compemu.cpp
213     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@
214     $(OBJ_DIR)/compemu5.o: compemu.cpp
215     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@
216     $(OBJ_DIR)/compemu6.o: compemu.cpp
217     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@
218     $(OBJ_DIR)/compemu7.o: compemu.cpp
219     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@
220     $(OBJ_DIR)/compemu8.o: compemu.cpp
221     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
222    
223     #-------------------------------------------------------------------------
224     # DO NOT DELETE THIS LINE -- make depend depends on it.