mk/image.mk: Ship /init in initramfs
[openadk.git] / package / ajstarks-openvg / patches / patch-Makefile
blob4abbfe572e08a4e4ec478e8087478826068c3bb9
1 --- ajstarks-openvg-a236978e8009c948083bd15b201d8f4ceb3c035d.orig/Makefile      2017-07-26 14:27:15.000000000 +0200
2 +++ ajstarks-openvg-a236978e8009c948083bd15b201d8f4ceb3c035d/Makefile   2017-07-26 17:07:46.000000000 +0200
3 @@ -1,38 +1,38 @@
4 -INCLUDEFLAGS=-I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -fPIC
5 -LIBFLAGS=-L/opt/vc/lib -lEGL -lGLESv2 -ljpeg
6 -FONTLIB=/usr/share/fonts/truetype/ttf-dejavu
7 +INCLUDEFLAGS=-I=/opt/vc/include -I=/opt/vc/include/interface/vmcs_host/linux -I=/opt/vc/include/interface/vcos/pthreads -fPIC
8 +LIBFLAGS=-L=/opt/vc/lib -lEGL -lGLESv2 -ljpeg
9  FONTFILES=DejaVuSans.inc  DejaVuSansMono.inc DejaVuSerif.inc
11  all:   font2openvg fonts library       
13 -libshapes.o:   libshapes.c shapes.h fontinfo.h fonts
14 -       gcc -O2 -Wall $(INCLUDEFLAGS) -c libshapes.c
15 +libshapes.o:   libshapes.c shapes.h fontinfo.h
16 +       $(CC) -O2 -Wall $(INCLUDEFLAGS) -c libshapes.c
18  gopenvg:       openvg.go
19         go install .
21  oglinit.o:     oglinit.c
22 -       gcc -O2 -Wall $(INCLUDEFLAGS) -c oglinit.c
23 +       $(CC) -O2 -Wall $(INCLUDEFLAGS) -c oglinit.c
25  font2openvg:   fontutil/font2openvg.cpp
26 -       g++ -I/usr/include/freetype2 fontutil/font2openvg.cpp -o font2openvg -lfreetype
27 +       $(CXX) -I=/usr/include/freetype2 fontutil/font2openvg.cpp -o font2openvg -lfreetype
29  fonts: $(FONTFILES)
31 -DejaVuSans.inc: font2openvg $(FONTLIB)/DejaVuSans.ttf
32 -       ./font2openvg $(FONTLIB)/DejaVuSans.ttf DejaVuSans.inc DejaVuSans
33 +DejaVuSans.inc: font2openvg DejaVuSans.ttf
34 +       ./font2openvg DejaVuSans.ttf DejaVuSans.inc DejaVuSans
36 -DejaVuSerif.inc: font2openvg $(FONTLIB)/DejaVuSerif.ttf
37 -       ./font2openvg $(FONTLIB)/DejaVuSerif.ttf DejaVuSerif.inc DejaVuSerif
38 +DejaVuSerif.inc: font2openvg DejaVuSerif.ttf
39 +       ./font2openvg DejaVuSerif.ttf DejaVuSerif.inc DejaVuSerif
41 -DejaVuSansMono.inc: font2openvg $(FONTLIB)/DejaVuSansMono.ttf
42 -       ./font2openvg $(FONTLIB)/DejaVuSansMono.ttf DejaVuSansMono.inc DejaVuSansMono
43 +DejaVuSansMono.inc: font2openvg DejaVuSansMono.ttf
44 +       ./font2openvg DejaVuSansMono.ttf DejaVuSansMono.inc DejaVuSansMono
46  clean:
47         rm -f *.o *.inc *.so font2openvg *.c~ *.h~
48         indent -linux -c 60 -brf -l 132  libshapes.c oglinit.c shapes.h fontinfo.h
50  library: oglinit.o libshapes.o
51 -       gcc $(LIBFLAGS) -shared -o libshapes.so oglinit.o libshapes.o
52 +       $(CC) -v $(LIBFLAGS) -shared -o libshapes.so oglinit.o libshapes.o
54  install:
55         install -m 755 -p font2openvg /usr/bin/