Annotation of frontvm/cpu/Makefile, revision 1.1.1.1

1.1       root        1: # Makefile for Hatari's UAE CPU.
                      2: 
                      3: # The native C compiler - normaly the same as $(CC) unless you use a cross
                      4: # compiler.
                      5: HOSTCC = $(CC)
                      6: 
                      7: # Set flags passed to the compiler (e.g. optimization flags)
                      8: CMPLRFLAGS = -g -O2 -Wall -Wno-unused
                      9: 
                     10: # SDL-Library configuration:
                     11: SDLLIB = $(shell sdl-config --libs)
                     12: SDLFLAGS = $(shell sdl-config --cflags)
                     13: 
                     14: 
                     15: CFLAGS = -I. $(CMPLRFLAGS) $(SDLFLAGS)
                     16: 
                     17: 
                     18: CPUCSRCS = hatari-glue.c memory.c newcpu.c readcpu.c cpustbl.c cpudefs.c
                     19: 
                     20: #CPUEMUSRCS = cpufast1.s cpufast2.s cpufast3.s cpufast4.s \
                     21: #    cpufast5.s cpufast6.s cpufast7.s cpufast8.s
                     22: CPUEMUSRCS = cpuemu1.c cpuemu2.c cpuemu3.c cpuemu4.c \
                     23:     cpuemu5.c cpuemu6.c cpuemu7.c cpuemu8.c
                     24: 
                     25: CPU_OBS = $(CPUCSRCS:.c=.o) $(CPUEMUSRCS:.c=.o)
                     26: 
                     27: 
                     28: all: cpudefs.c cpuemu.c $(CPU_OBS)
                     29: 
                     30: 
                     31: clean:
                     32:        rm -f *.o gencpu build68k cpuopti cpudefs.c cpustbl.c cputbl.h cpuemu.c
                     33: 
                     34: build68k: build68k.c
                     35:        $(HOSTCC) $(CFLAGS) -o build68k build68k.c
                     36: 
                     37: cpudefs.c: ./build68k ./table68k
                     38:        ./build68k <./table68k >cpudefs.c
                     39: 
                     40: gencpu.o: gencpu.c
                     41:        $(HOSTCC) $(CFLAGS) -c -o gencpu.o gencpu.c
                     42: 
                     43: gencpu: gencpu.o readcpu.c cpudefs.c
                     44:        $(HOSTCC) $(CFLAGS) $(LDFLAGS) -o gencpu gencpu.o readcpu.c cpudefs.c
                     45: 
                     46: cpuemu.c: gencpu
                     47:        ./gencpu
                     48: 
                     49: cpustbl.c: cpuemu.c
                     50: cputbl.h: cpuemu.c
                     51: 
                     52: #cpuopti: cpuopti.o
                     53: #      $(HOSTCC) $(LDFLAGS) -o cpuopti cpuopti.o
                     54: 
                     55: 
                     56: # this is for people with low memory (is there a way do do this with a single rule ?)
                     57: cpuemu1.o: cpuemu.c
                     58:        $(CC) -DPART_1 $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $< -o $@
                     59: cpuemu2.o: cpuemu.c
                     60:        $(CC) -DPART_2 $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $< -o $@
                     61: cpuemu3.o: cpuemu.c
                     62:        $(CC) -DPART_3 $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $< -o $@
                     63: cpuemu4.o: cpuemu.c
                     64:        $(CC) -DPART_4 $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $< -o $@
                     65: cpuemu5.o: cpuemu.c
                     66:        $(CC) -DPART_5 $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $< -o $@
                     67: cpuemu6.o: cpuemu.c
                     68:        $(CC) -DPART_6 $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $< -o $@
                     69: cpuemu7.o: cpuemu.c
                     70:        $(CC) -DPART_7 $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $< -o $@
                     71: cpuemu8.o: cpuemu.c
                     72:        $(CC) -DPART_8 $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $< -o $@
                     73: 
                     74: 
                     75: cpufast1.s: cpuemu.c cpuopti
                     76:        $(CC) -DPART_1 $(INCLUDES) -S $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $(NO_SCHED_CFLAGS) $< -o cputmp1.s
                     77:        ./cpuopti <cputmp1.s >$@
                     78:        rm cputmp1.s
                     79: cpufast2.s: cpuemu.c cpuopti
                     80:        $(CC) -DPART_2 $(INCLUDES) -S $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $(NO_SCHED_CFLAGS) $< -o cputmp2.s
                     81:        ./cpuopti <cputmp2.s >$@
                     82:        rm cputmp2.s
                     83: cpufast3.s: cpuemu.c cpuopti
                     84:        $(CC) -DPART_3 $(INCLUDES) -S $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $(NO_SCHED_CFLAGS) $< -o cputmp3.s
                     85:        ./cpuopti <cputmp3.s >$@
                     86:        rm cputmp3.s
                     87: cpufast4.s: cpuemu.c cpuopti
                     88:        $(CC) -DPART_4 $(INCLUDES) -S $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $(NO_SCHED_CFLAGS) $< -o cputmp4.s
                     89:        ./cpuopti <cputmp4.s >$@
                     90:        rm cputmp4.s
                     91: cpufast5.s: cpuemu.c cpuopti
                     92:        $(CC) -DPART_5 $(INCLUDES) -S $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $(NO_SCHED_CFLAGS) $< -o cputmp5.s
                     93:        ./cpuopti <cputmp5.s >$@
                     94:        rm cputmp5.s
                     95: cpufast6.s: cpuemu.c cpuopti
                     96:        $(CC) -DPART_6 $(INCLUDES) -S $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $(NO_SCHED_CFLAGS) $< -o cputmp6.s
                     97:        ./cpuopti <cputmp6.s >$@
                     98:        rm cputmp6.s
                     99: cpufast7.s: cpuemu.c cpuopti
                    100:        $(CC) -DPART_7 $(INCLUDES) -S $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $(NO_SCHED_CFLAGS) $< -o cputmp7.s
                    101:        ./cpuopti <cputmp7.s >$@
                    102:        rm cputmp7.s
                    103: cpufast8.s: cpuemu.c cpuopti
                    104:        $(CC) -DPART_8 $(INCLUDES) -S $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $(NO_SCHED_CFLAGS) $< -o cputmp8.s
                    105:        ./cpuopti <cputmp8.s >$@
                    106:        rm cputmp8.s
                    107: 
                    108: 
                    109: newcpu.o: sysdeps.h hatari-glue.h maccess.h memory.h newcpu.h events.h

unix.superglobalmegacorp.com