ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/Makefile.in
Revision: 1.33
Committed: 2004-11-15T00:07:54Z (20 years ago) by gbeauche
Branch: MAIN
Changes since 1.32: +4 -0 lines
Log Message:
Add Lauri's icon for Basilisk II builds on Windows

File Contents

# Content
1 # Unix makefile for Basilisk II
2
3 ## System specific configuration
4 @SET_MAKE@
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 = @KEYCODES@
15
16 DESTDIR =
17
18 CC = @CC@
19 CXX = @CXX@
20 CFLAGS = @CFLAGS@
21 CXXFLAGS = @CXXFLAGS@
22 CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
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 ## Files
35 SRCS = ../main.cpp main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp \
36 sys_unix.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp \
37 ../emul_op.cpp ../macos_util.cpp ../xpram.cpp xpram_unix.cpp ../timer.cpp \
38 timer_unix.cpp ../adb.cpp ../serial.cpp ../ether.cpp \
39 ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp video_blit.cpp \
40 vm_alloc.cpp sigsegv.cpp ../audio.cpp ../extfs.cpp extfs_unix.cpp \
41 ../user_strings.cpp user_strings_unix.cpp sshpty.c strlcpy.c \
42 $(SYSSRCS) $(CPUSRCS)
43 APP = BasiliskII
44
45 ## Rules
46 .PHONY: modules install installdirs uninstall mostlyclean clean distclean depend dep
47 .SUFFIXES:
48 .SUFFIXES: .c .cpp .s .o .h
49
50 all: $(APP)$(EXEEXT)
51
52 OBJ_DIR = obj
53 $(OBJ_DIR)::
54 @[ -d $(OBJ_DIR) ] || mkdir $(OBJ_DIR) > /dev/null 2>&1
55
56 define SRCS_LIST_TO_OBJS
57 $(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(foreach file, $(SRCS), \
58 $(basename $(notdir $(file))))))
59 endef
60 OBJS = $(SRCS_LIST_TO_OBJS)
61
62 SRC_PATHS += $(sort $(foreach file, $(SRCS), $(dir $(file))))
63 VPATH :=
64 VPATH += $(addprefix :, $(subst ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
65
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)$(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
78 $(INSTALL_DATA) tunconfig $(DESTDIR)$(datadir)/$(APP)/tunconfig
79
80 installdirs:
81 $(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(datadir)/$(APP)
82
83 uninstall:
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
88 rm -f $(DESTDIR)$(datadir)/$(APP)/tunconfig
89 rmdir $(DESTDIR)$(datadir)/$(APP)
90
91 mostlyclean:
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
96
97 distclean: clean
98 rm -rf $(OBJ_DIR)
99 rm -rf autom4te.cache
100 rm -f Makefile
101 rm -f config.cache config.log config.status config.h config.h.in
102 rm -f Darwin/lowmem Darwin/pagezero
103
104 depend dep:
105 makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null
106
107 $(OBJ_DIR)/%.o : %.c
108 $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
109 $(OBJ_DIR)/%.o : %.cpp
110 $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
111 $(OBJ_DIR)/%.o : %.s
112 $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
113
114 # Windows resources
115 $(OBJ_DIR)/%.o: %.rc
116 windres --include-dir ../Windows -i $< -o $@
117
118 $(OBJ_DIR)/build68k$(EXEEXT): $(OBJ_DIR)/build68k.o
119 $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k$(EXEEXT) $(OBJ_DIR)/build68k.o
120 $(OBJ_DIR)/gencpu$(EXEEXT): $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
121 $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencpu$(EXEEXT) $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
122 $(OBJ_DIR)/gencomp$(EXEEXT): $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
123 $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencomp$(EXEEXT) $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
124
125 cpudefs.cpp: $(OBJ_DIR)/build68k$(EXEEXT) ../uae_cpu/table68k
126 $(OBJ_DIR)/build68k$(EXEEXT) <../uae_cpu/table68k >cpudefs.cpp
127 cpustbl.cpp: cpuemu.cpp
128 cpustbl_nf.cpp: cpustbl.cpp
129 compstbl.cpp: compemu.cpp
130 cputbl.h: cpuemu.cpp
131 comptbl.h: compemu.cpp
132
133 cpuemu.cpp: $(OBJ_DIR)/gencpu$(EXEEXT)
134 $(OBJ_DIR)/gencpu$(EXEEXT)
135
136 compemu.cpp: $(OBJ_DIR)/gencomp$(EXEEXT)
137 $(OBJ_DIR)/gencomp$(EXEEXT)
138
139 $(OBJ_DIR)/cpustbl_nf.o: cpustbl.cpp
140 $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DNOFLAGS -c $< -o $@
141
142 $(OBJ_DIR)/compemu_support.o: compemu_support.cpp comptbl.h
143 $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
144
145 $(OBJ_DIR)/cpuemu1.o: cpuemu.cpp
146 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
147 $(OBJ_DIR)/cpuemu2.o: cpuemu.cpp
148 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@
149 $(OBJ_DIR)/cpuemu3.o: cpuemu.cpp
150 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@
151 $(OBJ_DIR)/cpuemu4.o: cpuemu.cpp
152 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@
153 $(OBJ_DIR)/cpuemu5.o: cpuemu.cpp
154 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@
155 $(OBJ_DIR)/cpuemu6.o: cpuemu.cpp
156 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@
157 $(OBJ_DIR)/cpuemu7.o: cpuemu.cpp
158 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@
159 $(OBJ_DIR)/cpuemu8.o: cpuemu.cpp
160 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
161
162 $(OBJ_DIR)/cpuemu1_nf.o: cpuemu.cpp
163 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
164 $(OBJ_DIR)/cpuemu2_nf.o: cpuemu.cpp
165 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
166 $(OBJ_DIR)/cpuemu3_nf.o: cpuemu.cpp
167 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
168 $(OBJ_DIR)/cpuemu4_nf.o: cpuemu.cpp
169 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
170 $(OBJ_DIR)/cpuemu5_nf.o: cpuemu.cpp
171 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
172 $(OBJ_DIR)/cpuemu6_nf.o: cpuemu.cpp
173 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
174 $(OBJ_DIR)/cpuemu7_nf.o: cpuemu.cpp
175 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
176 $(OBJ_DIR)/cpuemu8_nf.o: cpuemu.cpp
177 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
178
179 $(OBJ_DIR)/compemu1.o: compemu.cpp
180 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
181 $(OBJ_DIR)/compemu2.o: compemu.cpp
182 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@
183 $(OBJ_DIR)/compemu3.o: compemu.cpp
184 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@
185 $(OBJ_DIR)/compemu4.o: compemu.cpp
186 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@
187 $(OBJ_DIR)/compemu5.o: compemu.cpp
188 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@
189 $(OBJ_DIR)/compemu6.o: compemu.cpp
190 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@
191 $(OBJ_DIR)/compemu7.o: compemu.cpp
192 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@
193 $(OBJ_DIR)/compemu8.o: compemu.cpp
194 $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
195
196 #-------------------------------------------------------------------------
197 # DO NOT DELETE THIS LINE -- make depend depends on it.