Makefile 4.19 KB
Newer Older
1
FLAGS = -O2 -Wall
Sergio Costas's avatar
Sergio Costas committed
2 3 4 5

CC=g++ -c $(FLAGS)
CPP=g++ -c $(FLAGS)
LN=g++
Sergio Costas's avatar
Sergio Costas committed
6

7 8 9
CFLAGS += `pkg-config --cflags sdl2 libpulse-simple alsa` -D D_SOUND_PULSE -D D_SOUND_ALSA -D D_SOUND_OSS
CPPFLAGS += `pkg-config --cflags sdl2 libpulse-simple alsa` -D D_SOUND_PULSE -D D_SOUND_ALSA -D D_SOUND_OSS
LDFLAGS += `pkg-config --libs sdl2 libpulse-simple alsa`
Sergio Costas's avatar
Sergio Costas committed
10 11


12
fbzx: cargador.o cmdline.o computer.o emulator.o keyboard.o llscreen.o llsound.o menus.o microdrive.o mouse.o osd.o screen.o signals.o spk_ay.o tape.o Z80free.o Z80free_codes.o Z80free_codesCB.o Z80free_codesED.o Z80free_codesDD.o Z80free_codesFD.o Z80free_codesDDCB.o Z80free_codesFDCB.o
13
	$(LN) -o fbzx cargador.o cmdline.o computer.o emulator.o keyboard.o llscreen.o llsound.o menus.o microdrive.o mouse.o osd.o screen.o signals.o spk_ay.o tape.o Z80free.o Z80free_codes.o Z80free_codesCB.o Z80free_codesED.o Z80free_codesDD.o Z80free_codesFD.o Z80free_codesDDCB.o Z80free_codesFDCB.o  $(LDFLAGS)
Sergio Costas's avatar
Sergio Costas committed
14 15

Z80free.o: z80free/Z80free.c z80free/Z80free.h
Sergio Costas's avatar
Sergio Costas committed
16
	$(CC) -o Z80free.o z80free/Z80free.c
Sergio Costas's avatar
Sergio Costas committed
17 18

Z80free_codes.o: z80free/Z80free_codes.c z80free/Z80free.h
Sergio Costas's avatar
Sergio Costas committed
19
	$(CC) -o Z80free_codes.o z80free/Z80free_codes.c
20

Sergio Costas's avatar
Sergio Costas committed
21
Z80free_codesCB.o: z80free/Z80free_codesCB.c z80free/Z80free.h
Sergio Costas's avatar
Sergio Costas committed
22
	$(CC) -o Z80free_codesCB.o z80free/Z80free_codesCB.c
Sergio Costas's avatar
Sergio Costas committed
23 24

Z80free_codesED.o: z80free/Z80free_codesED.c z80free/Z80free.h
Sergio Costas's avatar
Sergio Costas committed
25
	$(CC) -o Z80free_codesED.o z80free/Z80free_codesED.c
26

Sergio Costas's avatar
Sergio Costas committed
27
Z80free_codesDD.o: z80free/Z80free_codesDD.c z80free/Z80free.h
Sergio Costas's avatar
Sergio Costas committed
28
	$(CC) -o Z80free_codesDD.o z80free/Z80free_codesDD.c
29

Sergio Costas's avatar
Sergio Costas committed
30
Z80free_codesFD.o: z80free/Z80free_codesFD.c z80free/Z80free.h
Sergio Costas's avatar
Sergio Costas committed
31
	$(CC) -o Z80free_codesFD.o z80free/Z80free_codesFD.c
Sergio Costas's avatar
Sergio Costas committed
32 33

Z80free_codesDDCB.o: z80free/Z80free_codesDDCB.c z80free/Z80free.h
Sergio Costas's avatar
Sergio Costas committed
34
	$(CC) -o Z80free_codesDDCB.o z80free/Z80free_codesDDCB.c
35

Sergio Costas's avatar
Sergio Costas committed
36
Z80free_codesFDCB.o: z80free/Z80free_codesFDCB.c z80free/Z80free.h
Sergio Costas's avatar
Sergio Costas committed
37 38
	$(CC) -o Z80free_codesFDCB.o z80free/Z80free_codesFDCB.c

