File: Makefile

package info (click to toggle)
yudit 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 18,472 kB
  • sloc: cpp: 76,344; perl: 5,630; makefile: 989; ansic: 823; sh: 441
file content (36 lines) | stat: -rw-r--r-- 939 bytes parent folder | download
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)