-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile2
31 lines (19 loc) · 914 Bytes
/
makefile2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# use "make -f makefile.unix RELEASE=TRUE" to create release executable
CC = g++
GFLAGS = -Wall -Wstrict-prototypes `sdl-config --cflags`
CFLAGS = $(GFLAGS) -mcpu=arm1176jzf-s -march=armv6zk -O2 -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -s
LIBS = -L/usr/lib/arm-linux-gnueabihf -lX11 -lz -L/opt/vc/lib -lSDL -lpthread -ldl -lGLESv2 -lEGL
cpc4rpi: cpc4rpi.cpp crtc.o fdc.o psg.o tape.o z80.o cap32.h z80.h
$(CC) $(CFLAGS) $(IPATHS) -o cpc4rpi cpc4rpi.cpp crtc.o fdc.o psg.o tape.o z80.o $(LIBS)
crtc.o: crtc.c draw_8bpp.c draw_16bpp.c draw_24bpp.c draw_32bpp.c cap32.h crtc.h z80.h
$(CC) $(CFLAGS) -c crtc.c
fdc.o: fdc.c cap32.h z80.h
$(CC) $(CFLAGS) -c fdc.c
psg.o: psg.c cap32.h z80.h
$(CC) $(CFLAGS) -c psg.c
tape.o: tape.c cap32.h tape.h z80.h
$(CC) $(CFLAGS) -c tape.c
z80.o: z80.c z80.h cap32.h
$(CC) $(CFLAGS) -c z80.c
clean:
rm *.o cpc4rpi