2
0
mirror of git://git.proxmox.com/git/spiceterm.git synced 2025-08-22 10:17:06 +00:00
spiceterm/Makefile

42 lines
1.2 KiB
Makefile
Raw Normal View History

2013-09-10 12:14:45 +02:00
PROGRAMS=spiceterm
2013-10-29 09:39:30 +01:00
HEADERS=translations.h event_loop.h glyphs.h spiceterm.h keysyms.h
2013-10-23 10:57:11 +02:00
SOURCES=screen.c event_loop.c input.c spiceterm.c auth-pve.c
#export G_MESSAGES_DEBUG=all
#export SPICE_DEBUG=1
all: ${PROGRAMS}
spiceterm: ${SOURCES} ${HEADERS} spiceterm.c
2013-10-29 11:56:07 +01:00
gcc -Werror -Wall -Wtype-limits ${SOURCES} -g -O2 -o $@ -lutil $(shell pkg-config) $(shell pkg-config --cflags --libs gthread-2.0,spice-protocol,spice-server)
2013-10-29 09:39:30 +01:00
2013-10-29 12:45:30 +01:00
genfont: genfont.c
gcc -g -O2 -o $@ genfont.c -Wall -D_GNU_SOURCE -lz
2013-10-29 09:39:30 +01:00
keysyms.h: genkeysym.pl
./genkeysym.pl >$@
.PHONY: glyphs
glyphs: genfont
2013-10-29 12:45:30 +01:00
./genfont > glyphs.h
2013-10-31 06:34:22 +01:00
.PHONY: install
install:
mkdir -p ${DESTDIR}/usr/share/doc/${PACKAGE}
mkdir -p ${DESTDIR}/usr/share/man/man1
mkdir -p ${DESTDIR}/usr/bin
install -s -m 0755 spiceterm ${DESTDIR}/usr/bin
2013-09-10 12:14:45 +02:00
.PHONY: test
test: spiceterm
2013-10-29 09:39:30 +01:00
./spiceterm --noauth --keymap de & remote-viewer spice://localhost?tls-port=5900
#G_MESSAGES_DEBUG=all SPICE_DEBUG=1 SPICE_TICKET=test ./spiceterm & G_MESSAGES_DEBUG=all SPICE_DEBUG=1 remote-viewer --debug 'spice://localhost?tls-port=5900' --spice-ca-file /etc/pve/pve-root-ca.pem --spice-secure-channels=all
2013-08-06 11:01:17 +02:00
.PHONY: distclean
distclean: clean
.PHONY: clean
clean:
rm -rf *~ ${PROGRAMS}