-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.unix
41 lines (28 loc) · 1.02 KB
/
makefile.unix
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
31
32
33
34
35
36
37
38
39
40
41
# makefile for compiling native unix builds
# use "make -f makefile.unix RELEASE=TRUE" to create release executable
CC = g++
GFLAGS = -Wall `sdl-config --cflags`
ifdef RELEASE
CFLAGS = $(GFLAGS) -O2 -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -s
else
CFLAGS = $(GFLAGS) -gstabs+
endif
LIBS = `sdl-config --libs` -lz
cap32: cap32.cpp crtc.o fdc.o glfuncs.o psg.o tape.o video.o z80.o cap32.h z80.h
$(CC) $(CFLAGS) $(IPATHS) -o cap32 cap32.cpp crtc.o fdc.o glfuncs.o psg.o tape.o video.o z80.o $(LIBS)
crtc.o: crtc.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
glfuncs.o: glfuncs.cpp glfuncs.h glfunclist.h
$(CC) $(CFLAGS) -c glfuncs.cpp
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
video.o: video.cpp video.h
$(CC) $(CFLAGS) -c video.cpp
z80.o: z80.c z80.h cap32.h
$(CC) $(CFLAGS) -c z80.c
clean:
rm *.o cap32