]>
Commit | Line | Data |
---|---|---|
626df76a FB |
1 | include config.mak |
2 | ||
0b0babc6 FB |
3 | TARGET_BASE_ARCH:=$(TARGET_ARCH) |
4 | ifeq ($(TARGET_ARCH), x86_64) | |
5 | TARGET_BASE_ARCH:=i386 | |
6 | endif | |
64b3ab24 FB |
7 | ifeq ($(TARGET_ARCH), sparc64) |
8 | TARGET_BASE_ARCH:=sparc | |
9 | endif | |
0b0babc6 | 10 | TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH) |
85571bc7 | 11 | VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw:$(SRC_PATH)/audio |
3035f7ff FB |
12 | DEFINES=-I. -I$(TARGET_PATH) -I$(SRC_PATH) |
13 | ifdef CONFIG_USER_ONLY | |
14 | VPATH+=:$(SRC_PATH)/linux-user | |
15 | DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH) | |
16 | endif | |
ab2572d7 | 17 | CFLAGS=-Wall -O2 -g -fno-strict-aliasing |
0b0babc6 | 18 | #CFLAGS+=-Werror |
626df76a FB |
19 | LDFLAGS=-g |
20 | LIBS= | |
626df76a | 21 | HELPER_CFLAGS=$(CFLAGS) |
67b915a5 | 22 | DYNGEN=../dyngen$(EXESUF) |
1e43adfc | 23 | # user emulator name |
808c4954 FB |
24 | ifeq ($(TARGET_ARCH),arm) |
25 | ifeq ($(TARGET_WORDS_BIGENDIAN),yes) | |
26 | QEMU_USER=qemu-armeb | |
27 | else | |
28 | QEMU_USER=qemu-arm | |
29 | endif | |
30 | else | |
31 | QEMU_USER=qemu-$(TARGET_ARCH) | |
32 | endif | |
1e43adfc FB |
33 | # system emulator name |
34 | ifdef CONFIG_SOFTMMU | |
a541f297 | 35 | ifeq ($(TARGET_ARCH), i386) |
67b915a5 | 36 | QEMU_SYSTEM=qemu$(EXESUF) |
0db63474 | 37 | else |
a541f297 FB |
38 | QEMU_SYSTEM=qemu-system-$(TARGET_ARCH)$(EXESUF) |
39 | endif | |
40 | else | |
0db63474 | 41 | QEMU_SYSTEM=qemu-fast |
1e43adfc FB |
42 | endif |
43 | ||
16e9b7de | 44 | ifdef CONFIG_USER_ONLY |
1e43adfc | 45 | PROGS=$(QEMU_USER) |
16e9b7de | 46 | else |
c321f673 | 47 | PROGS+=$(QEMU_SYSTEM) |
de5eaa64 FB |
48 | ifndef CONFIG_SOFTMMU |
49 | CONFIG_STATIC=y | |
50 | endif | |
728c9fd5 | 51 | endif # !CONFIG_USER_ONLY |
626df76a FB |
52 | |
53 | ifdef CONFIG_STATIC | |
54 | LDFLAGS+=-static | |
55 | endif | |
56 | ||
57 | ifeq ($(ARCH),i386) | |
58 | CFLAGS+=-fomit-frame-pointer | |
59 | OP_CFLAGS=$(CFLAGS) -mpreferred-stack-boundary=2 | |
60 | ifeq ($(HAVE_GCC3_OPTIONS),yes) | |
3611a29c | 61 | OP_CFLAGS+= -falign-functions=0 -fno-gcse |
626df76a FB |
62 | else |
63 | OP_CFLAGS+= -malign-functions=0 | |
64 | endif | |
3a4739d6 | 65 | |
626df76a | 66 | ifdef TARGET_GPROF |
3a4739d6 FB |
67 | USE_I386_LD=y |
68 | endif | |
69 | ifdef CONFIG_STATIC | |
70 | USE_I386_LD=y | |
71 | endif | |
72 | ifdef USE_I386_LD | |
626df76a FB |
73 | LDFLAGS+=-Wl,-T,$(SRC_PATH)/i386.ld |
74 | else | |
75 | # WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object | |
76 | # that the kernel ELF loader considers as an executable. I think this | |
77 | # is the simplest way to make it self virtualizable! | |
78 | LDFLAGS+=-Wl,-shared | |
79 | endif | |
626df76a FB |
80 | endif |
81 | ||
0b0babc6 | 82 | ifeq ($(ARCH),x86_64) |
bc51c5c9 | 83 | OP_CFLAGS=$(CFLAGS) -falign-functions=0 |
0b0babc6 | 84 | LDFLAGS+=-Wl,-T,$(SRC_PATH)/x86_64.ld |
bc51c5c9 FB |
85 | endif |
86 | ||
626df76a | 87 | ifeq ($(ARCH),ppc) |
83fb7adf | 88 | CFLAGS+= -D__powerpc__ |
626df76a FB |
89 | OP_CFLAGS=$(CFLAGS) |
90 | LDFLAGS+=-Wl,-T,$(SRC_PATH)/ppc.ld | |
91 | endif | |
92 | ||
93 | ifeq ($(ARCH),s390) | |
94 | OP_CFLAGS=$(CFLAGS) | |
95 | LDFLAGS+=-Wl,-T,$(SRC_PATH)/s390.ld | |
96 | endif | |
97 | ||
98 | ifeq ($(ARCH),sparc) | |
99 | CFLAGS+=-m32 -ffixed-g1 -ffixed-g2 -ffixed-g3 -ffixed-g6 | |
100 | LDFLAGS+=-m32 | |
101 | OP_CFLAGS=$(CFLAGS) -fno-delayed-branch -ffixed-i0 | |
102 | HELPER_CFLAGS=$(CFLAGS) -ffixed-i0 -mflat | |
103 | # -static is used to avoid g1/g3 usage by the dynamic linker | |
104 | LDFLAGS+=-Wl,-T,$(SRC_PATH)/sparc.ld -static | |
105 | endif | |
106 | ||
107 | ifeq ($(ARCH),sparc64) | |
108 | CFLAGS+=-m64 -ffixed-g1 -ffixed-g2 -ffixed-g3 -ffixed-g6 | |
109 | LDFLAGS+=-m64 | |
110 | OP_CFLAGS=$(CFLAGS) -fno-delayed-branch -ffixed-i0 | |
111 | endif | |
112 | ||
113 | ifeq ($(ARCH),alpha) | |
114 | # -msmall-data is not used because we want two-instruction relocations | |
115 | # for the constant constructions | |
116 | OP_CFLAGS=-Wall -O2 -g | |
117 | # Ensure there's only a single GP | |
118 | CFLAGS += -msmall-data | |
119 | LDFLAGS+=-Wl,-T,$(SRC_PATH)/alpha.ld | |
120 | endif | |
121 | ||
122 | ifeq ($(ARCH),ia64) | |
b8076a74 | 123 | CFLAGS += -mno-sdata |
626df76a | 124 | OP_CFLAGS=$(CFLAGS) |
b8076a74 | 125 | LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld |
626df76a FB |
126 | endif |
127 | ||
128 | ifeq ($(ARCH),arm) | |
ba68055e | 129 | OP_CFLAGS=$(CFLAGS) -mno-sched-prolog -fno-omit-frame-pointer |
626df76a FB |
130 | LDFLAGS+=-Wl,-T,$(SRC_PATH)/arm.ld |
131 | endif | |
132 | ||
38e584a0 FB |
133 | ifeq ($(ARCH),m68k) |
134 | OP_CFLAGS=$(CFLAGS) -fomit-frame-pointer | |
135 | LDFLAGS+=-Wl,-T,m68k.ld | |
136 | endif | |
137 | ||
626df76a FB |
138 | ifeq ($(HAVE_GCC3_OPTIONS),yes) |
139 | # very important to generate a return at the end of every operation | |
140 | OP_CFLAGS+=-fno-reorder-blocks -fno-optimize-sibling-calls | |
141 | endif | |
142 | ||
83fb7adf FB |
143 | ifeq ($(CONFIG_DARWIN),yes) |
144 | OP_CFLAGS+= -mdynamic-no-pic | |
e80cfcfc | 145 | LIBS+=-lmx |
83fb7adf FB |
146 | endif |
147 | ||
626df76a FB |
148 | ######################################################### |
149 | ||
d5249393 | 150 | DEFINES+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE |
626df76a | 151 | LIBS+=-lm |
b932caba FB |
152 | ifndef CONFIG_USER_ONLY |
153 | LIBS+=-lz | |
154 | endif | |
67b915a5 | 155 | ifdef CONFIG_WIN32 |
3db38e87 | 156 | LIBS+=-lwinmm -lws2_32 -liphlpapi |
67b915a5 | 157 | endif |
626df76a FB |
158 | |
159 | # profiling code | |
160 | ifdef TARGET_GPROF | |
161 | LDFLAGS+=-p | |
162 | main.o: CFLAGS+=-p | |
163 | endif | |
164 | ||
3035f7ff | 165 | OBJS= elfload.o main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o |
626df76a FB |
166 | ifeq ($(TARGET_ARCH), i386) |
167 | OBJS+= vm86.o | |
168 | endif | |
f72b519c | 169 | ifeq ($(TARGET_ARCH), arm) |
158142c2 | 170 | OBJS+=nwfpe/fpa11.o nwfpe/fpa11_cpdo.o \ |
f72b519c | 171 | nwfpe/fpa11_cpdt.o nwfpe/fpa11_cprt.o nwfpe/fpopcode.o nwfpe/single_cpdo.o \ |
a4f81979 | 172 | nwfpe/double_cpdo.o nwfpe/extended_cpdo.o arm-semi.o |
f72b519c | 173 | endif |
626df76a FB |
174 | SRCS:= $(OBJS:.o=.c) |
175 | OBJS+= libqemu.a | |
176 | ||
177 | # cpu emulator library | |
158142c2 | 178 | LIBOBJS=exec.o kqemu.o translate-op.o translate-all.o cpu-exec.o\ |
e3086fbf | 179 | translate.o op.o |
158142c2 FB |
180 | ifdef CONFIG_SOFTFLOAT |
181 | LIBOBJS+=fpu/softfloat.o | |
182 | else | |
183 | LIBOBJS+=fpu/softfloat-native.o | |
184 | endif | |
185 | DEFINES+=-I$(SRC_PATH)/fpu | |
626df76a FB |
186 | |
187 | ifeq ($(TARGET_ARCH), i386) | |
1e43adfc | 188 | LIBOBJS+=helper.o helper2.o |
f72b519c FB |
189 | ifeq ($(ARCH), i386) |
190 | LIBOBJS+=translate-copy.o | |
191 | endif | |
626df76a FB |
192 | endif |
193 | ||
0b0babc6 FB |
194 | ifeq ($(TARGET_ARCH), x86_64) |
195 | LIBOBJS+=helper.o helper2.o | |
196 | endif | |
197 | ||
67867308 | 198 | ifeq ($(TARGET_ARCH), ppc) |
728c9fd5 | 199 | LIBOBJS+= op_helper.o helper.o |
67867308 FB |
200 | endif |
201 | ||
6af0bf9c FB |
202 | ifeq ($(TARGET_ARCH), mips) |
203 | LIBOBJS+= op_helper.o helper.o | |
204 | endif | |
205 | ||
64b3ab24 | 206 | ifeq ($(TARGET_BASE_ARCH), sparc) |
e95c8d51 FB |
207 | LIBOBJS+= op_helper.o helper.o |
208 | endif | |
209 | ||
b7bcbe95 FB |
210 | ifeq ($(TARGET_BASE_ARCH), arm) |
211 | LIBOBJS+= op_helper.o | |
212 | endif | |
213 | ||
626df76a FB |
214 | # NOTE: the disassembler code is only needed for debugging |
215 | LIBOBJS+=disas.o | |
216 | ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386) | |
bc51c5c9 FB |
217 | USE_I386_DIS=y |
218 | endif | |
0b0babc6 | 219 | ifeq ($(findstring x86_64, $(TARGET_ARCH) $(ARCH)),x86_64) |
bc51c5c9 FB |
220 | USE_I386_DIS=y |
221 | endif | |
222 | ifdef USE_I386_DIS | |
626df76a FB |
223 | LIBOBJS+=i386-dis.o |
224 | endif | |
225 | ifeq ($(findstring alpha, $(TARGET_ARCH) $(ARCH)),alpha) | |
226 | LIBOBJS+=alpha-dis.o | |
227 | endif | |
228 | ifeq ($(findstring ppc, $(TARGET_ARCH) $(ARCH)),ppc) | |
229 | LIBOBJS+=ppc-dis.o | |
230 | endif | |
6af0bf9c FB |
231 | ifeq ($(findstring mips, $(TARGET_ARCH) $(ARCH)),mips) |
232 | LIBOBJS+=mips-dis.o | |
233 | endif | |
64b3ab24 | 234 | ifeq ($(findstring sparc, $(TARGET_BASE_ARCH) $(ARCH)),sparc) |
626df76a FB |
235 | LIBOBJS+=sparc-dis.o |
236 | endif | |
237 | ifeq ($(findstring arm, $(TARGET_ARCH) $(ARCH)),arm) | |
238 | LIBOBJS+=arm-dis.o | |
239 | endif | |
240 | ||
241 | ifeq ($(ARCH),ia64) | |
242 | OBJS += ia64-syscall.o | |
243 | endif | |
1fddef4b FB |
244 | ifdef CONFIG_GDBSTUB |
245 | OBJS+=gdbstub.o | |
246 | endif | |
626df76a | 247 | |
1e43adfc | 248 | all: $(PROGS) |
626df76a | 249 | |
1e43adfc | 250 | $(QEMU_USER): $(OBJS) |
626df76a FB |
251 | $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) |
252 | ifeq ($(ARCH),alpha) | |
253 | # Mark as 32 bit binary, i. e. it will be mapped into the low 31 bit of | |
254 | # the address space (31 bit so sign extending doesn't matter) | |
255 | echo -ne '\001\000\000\000' | dd of=qemu bs=1 seek=48 count=4 conv=notrunc | |
256 | endif | |
257 | ||
258 | # must use static linking to avoid leaving stuff in virtual address space | |
6a0f9e82 | 259 | VL_OBJS=vl.o osdep.o block.o readline.o monitor.o pci.o console.o |
de167e41 | 260 | VL_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o block-dmg.o block-bochs.o block-vpc.o block-vvfat.o |
a541f297 | 261 | |
85571bc7 | 262 | SOUND_HW = sb16.o |
7372f88d | 263 | AUDIODRV = audio.o noaudio.o wavaudio.o |
fb065187 FB |
264 | ifdef CONFIG_SDL |
265 | AUDIODRV += sdlaudio.o | |
266 | endif | |
267 | ifdef CONFIG_OSS | |
268 | AUDIODRV += ossaudio.o | |
269 | endif | |
270 | ||
271 | pc.o: DEFINES := -DUSE_SB16 $(DEFINES) | |
85571bc7 | 272 | |
fb065187 | 273 | ifdef CONFIG_ADLIB |
85571bc7 | 274 | SOUND_HW += fmopl.o adlib.o |
85571bc7 FB |
275 | endif |
276 | ||
102a52e4 | 277 | ifdef CONFIG_FMOD |
85571bc7 | 278 | AUDIODRV += fmodaudio.o |
102a52e4 FB |
279 | audio.o fmodaudio.o: DEFINES := -I$(CONFIG_FMOD_INC) $(DEFINES) |
280 | LIBS += $(CONFIG_FMOD_LIB) | |
85571bc7 FB |
281 | endif |
282 | ||
0b0babc6 | 283 | ifeq ($(TARGET_BASE_ARCH), i386) |
a541f297 | 284 | # Hardware support |
85571bc7 FB |
285 | VL_OBJS+= ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV) |
286 | VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o | |
6508fe59 | 287 | VL_OBJS+= cirrus_vga.o mixeng.o apic.o parallel.o |
67b915a5 | 288 | endif |
728c9fd5 | 289 | ifeq ($(TARGET_ARCH), ppc) |
85571bc7 | 290 | VL_OBJS+= ppc.o ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV) |
64201201 | 291 | VL_OBJS+= mc146818rtc.o serial.o i8259.o i8254.o fdc.o m48t59.o |
e68b9b2b | 292 | VL_OBJS+= ppc_prep.o ppc_chrp.o cuda.o adb.o openpic.o heathrow_pic.o mixeng.o |
a541f297 | 293 | endif |
6af0bf9c | 294 | ifeq ($(TARGET_ARCH), mips) |
3de388f6 FB |
295 | VL_OBJS+= mips_r4k.o dma.o vga.o serial.o ne2000.o i8259.o |
296 | #VL_OBJS+= #ide.o pckbd.o i8254.o fdc.o m48t59.o | |
6af0bf9c | 297 | endif |
64b3ab24 | 298 | ifeq ($(TARGET_BASE_ARCH), sparc) |
3475187d | 299 | ifeq ($(TARGET_ARCH), sparc64) |
83469015 FB |
300 | VL_OBJS+= sun4u.o ide.o ne2000.o pckbd.o vga.o |
301 | VL_OBJS+= fdc.o mc146818rtc.o serial.o m48t59.o | |
302 | VL_OBJS+= cirrus_vga.o parallel.o | |
303 | VL_OBJS+= magic-load.o | |
3475187d FB |
304 | else |
305 | VL_OBJS+= sun4m.o tcx.o lance.o iommu.o m48t08.o magic-load.o slavio_intctl.o slavio_timer.o slavio_serial.o slavio_misc.o fdc.o esp.o | |
306 | endif | |
e95c8d51 | 307 | endif |
a541f297 FB |
308 | ifdef CONFIG_GDBSTUB |
309 | VL_OBJS+=gdbstub.o | |
728c9fd5 | 310 | endif |
626df76a FB |
311 | ifdef CONFIG_SDL |
312 | VL_OBJS+=sdl.o | |
de5eaa64 | 313 | endif |
5b0753e0 FB |
314 | ifdef CONFIG_COCOA |
315 | VL_OBJS+=cocoa.o | |
316 | COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa | |
317 | endif | |
7c1f25b4 FB |
318 | ifdef CONFIG_SLIRP |
319 | DEFINES+=-I$(SRC_PATH)/slirp | |
320 | SLIRP_OBJS=cksum.o if.o ip_icmp.o ip_input.o ip_output.o \ | |
321 | slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o \ | |
c7f74643 | 322 | tcp_subr.o tcp_timer.o udp.o bootp.o debug.o tftp.o |
7c1f25b4 | 323 | VL_OBJS+=$(addprefix slirp/, $(SLIRP_OBJS)) |
626df76a FB |
324 | endif |
325 | ||
c321f673 FB |
326 | VL_LDFLAGS= |
327 | # specific flags are needed for non soft mmu emulator | |
c321f673 FB |
328 | ifdef CONFIG_STATIC |
329 | VL_LDFLAGS+=-static | |
330 | endif | |
de5eaa64 FB |
331 | ifndef CONFIG_SOFTMMU |
332 | VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/i386-vl.ld | |
333 | endif | |
83fb7adf | 334 | ifndef CONFIG_DARWIN |
11d9f695 FB |
335 | ifndef CONFIG_WIN32 |
336 | VL_LIBS=-lutil | |
337 | endif | |
83fb7adf | 338 | endif |
e3086fbf FB |
339 | ifdef TARGET_GPROF |
340 | vl.o: CFLAGS+=-p | |
341 | VL_LDFLAGS+=-p | |
342 | endif | |
c321f673 | 343 | |
b8076a74 FB |
344 | ifeq ($(ARCH),ia64) |
345 | VL_LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld | |
346 | endif | |
347 | ||
1e43adfc | 348 | $(QEMU_SYSTEM): $(VL_OBJS) libqemu.a |
5b0753e0 FB |
349 | $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS) |
350 | ||
351 | cocoa.o: cocoa.m | |
352 | $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $< | |
626df76a | 353 | |
3d11d0eb | 354 | sdl.o: sdl.c keymaps.c sdl_keysym.h |
626df76a FB |
355 | $(CC) $(CFLAGS) $(DEFINES) $(SDL_CFLAGS) -c -o $@ $< |
356 | ||
9f059eca FB |
357 | sdlaudio.o: sdlaudio.c |
358 | $(CC) $(CFLAGS) $(DEFINES) $(SDL_CFLAGS) -c -o $@ $< | |
359 | ||
626df76a | 360 | depend: $(SRCS) |
16e9b7de | 361 | $(CC) -MM $(CFLAGS) $(DEFINES) $^ 1>.depend |
626df76a FB |
362 | |
363 | # libqemu | |
364 | ||
365 | libqemu.a: $(LIBOBJS) | |
366 | rm -f $@ | |
367 | $(AR) rcs $@ $(LIBOBJS) | |
368 | ||
1e43adfc | 369 | translate.o: translate.c gen-op.h opc.h cpu.h |
626df76a | 370 | |
158142c2 FB |
371 | translate-all.o: translate-all.c opc.h cpu.h |
372 | ||
373 | translate-op.o: translate-all.c op.h opc.h cpu.h | |
626df76a | 374 | |
1e43adfc | 375 | op.h: op.o $(DYNGEN) |
626df76a FB |
376 | $(DYNGEN) -o $@ $< |
377 | ||
1e43adfc | 378 | opc.h: op.o $(DYNGEN) |
626df76a FB |
379 | $(DYNGEN) -c -o $@ $< |
380 | ||
1e43adfc | 381 | gen-op.h: op.o $(DYNGEN) |
626df76a FB |
382 | $(DYNGEN) -g -o $@ $< |
383 | ||
1e43adfc | 384 | op.o: op.c |
626df76a FB |
385 | $(CC) $(OP_CFLAGS) $(DEFINES) -c -o $@ $< |
386 | ||
1e43adfc | 387 | helper.o: helper.c |
626df76a FB |
388 | $(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $< |
389 | ||
0b0babc6 | 390 | ifeq ($(TARGET_BASE_ARCH), i386) |
664e0f19 | 391 | op.o: op.c opreg_template.h ops_template.h ops_template_mem.h ops_mem.h ops_sse.h |
1e43adfc FB |
392 | endif |
393 | ||
394 | ifeq ($(TARGET_ARCH), arm) | |
395 | op.o: op.c op_template.h | |
396 | endif | |
626df76a | 397 | |
64b3ab24 | 398 | ifeq ($(TARGET_BASE_ARCH), sparc) |
3475187d FB |
399 | op.o: op.c op_template.h op_mem.h fop_template.h fbranch_template.h |
400 | magic_load.o: elf_op.h | |
1e43adfc | 401 | endif |
626df76a | 402 | |
728c9fd5 FB |
403 | ifeq ($(TARGET_ARCH), ppc) |
404 | op.o: op.c op_template.h op_mem.h | |
405 | op_helper.o: op_helper_mem.h | |
3fc6c082 | 406 | translate.o: translate.c translate_init.c |
728c9fd5 FB |
407 | endif |
408 | ||
6af0bf9c FB |
409 | ifeq ($(TARGET_ARCH), mips) |
410 | op.o: op.c op_template.c op_mem.c | |
411 | op_helper.o: op_helper_mem.c | |
412 | endif | |
413 | ||
85571bc7 FB |
414 | mixeng.o: mixeng.c mixeng.h mixeng_template.h |
415 | ||
626df76a FB |
416 | %.o: %.c |
417 | $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $< | |
418 | ||
f72b519c FB |
419 | %.o: %.S |
420 | $(CC) $(DEFINES) -c -o $@ $< | |
421 | ||
626df76a | 422 | clean: |
e362b55a | 423 | rm -f *.o *.a *~ $(PROGS) gen-op.h opc.h op.h nwfpe/*.o slirp/*.o fpu/*.o |
1e43adfc FB |
424 | |
425 | install: all | |
9b14bb04 | 426 | ifneq ($(PROGS),) |
11d9f695 | 427 | install -m 755 -s $(PROGS) "$(bindir)" |
9b14bb04 | 428 | endif |
626df76a FB |
429 | |
430 | ifneq ($(wildcard .depend),) | |
431 | include .depend | |
432 | endif |