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
|
include ../Makefile.conf
UNIPRINT=/usr/bin/uniprint
TXT=$(wildcard *.txt)
PS=$(subst .txt,.ps,$(TXT))
CPP=$(subst .txt,.cpp,$(TXT))
all: rasterizerTest toolTest
SLIBS=-L../addon -laddon -L../swidget -lswidget -L../swindow -lswindow -L../stoolkit -lstoolkit $(ALL_LIBS)
%.ps:
$(UNIPRINT) -font Serif.ttf -font gulim.ttf -size 20 -hsize 0 -out $(patsubst %.cpp,%.ps,$@) < $(patsubst %.ps,%.txt,$@)
rasterizerTest: RasterizerTest.o
$(LD) -o rasterizerTest RasterizerTest.o $(SLIBS)
toolTest: ToolTest.o
$(LD) -o toolTest ToolTest.o $(SLIBS)
%.o:%.cpp
$(CXX) -c $(CPPFLAGS) $(subst .o,.cpp,$@)
z.cpp: z.txt
$(UNIPRINT) -font default -size 20 -hsize 0 -out $(patsubst %.cpp,%.ps,$@) < $(patsubst %.cpp,%.txt,$@)
perl ps2cpp.pl < $(patsubst %.cpp,%.ps,$@) > $@
%.cpp: %.txt
perl ps2cpp.pl < $(patsubst %.cpp,%.ps,$@) > $@
clean:
rm -f *.o rasterizerTest toolTest
distclean:
rm -f *.o rasterizerTest toolTest $(CPP)
|