-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.mingw
67 lines (59 loc) · 1.6 KB
/
Makefile.mingw
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
EXEEXT = .exe
OBJEXT = .o
DEFINES =
CFLAGS = -O2 -Isrc -Isrc/libspectrum -Wall
CXXFLAGS = -O2 -Isrc -Isrc/libspectrum -Wall
SRC = \
src/libspectrum/bzip2.c \
src/libspectrum/creator.c \
src/libspectrum/crypto.c \
src/libspectrum/csw.c \
src/libspectrum/dck.c \
src/libspectrum/garray.c \
src/libspectrum/ghash.c \
src/libspectrum/gslist.c \
src/libspectrum/ide.c \
src/libspectrum/libspectrum.c \
src/libspectrum/memory.c \
src/libspectrum/microdrive.c \
src/libspectrum/plusd.c \
src/libspectrum/pzx_read.c \
src/libspectrum/rzx.c \
src/libspectrum/sna.c \
src/libspectrum/snapshot.c \
src/libspectrum/snap_accessors.c \
src/libspectrum/snp.c \
src/libspectrum/sp.c \
src/libspectrum/symbol_table.c \
src/libspectrum/szx.c \
src/libspectrum/tap.c \
src/libspectrum/tape.c \
src/libspectrum/tape_accessors.c \
src/libspectrum/tape_block.c \
src/libspectrum/tape_set.c \
src/libspectrum/timings.c \
src/libspectrum/tzx_read.c \
src/libspectrum/tzx_write.c \
src/libspectrum/utilities.c \
src/libspectrum/warajevo_read.c \
src/libspectrum/wav.c \
src/libspectrum/z80.c \
src/libspectrum/z80em.c \
src/libspectrum/zlib.c \
src/libspectrum/zxs.c \
src/common.c \
src/t81.c \
src/tzx.c \
src/tape.c
OBJ = $(SRC:.c=.o)
%$(OBJEXT): %.cpp
g++ $(CXXFLAGS) -c $< -o $@
%$(OBJEXT): %.c
gcc $(CFLAGS) -c $< -o $@
all: tape2wav$(EXEEXT) playtape$(EXEEXT)
tape2wav$(EXEEXT): $(OBJ) src/tape2wav.o
gcc -o $@ $+
playtape$(EXEEXT): $(OBJ) src/playtape.o
gcc -mwindows -o $@ $+ -lmingw32 -lSDL2main -lSDL2
clean:
rm -rf $(OBJ) tape2wav$(EXEEXT) src/tape2wav.o playtape$(EXEEXT) src/playtape.o