6 CFLAGS=-Wall -O2 -g -fomit-frame-pointer
10 DEFINES=-DHAVE_BYTESWAP_H
14 GCC_LIBS_DIR=/usr/netgem/tools/lib/gcc-lib/powerpc-linux/2.95.2
15 DIST=/home/fbe/nsv/dist/hw/n6-dtt
16 CC=powerpc-linux-gcc -msoft-float
17 CFLAGS=-Wall -pipe -O2 -mcpu=405 -mbig -nostdinc -g -I$(GCC_LIBS_DIR)/include -I$(DIST)/include
19 CRT1=$(LIBS_DIR)/crt1.o
20 CRTI=$(LIBS_DIR)/crti.o
21 CRTN=$(LIBS_DIR)/crtn.o
22 CRTBEGIN=$(GCC_LIBS_DIR)/crtbegin.o
23 CRTEND=$(GCC_LIBS_DIR)/crtend.o
24 LDFLAGS=-static -g -nostdlib $(CRT1) $(CRTI) $(CRTBEGIN)
25 LIBS=-L$(LIBS_DIR) -ltinyc -lgcc $(CRTEND) $(CRTN)
26 DEFINES=-Dsocklen_t=int
29 #########################################################
31 DEFINES+=-D_GNU_SOURCE -DGEMU -DDOSEMU -DNO_TRACE_MSGS
32 DEFINES+=-DCONFIG_PREFIX=\"/usr/local\"
36 OBJS= i386/fp87.o i386/interp_main.o i386/interp_modrm.o i386/interp_16_32.o \
37 i386/interp_32_16.o i386/interp_32_32.o i386/emu-utils.o \
38 i386/dis8086.o i386/emu-ldt.o
39 OBJS+=translate-i386.o op-i386.o
40 OBJS+= elfload.o main.o thunk.o syscall.o
46 $(CC) -Wl,-T,$(LDSCRIPT) $(LDFLAGS) -o $@ $^ $(LIBS)
49 $(CC) -MM $(CFLAGS) $^ 1>.depend
52 i386/interp_32_32.o: i386/interp_32_32.c i386/interp_gen.h
54 i386/interp_gen.h: i386/gencode
57 i386/gencode: i386/gencode.c
58 $(CC) -O2 -Wall -g $< -o $@
62 $(HOST_CC) -O2 -Wall -g $< -o $@
64 translate-i386.o: translate-i386.c op-i386.h cpu-i386.h
66 op-i386.h: op-i386.o dyngen
69 op-i386.o: op-i386.c opreg_template.h ops_template.h
70 $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
73 $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
76 rm -f *.o *~ i386/*.o i386/*~ gemu TAGS
78 # various test targets
83 etags *.[ch] i386/*.[ch]
85 ifneq ($(wildcard .depend),)