File: Makefile

package info (click to toggle)
libx11-protocol-other-perl 31-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,760 kB
  • sloc: perl: 17,593; ansic: 666; sh: 285; lisp: 143; makefile: 42
file content (67 lines) | stat: -rw-r--r-- 2,445 bytes parent folder | download | duplicates (2)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright 2011, 2012, 2013, 2016 Kevin Ryde

# This file is part of X11-Protocol-Other.
#
# X11-Protocol-Other is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 3, or (at your option) any
# later version.
#
# X11-Protocol-Other is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with X11-Protocol-Other.  If not, see <http://www.gnu.org/licenses/>.

CFLAGS = -Wall -g -Wpadded
LOADLIBES = -lXss -lXi -lXv -lXxf86dga -lXext -lX11

pad:
	gcc -Wpadded -x c -fsyntax-only /usr/include/X11/extensions/xf86vmproto.h
	cd /usr/include/X11/extensions; \
	for i in *.h; do \
	  if egrep -q 'B32|B16' $$i; then \
	    echo '#include <stdio.h>'      >/tmp/$$i; \
	    echo '#include <X11/X.h>'     >>/tmp/$$i; \
	    echo '#include <X11/Xdefs.h>'     >>/tmp/$$i; \
	    echo '#include <X11/Xproto.h>'    >>/tmp/$$i; \
	    echo '#include <X11/Xprotostr.h>' >>/tmp/$$i; \
	    echo '#include <X11/Xmd.h>'       >>/tmp/$$i; \
	    cat $$i                           >>/tmp/$$i; \
	    gcc -Wpadded -fsyntax-only -x c /tmp/$$i; \
	  fi \
	done

# if grep -q 'Display *[*]' $$i; then :; else \

all: encode-emacs22.ctext encode-emacs22-ext.ctext \
	encode-emacs23.ctext encode-emacs23-ext.ctext \
	encode-xemacs21.ctext
# encode-emacs21.ctext encode-emacs21-ext.ctext \

encode-emacs21.ctext encode-emacs21-ext.ctext: encode-all.el
	emacs21 -q -batch -l encode-all.el -f my-ctext 
encode-emacs22.ctext encode-emacs22-ext.ctext: encode-all.el
	emacs22 -q -batch -l encode-all.el -f my-ctext 
encode-emacs23.ctext encode-emacs23-ext.ctext: encode-all.el
	emacs23 -q -batch -l encode-all.el -f my-ctext 
encode-xemacs21.ctext: encode-all.el
	xemacs21 -q -batch -l encode-all.el -f my-ctext 




encode-dump: encode-dump.c Makefile
	$(CC) $(CFLAGS) encode-dump.c -lX11 -o encode-dump

Encode-X11-xlib: Encode-X11-xlib.c Makefile
	$(CC) $(CFLAGS) Encode-X11-xlib.c -lX11 -o Encode-X11-xlib
Encode-X11-xlib2: Encode-X11-xlib2.c Makefile
	$(CC) $(CFLAGS) Encode-X11-xlib2.c -lX11 -o Encode-X11-xlib2


# render-extension.c
# LOADLIBES = -L /usr/X11R6/lib -lXrender -lX11
# CFLAGS = -g -O0