Mercurial > repos > blastem
comparison Makefile @ 570:76bba9ffe351
Initial stab at separating the generic parts of the 68K core from the host-cpu specific parts.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 02 Mar 2014 16:34:29 -0800 |
parents | 19e517735215 |
children | 29d99db6f55d |
comparison
equal
deleted
inserted
replaced
569:9b7fcf748be0 | 570:76bba9ffe351 |
---|---|
3 else | 3 else |
4 LIBS=sdl glew gl | 4 LIBS=sdl glew gl |
5 endif | 5 endif |
6 LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS)) | 6 LDFLAGS:=-lm $(shell pkg-config --libs $(LIBS)) |
7 ifdef DEBUG | 7 ifdef DEBUG |
8 CFLAGS:=-ggdb -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type | 8 CFLAGS:=-ggdb -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration |
9 else | 9 else |
10 CFLAGS:=-O2 -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type | 10 CFLAGS:=-O2 -std=gnu99 $(shell pkg-config --cflags-only-I $(LIBS)) -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration |
11 endif | 11 endif |
12 | 12 |
13 ifdef PROFILE | 13 ifdef PROFILE |
14 CFLAGS+= -pg | 14 CFLAGS+= -pg |
15 LDFLAGS+= -pg | 15 LDFLAGS+= -pg |
23 endif | 23 endif |
24 | 24 |
25 | 25 |
26 | 26 |
27 TRANSOBJS=gen.o backend.o mem.o | 27 TRANSOBJS=gen.o backend.o mem.o |
28 M68KOBJS=68kinst.o m68k_to_x86.o | 28 M68KOBJS=68kinst.o m68k_core.o |
29 ifeq ($(CPU),x86_64) | 29 ifeq ($(CPU),x86_64) |
30 M68KOBJS+= runtime.o | 30 M68KOBJS+= runtime.o m68k_core_x86.o |
31 TRANSOBJS+= gen_x86.o backend_x86.o | 31 TRANSOBJS+= gen_x86.o backend_x86.o |
32 else | 32 else |
33 ifeq ($(CPU),i686) | 33 ifeq ($(CPU),i686) |
34 M68KOBJS+= runtime_32.o | 34 M68KOBJS+= runtime_32.o m68k_core_x86.o |
35 TRANSOBJS+= gen_x86.o backend_x86.o | 35 TRANSOBJS+= gen_x86.o backend_x86.o |
36 NOZ80:=1 | 36 NOZ80:=1 |
37 endif | 37 endif |
38 endif | 38 endif |
39 | 39 |
100 $(CC) -o test_arm test_arm.o gen_arm.o mem.o gen.o | 100 $(CC) -o test_arm test_arm.o gen_arm.o mem.o gen.o |
101 | 101 |
102 gen_fib : gen_fib.o gen_x86.o mem.o | 102 gen_fib : gen_fib.o gen_x86.o mem.o |
103 $(CC) -o gen_fib gen_fib.o gen_x86.o mem.o | 103 $(CC) -o gen_fib gen_fib.o gen_x86.o mem.o |
104 | 104 |
105 offsets : offsets.c z80_to_x86.h m68k_to_x86.h | 105 offsets : offsets.c z80_to_x86.h m68k_core.h |
106 $(CC) -o offsets offsets.c | 106 $(CC) -o offsets offsets.c |
107 | 107 |
108 %.o : %.S | 108 %.o : %.S |
109 $(CC) -c -o $@ $< | 109 $(CC) -c -o $@ $< |
110 | 110 |