Commit 89fd7edb83b006d40126bd6fe5f4aac4571536a2
1 parent
a902b0089c
Exists in
master
Makefile modified to use pkg-config. and output binary renamed.
Showing
1 changed file
with
58 additions
and
11 deletions
Show diff stats
Makefile
| ... | ... | @@ -6,27 +6,74 @@ CROSS_FREFIX = $(CC_PATH)/aarch64-poky-linux- |
| 6 | 6 | GCC = $(CROSS_FREFIX)gcc |
| 7 | 7 | |
| 8 | 8 | CFLAGS=-mcpu=cortex-a53 -march=armv8-a+crc+crypto -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security |
| 9 | -#LDFLAGS=-lweston-client | |
| 9 | +LDFLAGS=-lpthread -lm | |
| 10 | +INC=-I./protocol -I./shared -I./ | |
| 10 | 11 | |
| 11 | -INCPATH=-I./protocol -I./shared -I./ \ | |
| 12 | - -I/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa53-crypto-poky-linux/usr/include/cairo\ | |
| 13 | - -I/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa53-crypto-poky-linux/usr/include/libweston-9\ | |
| 14 | - -I/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa53-crypto-poky-linux/usr/include/pixman-1\ | |
| 15 | - -I/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa53-crypto-poky-linux/usr/include/pango-1.0\ | |
| 16 | - -I/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa53-crypto-poky-linux/usr/include/glib-2.0\ | |
| 17 | - -I/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa53-crypto-poky-linux/usr/lib/glib-2.0/include\ | |
| 18 | - -I/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa53-crypto-poky-linux/usr/include/harfbuzz | |
| 12 | +CFLAGS+=`pkg-config --cflags pixman-1` | |
| 13 | +LDFLAGS+=`pkg-config --libs pixman-1` | |
| 14 | + | |
| 15 | +CFLAGS+=`pkg-config --cflags libweston-9` | |
| 16 | +LDFLAGS+=`pkg-config --libs libweston-9` | |
| 17 | + | |
| 18 | +CFLAGS+=`pkg-config --cflags gtk+-wayland-3.0` | |
| 19 | +LDFLAGS+=`pkg-config --libs gtk+-wayland-3.0` | |
| 20 | + | |
| 21 | +CFLAGS+=`pkg-config --cflags glib-2.0` | |
| 22 | +LDFLAGS+=`pkg-config --libs glib-2.0` | |
| 23 | + | |
| 24 | +CFLAGS+=`pkg-config --cflags pango` | |
| 25 | +LDFLAGS+=`pkg-config --libs pango` | |
| 26 | + | |
| 27 | +CFLAGS+=`pkg-config --cflags harfbuzz` | |
| 28 | +LDFLAGS+=`pkg-config --libs harfbuzz` | |
| 29 | + | |
| 30 | +CFLAGS+=`pkg-config --cflags wayland-server` | |
| 31 | +LDFLAGS+=`pkg-config --libs wayland-server` | |
| 32 | + | |
| 33 | +CFLAGS+=`pkg-config --cflags wayland-client` | |
| 34 | +LDFLAGS+=`pkg-config --libs wayland-client` | |
| 35 | + | |
| 36 | +CFLAGS+=`pkg-config --cflags xkbcommon` | |
| 37 | +LDFLAGS+=`pkg-config --libs xkbcommon` | |
| 38 | + | |
| 39 | +CFLAGS+=`pkg-config --cflags wayland-cursor` | |
| 40 | +LDFLAGS+=`pkg-config --libs wayland-cursor` | |
| 41 | + | |
| 42 | +CFLAGS+=`pkg-config --cflags weston` | |
| 43 | +LDFLAGS+=`pkg-config --libs weston` | |
| 44 | + | |
| 45 | +CFLAGS+=`pkg-config --cflags cairo-png` | |
| 46 | +LDFLAGS+=`pkg-config --libs cairo-png` | |
| 47 | + | |
| 48 | +CFLAGS+=`pkg-config --cflags libjpeg` | |
| 49 | +LDFLAGS+=`pkg-config --libs libjpeg` | |
| 50 | + | |
| 51 | +#CFLAGS+=`pkg-config --cflags ` | |
| 52 | +#LDFLAGS+=`pkg-config --libs ` | |
| 53 | + | |
| 54 | +#CFLAGS+=`pkg-config --cflags ` | |
| 55 | +#LDFLAGS+=`pkg-config --libs ` | |
| 56 | + | |
| 57 | +#CFLAGS+=`pkg-config --cflags ` | |
| 58 | +#LDFLAGS+=`pkg-config --libs ` | |
| 19 | 59 | |
| 20 | 60 | |
| 21 | 61 | all: |
| 22 | - $(GCC) $(CFLAGS)--sysroot $(SDKTARGETSYSROOT) $(LDFLAGS) $(INCPATH) -o weston-screenshooter \ | |
| 62 | + $(GCC) $(CFLAGS) --sysroot $(SDKTARGETSYSROOT) $(LDFLAGS) $(INC) -o weston-vncserver \ | |
| 23 | 63 | screenshot.c \ |
| 64 | + protocol/pointer-constraints-unstable-v1-protocol.c \ | |
| 65 | + protocol/relative-pointer-unstable-v1-protocol.c \ | |
| 66 | + protocol/text-cursor-position-protocol.c \ | |
| 67 | + protocol/viewporter-protocol.c \ | |
| 24 | 68 | protocol/weston-screenshooter-protocol.c \ |
| 69 | + protocol/xdg-shell-protocol.c \ | |
| 25 | 70 | shared/os-compatibility.c \ |
| 26 | 71 | shared/xalloc.c \ |
| 27 | 72 | shared/file-util.c \ |
| 28 | 73 | shared/cairo-util.c \ |
| 74 | + shared/frame.c \ | |
| 75 | + shared/image-loader.c \ | |
| 29 | 76 | window.c |
| 30 | 77 | |
| 31 | 78 | clean: |
| 32 | - rm weston-screenshooter | |
| 79 | + rm weston-vncserver | ... | ... |