Makefile 2.98 KB
Newer Older
Sergio Costas's avatar
Sergio Costas committed
1
CC=g++ -c
2
CPP=g++ -c -g
Sergio Costas's avatar
Sergio Costas committed
3
LN=g++
Sergio Costas's avatar
Sergio Costas committed
4 5

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


10 11
fbzx: cargador.o computer.o emulator.o llscreen.o menus.o microdrive.o sound.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 
	$(LN) -o fbzx cargador.o computer.o emulator.o llscreen.o menus.o microdrive.o sound.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
12 13

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

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

Z80free_codesED.o: z80free/Z80free_codesED.c z80free/Z80free.h
Sergio Costas's avatar
Sergio Costas committed
23
	$(CC) -o Z80free_codesED.o z80free/Z80free_codesED.c
Sergio Costas's avatar
Sergio Costas committed
24 25
	
Z80free_codesDD.o: z80free/Z80free_codesDD.c z80free/Z80free.h
Sergio Costas's avatar
Sergio Costas committed
26
	$(CC) -o Z80free_codesDD.o z80free/Z80free_codesDD.c
Sergio Costas's avatar
Sergio Costas committed
27 28
	
Z80free_codesFD.o: z80free/Z80free_codesFD.c z80free/Z80free.h
Sergio Costas's avatar
Sergio Costas committed
29
	$(CC) -o Z80free_codesFD.o z80free/Z80free_codesFD.c
Sergio Costas's avatar
Sergio Costas committed
30 31

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

37
cargador.o: cargador.cpp emulator.hh z80free/Z80free.h computer.hh llscreen.hh tape.hh cargador.hh
38
	$(CPP) $(CPPFLAGS) -o cargador.o cargador.cpp
Sergio Costas's avatar
Sergio Costas committed
39

Sergio Costas's avatar
Sergio Costas committed
40
computer.o: computer.cpp z80free/Z80free.h computer.hh llscreen.hh emulator.hh tape.hh spk_ay.hh sound.hh microdrive.hh menus.hh
41
	$(CPP) $(CPPFLAGS) -o computer.o computer.cpp
Sergio Costas's avatar
Sergio Costas committed
42

43
emulator.o: emulator.cpp sound.hh microdrive.hh z80free/Z80free.h menus.hh llscreen.hh emulator.hh computer.hh tape.hh cargador.hh
44
	$(CPP) $(CPPFLAGS) -o emulator.o emulator.cpp
Sergio Costas's avatar
Sergio Costas committed
45

46
llscreen.o: llscreen.cpp font.h llscreen.hh emulator.hh z80free/Z80free.h computer.hh tape.hh
47 48 49
	$(CPP) $(CPPFLAGS) -o llscreen.o llscreen.cpp

menus.o: menus.cpp llscreen.hh emulator.hh z80free/Z80free.h computer.hh tape.hh menus.hh cargador.hh
50
	$(CPP) $(CPPFLAGS) -o menus.o menus.cpp
Sergio Costas's avatar
Sergio Costas committed
51

52
microdrive.o: microdrive.cpp emulator.hh z80free/Z80free.h computer.hh llscreen.hh tape.hh microdrive.hh
53
	$(CPP) $(CPPFLAGS) -o microdrive.o microdrive.cpp
Sergio Costas's avatar
Sergio Costas committed
54

55
sound.o: sound.cpp sound.hh emulator.hh z80free/Z80free.h computer.hh llscreen.hh tape.hh
56
	$(CPP) $(CPPFLAGS) -o sound.o sound.cpp
Sergio Costas's avatar
Sergio Costas committed
57

58
spk_ay.o: spk_ay.cpp sound.hh emulator.hh z80free/Z80free.h computer.hh llscreen.hh tape.hh
59
	$(CPP) $(CPPFLAGS) -o spk_ay.o spk_ay.cpp
Sergio Costas's avatar
Sergio Costas committed
60

61
tape.o: tape.cpp z80free/Z80free.h tape.hh emulator.hh computer.hh llscreen.hh
62
	$(CPP) $(CPPFLAGS) -o tape.o tape.cpp
Sergio Costas's avatar
Sergio Costas committed
63