ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/Makefile.in
Revision: 1.36
Committed: 2005-05-14T08:10:49Z (19 years, 1 month ago) by gbeauche
Branch: MAIN
Changes since 1.35: +1 -7 lines
Log Message:
detect slirp at configure time, aka fix build when ether_dummy.cpp is used

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