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
|
XCOMM $XConsortium: Imakefile /main/42 1996/01/14 16:50:01 kaleb $
XCOMM $XFree86: xc/programs/twm/Imakefile,v 3.6.4.2 1997/05/13 15:06:03 dawes Exp $
#if HasMkstemp
MKTMP_DEFINES = -DHAS_MKSTEMP
#endif
YFLAGS = -d
DEPLIBS = $(DEPXMULIB) $(DEPXTOOLLIB) XkbClientDepLibs $(DEPXLIB)
#ifndef OS2Architecture
LOCAL_LIBRARIES = $(XMULIB) $(XTOOLLIB) XkbClientLibs $(XLIB)
#else
LOCAL_LIBRARIES = $(XMULIB) $(XTOOLLIB) XkbClientLibs $(XLIB) $(LEXLIB)
#endif
LINTLIBS = $(LINTXMU) $(LINTXTOOLLIB) $(LINTXLIB)
DEFINES = $(SIGNAL_DEFINES) $(MKTMP_DEFINES) XkbClientDefines
SRCS = gram.c lex.c deftwmrc.c add_window.c gc.c list.c twm.c \
parse.c menus.c events.c resize.c util.c version.c iconmgr.c \
cursor.c icons.c session.c
OBJS = gram.o lex.o deftwmrc.o add_window.o gc.o list.o twm.o \
parse.o menus.o events.o resize.o util.o version.o iconmgr.o \
cursor.o icons.o session.o
all::
#ifndef OS2Architecture
SpecialCObjectRule(parse,$(_NOOP_),'-DSYSTEM_INIT_FILE="'$(TWMDIR)'/system.twmrc"')
#else
SpecialCObjectRule(parse,$(_NOOP_),-DSYSTEM_INIT_FILE=\"$(TWMDIR)/system.twmrc\")
#endif
#if !HasPutenv
SpecialCObjectRule(util,$(_NOOP_),-DNOPUTENV XkbClientDefines)
#endif
LexFile(lex)
YaccFile(gram,$(YFLAGS))
includes:: deftwmrc.c
depend:: deftwmrc.c
clean::
RemoveFile(deftwmrc.c)
deftwmrc.c: system.twmrc
$(RM) $@
echo '/* ' >>$@
echo ' * This file is generated automatically from the default' >>$@
echo ' * twm bindings file system.twmrc by the twm Imakefile.' >>$@
echo ' */' >>$@
echo '' >>$@
echo 'char *defTwmrc[] = {' >>$@
sed -f deftwmrc.sed <system.twmrc >>$@
echo ' (char *) 0 };' >>$@
ComplexProgramTarget(twm)
InstallNonExecFile(system.twmrc,$(TWMDIR))
|