File: qe.tcc

package info (click to toggle)
qemacs 0.3.1.cvs.20050713-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,168 kB
  • ctags: 3,413
  • sloc: ansic: 31,131; sh: 582; makefile: 369
file content (40 lines) | stat: -rwxr-xr-x 1,026 bytes parent folder | download | duplicates (3)
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
#!/bin/sh
#
# QEmacs can be compiled directly with TinyCC. Launch this script to
# compile and execute qemacs with TinyCC.
#

# just for benchmarking
tcc_opts=""
libs="-L/usr/X11R6/lib -lXext -lXv -lX11"
#tcc="tcc"
tcc="../tcc/tcc"
if [ "$1" = "-bench" ] ; then
  tcc_opts="$tcc_opts -o /tmp/qe -bench"
  shift
fi
if [ "$1" = "-gprof" ] ; then
  tcc="${tcc}_p"
  libs=""
  shift
fi
if [ "$1" = "-g" ] ; then
  tcc_opts="$tcc_opts -g"
  shift
fi
if [ "$1" = "-b" ] ; then
  tcc_opts="$tcc_opts -b"
  shift
fi

$tcc $tcc_opts $libs -DHAVE_QE_CONFIG_H -DQE_VERSION=\"0.3tcc\" -Iliburlio -- \
           qe.c charset.c buffer.c input.c unicode_join.c \
           qfribidi.c \
           display.c tty.c util.c hex.c list.c \
           clang.c shell.c \
           css.c cssparse.c xmlparse.c html.c html_style.c \
           x11.c \
           liburlio/cutils.c liburlio/urlmisc.c liburlio/mem.c \
           liburlio/urlio.c liburlio/file.c liburlio/dns.c \
           liburlio/tcp.c liburlio/http.c \
           qeend.c -- $*