2017-03-03 07:47:14 +00:00
|
|
|
TARGET:=tme
|
|
|
|
MUSASHI_GEN_SRC:=musashi/m68kops.c musashi/m68kopac.c musashi/m68kopdm.c musashi/m68kopnz.c
|
2017-03-03 11:42:48 +00:00
|
|
|
OBJ:=$(MUSASHI_GEN_SRC:%.x=%.o) musashi/m68kcpu.o main.o emu.o disp.o iwm.o
|
2017-03-03 07:47:14 +00:00
|
|
|
#musashi/m68kdasm.o
|
2017-03-03 08:29:47 +00:00
|
|
|
CFLAGS=-Wall -I. -I./musashi -ggdb `sdl2-config --cflags`
|
|
|
|
LDFLAGS=`sdl2-config --libs`
|
2017-03-03 07:47:14 +00:00
|
|
|
|
|
|
|
$(TARGET): $(OBJ)
|
|
|
|
$(CC) -o $(@) $(CFLAGS) $(LDFLAGS) $^
|
|
|
|
|
|
|
|
$(MUSASHI_GEN_SRC): musashi/m68kmake
|
|
|
|
cd musashi; ../$(^)
|
|
|
|
|
|
|
|
musashi/m68kmake: musashi/m68kmake.c
|
|
|
|
$(CC) -o $@ $^
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(MUSASHI_GEN_SRC) musashi/m68kmake
|
|
|
|
rm -f $(OBJ) $(TARGET)
|