AVsitter/AVsitter2/Makefile

92 lines
2.4 KiB
Makefile

# Configuration area
# Full path to Python. For Windows this is typically
# C:\Python27\python.exe; if it is in your path you don't need to change it.
PYTHON=python
# Full path to main.py in the optimizer. Depends on where it was unpacked.
OPTIMIZER=/l/pyoptimizer/main.py
# Which preprocessor to use. Use 'gcpp' for GNU cpp (typical on Linux);
# use 'mcpp' for mcpp.
PREPROC_KIND=mcpp
# Full path to the preprocessor. Depends on where you have downloaded it.
# If the preprocessor is mcpp and it is in your path, you can leave it as is.
PREPROC_PATH=mcpp
# Full path to the zip program (zip.exe for Windows). Depends on where you
# have downloaded it. If it is in your path you don't need to change it.
ZIP=zip
# Name of the zipped file to generate for SL
SLZIP=AVsitter2.zip
# Name of the zipped file to generate for OpenSim
OSZIP=AVsitter2-oss.zip
# End of configuration area
# Note some of these scripts don't strictly need to be optimized for memory.
OPTIMIZED=[AV]sitA.lslo\
[AV]sitB.lslo\
[AV]adjuster.lslo\
[AV]helper.lslo\
[AV]root-security.lslo\
[AV]root.lslo\
[AV]select.lslo\
Plugins/AVcamera/[AV]camera.lslo\
Plugins/AVcontrol/Xcite!-Sensations/[AV]Xcite!.lslo\
Plugins/AVcontrol/[AV]root-RLV-extra.lslo\
Plugins/AVcontrol/[AV]root-RLV.lslo\
Plugins/AVcontrol/[AV]root-control.lslo\
Plugins/AVfaces/[AV]faces.lslo\
Plugins/AVprop/[AV]menu.lslo\
Plugins/AVprop/[AV]prop.lslo\
Plugins/AVprop/[AV]object.lslo\
Plugins/AVsequence/[AV]sequence.lslo\
Utilities/AVpos-generator.lslo\
Utilities/AVpos-shifter.lslo\
Utilities/Anim-perm-checker.lslo\
Utilities/MLP-converter.lslo\
Utilities/Missing-anim-finder.lslo\
Utilities/Noob-detector.lslo
UNOPTIMIZED=Plugins/AVcontrol/LockGuard/[AV]LockGuard.lsl\
Plugins/AVcontrol/LockGuard/[AV]LockGuard-object.lsl
OPENSIM=[AV]sitA.oss\
[AV]sitB.oss\
[AV]adjuster.oss\
[AV]helper.oss\
[AV]root.oss\
[AV]root-security.oss\
[AV]select.oss
all: $(SLZIP) $(OSZIP)
clean:
$(PYTHON) build-aux.py rm $(SLZIP) $(OSZIP) $(OPTIMIZED) $(OPENSIM)
optimized: $(OPTIMIZED)
opensim: $(OPENSIM)
$(SLZIP): $(OPTIMIZED) $(UNOPTIMIZED)
$(PYTHON) build-aux.py rm $@
$(ZIP) $@ $(OPTIMIZED) $(UNOPTIMIZED)
%.lslo: %.lsl
$(PYTHON) $(OPTIMIZER) -H -O addstrings,shrinknames,-extendedglobalexpr -p $(PREPROC_KIND) --precmd=$(PREPROC_PATH) $< -o $@
$(OSZIP): $(OPENSIM)
$(PYTHON) build-aux.py rm $@
$(ZIP) $@ $(OPENSIM)
%.oss: %.lsl
$(PYTHON) build-aux.py oss-process $< > $@
.PHONY : all clean optimized