Fix file mode.
[llvm-testsuite.git] / External / Povray / Makefile
blobb4916510a689bc02c5e93eabca78695935e89e8f
1 LEVEL = ../..
3 include $(LEVEL)/Makefile.config
5 PROG = povray
7 ## Copy all of the povray sources into the local directory.
8 POVRAYSources := $(wildcard $(POVRAY_ROOT)/source/*.c)
9 RAWLIBPNGSources := $(wildcard $(POVRAY_ROOT)/source/libpng/*.c)
10 NONLIBPNGSources := $(addprefix $(POVRAY_ROOT)/source/libpng/, ansi2knr.c pngtest.c example.c)
11 LIBPNGSources := $(filter-out $(NONLIBPNGSources), $(RAWLIBPNGSources))
13 Source := $(notdir $(POVRAYSources)) $(notdir $(LIBPNGSources))
15 CPPFLAGS += -I$(POVRAY_ROOT)/source/unix -I$(PROJ_SRC_ROOT)/runtime/libpng -DPREFIX=\"$(PROJ_OBJ_DIR)\" -DSYSCONFDIR=\"$(POVRAY_ROOT)\" -DPOV_LIB_DIR=\"$(PROJ_OBJ_DIR)/lib\" -IOutput/src -UHAVE_LIBVGA -I$(POVRAY_ROOT)/source/libpng -I$(POVRAY_ROOT)/source
16 LIBS += -lz -lm
17 LDFLAGS += -lz -lm
19 RUN_OPTIONS = -I$(POVRAY_ROOT)/scenes/advanced/chess2.pov -L$(POVRAY_ROOT)/include -GA$<.junk -O-
20 include $(LEVEL)/MultiSource/Makefile.multisrc
22 $(notdir $(POVRAYSources)) : % : $(POVRAY_ROOT)/source/%
23 cp $< $@
24 $(notdir $(LIBPNGSources)) : % : $(POVRAY_ROOT)/source/libpng/%
25 cp $< $@