39
cargador.o: cargador.cpp spk_ay.hh keyboard.hh emulator.hh screen.hh osd.hh z80free/Z80free.h computer.hh signals.hh llscreen.hh tape.hh cargador.hh
40
	$(CPP) $(CPPFLAGS) -o cargador.o cargador.cpp
Sergio Costas's avatar
Sergio Costas committed
41

42 43 44
cmdline.o: cmdline.cpp cmdline.hh
	$(CPP) $(CPPFLAGS) -o cmdline.o cmdline.cpp

45
computer.o: computer.cpp z80free/Z80free.h llsound.hh mouse.hh keyboard.hh computer.hh screen.hh signals.hh llscreen.hh tape.hh emulator.hh osd.hh spk_ay.hh microdrive.hh menus.hh
46
	$(CPP) $(CPPFLAGS) -o computer.o computer.cpp
Sergio Costas's avatar
Sergio Costas committed
47

48
emulator.o: emulator.cpp mouse.hh z80free/Z80free.h spk_ay.hh keyboard.hh llsound.hh cmdline.hh computer.hh screen.hh signals.hh llscreen.hh tape.hh emulator.hh osd.hh microdrive.hh menus.hh cargador.hh
49
	$(CPP) $(CPPFLAGS) -o emulator.o emulator.cpp
Sergio Costas's avatar
Sergio Costas committed
50

51
keyboard.o: keyboard.cpp menus.hh llscreen.hh llsound.hh computer.hh screen.hh signals.hh z80free/Z80free.h tape.hh emulator.hh osd.hh keyboard.hh
52 53
	$(CPP) $(CPPFLAGS) -o keyboard.o keyboard.cpp

54
llscreen.o: llscreen.cpp osd.hh font.h llscreen.hh
55 56
	$(CPP) $(CPPFLAGS) -o llscreen.o llscreen.cpp

57 58 59
llsound.o: llsound.cpp emulator.hh screen.hh osd.hh z80free/Z80free.h computer.hh signals.hh llscreen.hh tape.hh llsound.hh
	$(CPP) $(CPPFLAGS) -o llsound.o llsound.cpp

60
menus.o: menus.cpp mouse.hh z80free/Z80free.h spk_ay.hh microdrive.hh keyboard.hh llsound.hh llscreen.hh menus.hh tape.hh signals.hh emulator.hh screen.hh osd.hh computer.hh cargador.hh
61
	$(CPP) $(CPPFLAGS) -o menus.o menus.cpp
Sergio Costas's avatar
Sergio Costas committed
62

63
microdrive.o: microdrive.cpp osd.hh emulator.hh screen.hh z80free/Z80free.h computer.hh signals.hh llscreen.hh tape.hh microdrive.hh
64
	$(CPP) $(CPPFLAGS) -o microdrive.o microdrive.cpp
Sergio Costas's avatar
Sergio Costas committed
65

66 67 68
mouse.o: mouse.cpp osd.hh keyboard.hh emulator.hh screen.hh z80free/Z80free.h computer.hh signals.hh llscreen.hh tape.hh mouse.hh
	$(CPP) $(CPPFLAGS) -o mouse.o mouse.cpp

69 70 71
osd.o: osd.cpp osd.hh
	$(CPP) $(CPPFLAGS) -o osd.o osd.cpp

72
screen.o: screen.cpp keyboard.hh computer.hh screen.hh signals.hh llscreen.hh z80free/Z80free.h tape.hh emulator.hh osd.hh
73 74
	$(CPP) $(CPPFLAGS) -o screen.o screen.cpp

75 76 77
signals.o: signals.cpp signals.hh
	$(CPP) $(CPPFLAGS) -o signals.o signals.cpp

78
spk_ay.o: spk_ay.cpp spk_ay.hh llsound.hh computer.hh screen.hh signals.hh llscreen.hh z80free/Z80free.h tape.hh emulator.hh osd.hh
79
	$(CPP) $(CPPFLAGS) -o spk_ay.o spk_ay.cpp
Sergio Costas's avatar
Sergio Costas committed
80

81
tape.o: tape.cpp z80free/Z80free.h tape.hh signals.hh emulator.hh screen.hh osd.hh computer.hh llscreen.hh
82
	$(CPP) $(CPPFLAGS) -o tape.o tape.cpp
83