-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.macosx
62 lines (49 loc) · 1.27 KB
/
Makefile.macosx
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
#
# Makefile for MacOSX
#
CC=clang++
OUTFILE = makeTSX_macosx
#DEBUG=-D_DEBUG_
CFLAGS=-I./includes -I$(IDIR) -Wall -O2 -std=c++11 $(DEBUG)
IDIR=.
ODIR=obj
DIR_GUARD=@mkdir -p $(@D)
#LDIR =./lib
LIBS=-lm
_DEPS = makeTSX.h TZX.h TZX_Blocks.h WAV.h \
BlockRipper.h ByteBuffer.h \
includes/types.h includes/colors.h \
rippers/MSX4B_Ripper.h \
rippers/Opera4B_Ripper.h \
rippers/B10_Standard_Ripper.h \
rippers/B11_Custom_Ripper.h \
rippers/B12_PureTone_Ripper.h \
rippers/B13_PulseSequence_Ripper.h \
rippers/B15_DirectRecording_Ripper.h \
rippers/B20_Silence_Ripper.h
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
_OBJ = makeTSX.o ByteBuffer.o TZX.o TZX_Blocks.o WAV.o BlockRipper.o \
MSX4B_Ripper.o \
Opera4B_Ripper.o \
B10_Standard_Ripper.o \
B11_Custom_Ripper.o \
B12_PureTone_Ripper.o \
B13_PulseSequence_Ripper.o \
B15_DirectRecording_Ripper.o \
B20_Silence_Ripper.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
.PHONY: clean all
all: $(OUTFILE)
$(ODIR)/%.o: %.c $(DEPS)
$(DIR_GUARD)
$(CC) -c -o $@ $< $(CFLAGS)
$(ODIR)/%.o: %.cpp $(DEPS)
$(DIR_GUARD)
$(CC) -c -o $@ $< $(CFLAGS)
$(ODIR)/%.o: rippers/%.cpp $(DEPS)
$(DIR_GUARD)
$(CC) -c -o $@ $< $(CFLAGS)
$(OUTFILE): $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
clean:
rm -f $(ODIR)/*.o *~ core $(IDIR)/*~