/
Makefile
28 lines (24 loc) · 740 Bytes
/
Makefile
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
VERSION = 0.2
CPPFLAGS = -Wall -O2
PDSAMPLE_OBJS = RNG.o PDSample.o PDSampling.o RangeList.o ScallopedSector.o
all: PDSample
PDSample: $(PDSAMPLE_OBJS)
g++ -o $@ $(PDSAMPLE_OBJS)
clean:
rm -f PDSample $(PDSAMPLE_OBJS)
dist:
rm -rf releases/PDSample-$(VERSION).tar.gz
mkdir PDSample-$(VERSION)
cp \
Makefile PDSample.sln PDSample.vcproj \
README.txt LICENSE.txt \
PDSample.cpp PDSampling.cpp PDSampling.h \
RNG.cpp RNG.h \
RangeList.cpp RangeList.h \
ScallopedSector.cpp ScallopedSector.h \
WeightedDiscretePDF.cpp WeightedDiscretePDF.h \
quasisampler_prototype.h \
PDSample-$(VERSION)
tar cvf releases/PDSample-$(VERSION).tar PDSample-$(VERSION)
gzip releases/PDSample-$(VERSION).tar
rm -rf PDSample-$(VERSION)