about summary refs log tree commit diff stats
path: root/config.mk
blob: 33edcd73ce8b72416ac76e7e78815b2807449b99 (plain) (blame)
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
# Customize to fit your system

# paths
PREFIX = /usr/local
CONFPREFIX = ${PREFIX}/etc
MANPREFIX = ${PREFIX}/share/man

X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib

VERSION = 0.0

# includes and libs
LIBS = -L${PREFIX}/lib -L/usr/lib -lc -lm -L${X11LIB} -lX11

# Linux/BSD
CFLAGS = -g -Wall -O2 -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
	-DVERSION=\"${VERSION}\"
LDFLAGS = -g ${LIBS}


# Solaris
#CFLAGS = -fast -xtarget=ultra ${INCLUDES} -DVERSION=\"${VERSION}\"
#LIBS += -lnsl -lsocket

AR = ar cr
CC = cc
RANLIB = ranlib
0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#
# Makefile for the makeuctb and unicode tables.
#
# This may not yet work for the general case.
# Only some dependencies included.
#
SHELL		= @CONFIG_SHELL@

prefix		= @prefix@
exec_prefix	= @exec_prefix@
top_srcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= $(srcdir)

top_builddir	= ../..

CC		= @CC@
CPP		= @CPP@
CFLAGS		= @CFLAGS@
CPPFLAGS	= @CPPFLAGS@

LIBS		= @LIBS@
LDFLAGS		= @LDFLAGS@

INTLLIB		= @INTLDIR_MAKE@@INTLLIBS@

WWWINC		= WWW/Library/Implementation
INTLDIR_CPPFLAGS= @INTLDIR_CPPFLAGS@-I$(top_srcdir)/intl

SITE_DEFS	= # FIXME: set in parent makefile

BUILD_CC	= @BUILD_CC@
BUILD_CPP	= @BUILD_CPP@
BUILD_CFLAGS	= @BUILD_CFLAGS@
BUILD_CPPFLAGS	= @BUILD_CPPFLAGS@ @DEFS@

BUILD_LIBS	= @BUILD_LIBS@ #$(SITE_LIBS)
BUILD_LDFLAGS	= @BUILD_LDFLAGS@

x		= @EXEEXT@
o		= .@BUILD_OBJEXT@
BUILD_EXEEXT	= @BUILD_EXEEXT@

CPP_OPTS	= $(BUILD_CPPFLAGS) \
		-I$(top_builddir) \
		-I$(top_srcdir)/src \
		-I$(top_srcdir)/src/chrtrans \
		-I$(top_srcdir)/$(WWWINC) \
		-I$(top_srcdir)/ \
		$(INTLDIR_CPPFLAGS) $(SITE_DEFS)
CC_OPTS		= $(CPP_OPTS) $(BUILD_CFLAGS)

#
# This file contains the font map for the default (hardware) font
#

FONTMAP_INC = iso01_uni.h# default, if not set by recursive call

### fastdep: $(FONTMAP_INC)

MAKEUCTB = makeuctb$(BUILD_EXEEXT)

TABLES= \
 cp1250_uni.h \
 cp1251_uni.h \
 cp1252_uni.h \
 cp1253_uni.h \
 cp1255_uni.h \
 cp1256_uni.h \
 cp1257_uni.h \
 cp437_uni.h \
 cp737_uni.h \
 cp775_uni.h \
 cp850_uni.h \
 cp852_uni.h \
 cp862_uni.h \
 cp864_uni.h \
 cp866_uni.h \
 cp866u_uni.h \
 cp869_uni.h \
 def7_uni.h \
 dmcs_uni.h \
 hp_uni.h \
 iso01_uni.h \
 iso02_uni.h \
 iso03_uni.h \
 iso04_uni.h \
 iso05_uni.h \
 iso06_uni.h \
 iso07_uni.h \
 iso08_uni.h \
 iso09_uni.h \
 iso10_uni.h \
 iso15_uni.h \
 koi8r_uni.h \
 koi8u_uni.h \
 mac_uni.h \
 mnem2_suni.h \
 mnem_suni.h \
 next_uni.h \
 next_uni.h \
 pt154_uni.h \
 rfc_suni.h \
 utf8_uni.h \
 viscii_uni.h

default: $(FONTMAP_INC)

tables: $(TABLES)

$(MAKEUCTB) : makeuctb$o
	$(BUILD_CC) $(CC_OPTS) $(BUILD_LDFLAGS) -o $@ makeuctb$o $(INTLLIB) $(BUILD_LIBS)

makeuctb$o : $(srcdir)/UCkd.h $(srcdir)/makeuctb.c

.SUFFIXES : $o .tbl .i

.c$o:
@RULE_CC@
	@ECHO_CC@$(BUILD_CC) $(CC_OPTS) -c $(srcdir)/$*.c

.c.i:
@RULE_CC@
	@ECHO_CC@$(BUILD_CPP) -C $(CPP_OPTS) $(srcdir)/$*.c >$@

.tbl.h:
	./$(MAKEUCTB) $(srcdir)/$*.tbl $*.h

# table files listed here once again to get the make dependencies
# right, in case makeuctb was recompiled.
cp1250_uni.h:		$(srcdir)/cp1250_uni.tbl	$(MAKEUCTB)
cp1251_uni.h:		$(srcdir)/cp1251_uni.tbl	$(MAKEUCTB)
cp1252_uni.h:		$(srcdir)/cp1252_uni.tbl	$(MAKEUCTB)
cp1253_uni.h:		$(srcdir)/cp1253_uni.tbl	$(MAKEUCTB)
cp1255_uni.h:		$(srcdir)/cp1255_uni.tbl	$(MAKEUCTB)
cp1256_uni.h:		$(srcdir)/cp1256_uni.tbl	$(MAKEUCTB)
cp1257_uni.h:		$(srcdir)/cp1257_uni.tbl	$(MAKEUCTB)
cp437_uni.h:		$(srcdir)/cp437_uni.tbl		$(MAKEUCTB)
cp737_uni.h:		$(srcdir)/cp737_uni.tbl		$(MAKEUCTB)
cp775_uni.h:		$(srcdir)/cp775_uni.tbl		$(MAKEUCTB)
cp850_uni.h:		$(srcdir)/cp850_uni.tbl		$(MAKEUCTB)
cp852_uni.h:		$(srcdir)/cp852_uni.tbl		$(MAKEUCTB)
cp862_uni.h:		$(srcdir)/cp862_uni.tbl		$(MAKEUCTB)
cp864_uni.h:		$(srcdir)/cp864_uni.tbl		$(MAKEUCTB)
cp866_uni.h:		$(srcdir)/cp866_uni.tbl		$(MAKEUCTB)
cp866u_uni.h:		$(srcdir)/cp866u_uni.tbl	$(MAKEUCTB)
cp869_uni.h:		$(srcdir)/cp869_uni.tbl		$(MAKEUCTB)
def7_uni.h:		$(srcdir)/def7_uni.tbl		$(MAKEUCTB)
dmcs_uni.h:		$(srcdir)/dmcs_uni.tbl		$(MAKEUCTB)
hp_uni.h:		$(srcdir)/hp_uni.tbl		$(MAKEUCTB)
iso01_uni.h:		$(srcdir)/iso01_uni.tbl		$(MAKEUCTB)
iso02_uni.h:		$(srcdir)/iso02_uni.tbl		$(MAKEUCTB)
iso03_uni.h:		$(srcdir)/iso03_uni.tbl		$(MAKEUCTB)
iso04_uni.h:		$(srcdir)/iso04_uni.tbl		$(MAKEUCTB)
iso05_uni.h:		$(srcdir)/iso05_uni.tbl		$(MAKEUCTB)
iso06_uni.h:		$(srcdir)/iso06_uni.tbl		$(MAKEUCTB)
iso07_uni.h:		$(srcdir)/iso07_uni.tbl		$(MAKEUCTB)
iso08_uni.h:		$(srcdir)/iso08_uni.tbl		$(MAKEUCTB)
iso09_uni.h:		$(srcdir)/iso09_uni.tbl		$(MAKEUCTB)
iso10_uni.h:		$(srcdir)/iso10_uni.tbl		$(MAKEUCTB)
iso15_uni.h:		$(srcdir)/iso15_uni.tbl		$(MAKEUCTB)
koi8r_uni.h:		$(srcdir)/koi8r_uni.tbl		$(MAKEUCTB)
koi8u_uni.h:		$(srcdir)/koi8u_uni.tbl		$(MAKEUCTB)
mac_uni.h:		$(srcdir)/mac_uni.tbl		$(MAKEUCTB)
mnem2_suni.h:		$(srcdir)/mnem2_suni.tbl	$(MAKEUCTB)
mnem_suni.h:		$(srcdir)/mnem_suni.tbl		$(MAKEUCTB)
next_uni.h:		$(srcdir)/next_uni.tbl		$(MAKEUCTB)
pt154_uni.h:		$(srcdir)/pt154_uni.tbl 	$(MAKEUCTB)
rfc_suni.h:		$(srcdir)/rfc_suni.tbl		$(MAKEUCTB)
utf8_uni.h:		$(srcdir)/utf8_uni.tbl		$(MAKEUCTB)
viscii_uni.h:		$(srcdir)/viscii_uni.tbl	$(MAKEUCTB)

clean:
	rm -f $(MAKEUCTB) *$o *uni.h *uni2.h *.i

distclean: clean
	-rm -rf obsolete
	rm -f core *.bak *.sav *~ *.h_old

depend :
	makedepend -fmakefile -- $(CPP_OPTS) -- $(C_SRC)

# DO NOT DELETE THIS LINE -- make depend depends on it.