# Makefile for gtx, a display-independent, object-oriented window toolkit.
-DEST=@DEST@
-TOP_INCDIR=@TOP_INCDIR@
-TOP_LIBDIR=@TOP_LIBDIR@
-TOP_OBJDIR=@TOP_OBJDIR@
srcdir=@srcdir@
-VPATH=${srcdir}
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-bindir=@bindir@
-sbindir=@sbindir@
-libexecdir=@libexecdir@
-libdir=@libdir@
-includedir=@includedir@
-mandir=@mandir@
-afssrvbindir=@afssrvbindir@
-afssrvsbindir=@afssrvsbindir@
-afssrvlibexecdir=@afssrvlibexecdir@
-RXGEN=${TOP_OBJDIR}/src/rxgen/rxgen
-TOP_SRCDIR=@TOP_SRCDIR@
-SYS_NAME=@AFS_SYSNAME@
-
-SHELL=/bin/sh
-
-include ../config/Makefile.${SYS_NAME}
-
-CFLAGS=-I. -I${srcdir} ${DBUG} -I${TOP_OBJDIR}/src/config \
- -I${TOP_INCDIR} -I${TOP_INCDIR}/afs ${XCFLAGS}
-LDFLAGS = ${XLDFLAGS}
+include @TOP_OBJDIR@/src/config/Makefile.config
+include @TOP_OBJDIR@/src/config/Makefile.lwp
+
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
INCLS=gtxobjects.h \
gtxwindows.h \
${TOP_LIBDIR}/libkauth.a \
${TOP_LIBDIR}/libauth.a \
${TOP_LIBDIR}/librxkad.a \
- ${TOP_LIBDIR}/libdes.a \
${TOP_LIBDIR}/libcom_err.a \
${TOP_LIBDIR}/util.a
-EXTRA_LIBS=${TXLIBS} ${TOP_LIBDIR}/libtermlib.a ${XLIBS}
+EXTRA_LIBS=${LIB_curses} ${XLIBS}
KEYMAP_SRCS=keymap.c input.c frame.c
${TOP_INCDIR}/afs/gtxwindows.h \
${TOP_INCDIR}/afs/gtxX11win.h
+${TOP_LIBDIR}/libgtx.a: libgtx.a
+ ${INSTALL_DATA} $? $@
+
+${TOP_INCDIR}/afs/gtxcurseswin.h: gtxcurseswin.h
+ ${INSTALL_DATA} $? $@
+
+${TOP_INCDIR}/afs/gtxdumbwin.h: gtxdumbwin.h
+ ${INSTALL_DATA} $? $@
+
+${TOP_INCDIR}/afs/gtxframe.h: gtxframe.h
+ ${INSTALL_DATA} $? $@
+
+${TOP_INCDIR}/afs/gtxinput.h: gtxinput.h
+ ${INSTALL_DATA} $? $@
+
+${TOP_INCDIR}/afs/gtxkeymap.h: gtxkeymap.h
+ ${INSTALL_DATA} $? $@
+
+${TOP_INCDIR}/afs/gtxlightobj.h: gtxlightobj.h
+ ${INSTALL_DATA} $? $@
+
+${TOP_INCDIR}/afs/gtxobjdict.h: gtxobjdict.h
+ ${INSTALL_DATA} $? $@
+
+${TOP_INCDIR}/afs/gtxobjects.h: gtxobjects.h
+ ${INSTALL_DATA} $? $@
+
+${TOP_INCDIR}/afs/gtxtextcb.h: gtxtextcb.h
+ ${INSTALL_DATA} $? $@
+
+${TOP_INCDIR}/afs/gtxtextobj.h: gtxtextobj.h
+ ${INSTALL_DATA} $? $@
+
+${TOP_INCDIR}/afs/gtxwindows.h: gtxwindows.h
+ ${INSTALL_DATA} $? $@
+
+${TOP_INCDIR}/afs/gtxX11win.h: gtxX11win.h
+ ${INSTALL_DATA} $? $@
+
tests: object_test screen_test curses_test cb_test gtxtest
# All objects in the library
curses_test.o: curses_test.c ${INCLS} AFS_component_version_number.o
curses_test: curses_test.o $(LIBS)
- ${CC} ${CFLAGS} -o curses_test curses_test.o $(LIBS) ${EXTRA_LIBS}
+ $(AFS_LDRULE) curses_test.o $(LIBS) ${EXTRA_LIBS}
screen_test.o: screen_test.c ${INCLS} AFS_component_version_number.o
screen_test: screen_test.o ${WINDOW_OBJS} ${LIBS}
- ${CC} ${CFLAGS} -o screen_test screen_test.o ${WINDOW_OBJS} ${LIBS} ${EXTRA_LIBS}
+ $(AFS_LDRULE) screen_test.o ${WINDOW_OBJS} ${LIBS} ${EXTRA_LIBS}
cb_test.o: cb_test.c ${INCLS} AFS_component_version_number.o
cb_test: cb_test.o ${CB_OBJS} ${LIBS}
- ${CC} ${CFLAGS} -o cb_test cb_test.o ${CB_OBJS} ${LIBS} ${EXTRA_LIBS}
+ $(AFS_LDRULE) cb_test.o ${CB_OBJS} ${LIBS} ${EXTRA_LIBS}
gtxtest.o: gtxtest.c ${INCLS} AFS_component_version_number.o
gtxtest: gtxtest.o libgtx.a ${LIBS}
- ${CC} ${LDFLAGS} -o gtxtest gtxtest.o libgtx.a ${LIBS} ${EXTRA_LIBS}
+ $(AFS_LDRULE) gtxtest.o libgtx.a ${LIBS} ${EXTRA_LIBS}
object_test.o: object_test.c ${INCLS} AFS_component_version_number.o
object_test: object_test.o ${WINDOW_OBJS} ${DICT_OBJS} ${OBJECT_OBJS} ${CB_OBJS} ${LIBS}
- ${CC} ${CFLAGS} -o object_test object_test.o ${WINDOW_OBJS} ${DICT_OBJS} ${OBJECT_OBJS} ${CB_OBJS} ${LIBS} ${EXTRA_LIBS}
+ $(AFS_LDRULE) object_test.o ${WINDOW_OBJS} ${DICT_OBJS} \
+ ${OBJECT_OBJS} ${CB_OBJS} ${LIBS} ${EXTRA_LIBS}
#
# Installation targets
$(AR) crv $@ ${LIBOBJS} AFS_component_version_number.o
${RANLIB} $@
-install: \
- ${DESTDIR}${libdir}/afs/libgtx.a \
- ${DESTDIR}${includedir}/afs/gtxcurseswin.h \
- ${DESTDIR}${includedir}/afs/gtxdumbwin.h \
- ${DESTDIR}${includedir}/afs/gtxframe.h \
- ${DESTDIR}${includedir}/afs/gtxinput.h \
- ${DESTDIR}${includedir}/afs/gtxkeymap.h \
- ${DESTDIR}${includedir}/afs/gtxlightobj.h \
- ${DESTDIR}${includedir}/afs/gtxobjdict.h \
- ${DESTDIR}${includedir}/afs/gtxobjects.h \
- ${DESTDIR}${includedir}/afs/gtxtextcb.h \
- ${DESTDIR}${includedir}/afs/gtxtextobj.h \
- ${DESTDIR}${includedir}/afs/gtxwindows.h \
- ${DESTDIR}${includedir}/afs/gtxX11win.h
-
-${DESTDIR}${libdir}/afs/libgtx.a: libgtx.a
- ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/gtxcurseswin.h: gtxcurseswin.h
- ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/gtxdumbwin.h: gtxdumbwin.h
- ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/gtxframe.h: gtxframe.h
- ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/gtxinput.h: gtxinput.h
- ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/gtxkeymap.h: gtxkeymap.h
- ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/gtxlightobj.h: gtxlightobj.h
- ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/gtxobjdict.h: gtxobjdict.h
- ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/gtxobjects.h: gtxobjects.h
- ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/gtxtextcb.h: gtxtextcb.h
- ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/gtxtextobj.h: gtxtextobj.h
- ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/gtxwindows.h: gtxwindows.h
- ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/gtxX11win.h: gtxX11win.h
- ${INSTALL} $? $@
-
-dest: \
- ${DEST}/lib/afs/libgtx.a \
- ${DEST}/include/afs/gtxcurseswin.h \
- ${DEST}/include/afs/gtxdumbwin.h \
- ${DEST}/include/afs/gtxframe.h \
- ${DEST}/include/afs/gtxinput.h \
- ${DEST}/include/afs/gtxkeymap.h \
- ${DEST}/include/afs/gtxlightobj.h \
- ${DEST}/include/afs/gtxobjdict.h \
- ${DEST}/include/afs/gtxobjects.h \
- ${DEST}/include/afs/gtxtextcb.h \
- ${DEST}/include/afs/gtxtextobj.h \
- ${DEST}/include/afs/gtxwindows.h \
- ${DEST}/include/afs/gtxX11win.h
-
-${DEST}/lib/afs/libgtx.a: libgtx.a
- ${INSTALL} $? $@
-
-${DEST}/include/afs/gtxcurseswin.h: gtxcurseswin.h
- ${INSTALL} $? $@
-
-${DEST}/include/afs/gtxdumbwin.h: gtxdumbwin.h
- ${INSTALL} $? $@
-
-${DEST}/include/afs/gtxframe.h: gtxframe.h
- ${INSTALL} $? $@
-
-${DEST}/include/afs/gtxinput.h: gtxinput.h
- ${INSTALL} $? $@
-
-${DEST}/include/afs/gtxkeymap.h: gtxkeymap.h
- ${INSTALL} $? $@
-
-${DEST}/include/afs/gtxlightobj.h: gtxlightobj.h
- ${INSTALL} $? $@
-
-${DEST}/include/afs/gtxobjdict.h: gtxobjdict.h
- ${INSTALL} $? $@
-
-${DEST}/include/afs/gtxobjects.h: gtxobjects.h
- ${INSTALL} $? $@
-
-${DEST}/include/afs/gtxtextcb.h: gtxtextcb.h
- ${INSTALL} $? $@
-
-${DEST}/include/afs/gtxtextobj.h: gtxtextobj.h
- ${INSTALL} $? $@
-
-${DEST}/include/afs/gtxwindows.h: gtxwindows.h
- ${INSTALL} $? $@
-
-${DEST}/include/afs/gtxX11win.h: gtxX11win.h
- ${INSTALL} $? $@
-
-
-${TOP_LIBDIR}/libgtx.a: libgtx.a
- ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/gtxcurseswin.h: gtxcurseswin.h
- ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/gtxdumbwin.h: gtxdumbwin.h
- ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/gtxframe.h: gtxframe.h
- ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/gtxinput.h: gtxinput.h
- ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/gtxkeymap.h: gtxkeymap.h
- ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/gtxlightobj.h: gtxlightobj.h
- ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/gtxobjdict.h: gtxobjdict.h
- ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/gtxobjects.h: gtxobjects.h
- ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/gtxtextcb.h: gtxtextcb.h
- ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/gtxtextobj.h: gtxtextobj.h
- ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/gtxwindows.h: gtxwindows.h
- ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/gtxX11win.h: gtxX11win.h
- ${INSTALL} $? $@
-
+install: libgtx.a
+ ${INSTALL} -d ${DESTDIR}${libdir}/afs
+ ${INSTALL} -d ${DESTDIR}${includedir}/afs
+ ${INSTALL_DATA} libgtx.a ${DESTDIR}${libdir}/afs/libgtx.a
+ ${INSTALL_DATA} ${srcdir}/gtxcurseswin.h ${DESTDIR}${includedir}/afs/gtxcurseswin.h
+ ${INSTALL_DATA} ${srcdir}/gtxdumbwin.h ${DESTDIR}${includedir}/afs/gtxdumbwin.h
+ ${INSTALL_DATA} ${srcdir}/gtxframe.h ${DESTDIR}${includedir}/afs/gtxframe.h
+ ${INSTALL_DATA} ${srcdir}/gtxinput.h ${DESTDIR}${includedir}/afs/gtxinput.h
+ ${INSTALL_DATA} ${srcdir}/gtxkeymap.h ${DESTDIR}${includedir}/afs/gtxkeymap.h
+ ${INSTALL_DATA} ${srcdir}/gtxlightobj.h ${DESTDIR}${includedir}/afs/gtxlightobj.h
+ ${INSTALL_DATA} ${srcdir}/gtxobjdict.h ${DESTDIR}${includedir}/afs/gtxobjdict.h
+ ${INSTALL_DATA} ${srcdir}/gtxobjects.h ${DESTDIR}${includedir}/afs/gtxobjects.h
+ ${INSTALL_DATA} ${srcdir}/gtxtextcb.h ${DESTDIR}${includedir}/afs/gtxtextcb.h
+ ${INSTALL_DATA} ${srcdir}/gtxtextobj.h ${DESTDIR}${includedir}/afs/gtxtextobj.h
+ ${INSTALL_DATA} ${srcdir}/gtxwindows.h ${DESTDIR}${includedir}/afs/gtxwindows.h
+ ${INSTALL_DATA} ${srcdir}/gtxX11win.h ${DESTDIR}${includedir}/afs/gtxX11win.h
+
+dest: libgtx.a
+ ${INSTALL} -d ${DEST}/lib/afs
+ ${INSTALL} -d ${DEST}/include/afs
+ ${INSTALL_DATA} libgtx.a ${DEST}/lib/afs/libgtx.a
+ ${INSTALL_DATA} ${srcdir}/gtxcurseswin.h ${DEST}/include/afs/gtxcurseswin.h
+ ${INSTALL_DATA} ${srcdir}/gtxdumbwin.h ${DEST}/include/afs/gtxdumbwin.h
+ ${INSTALL_DATA} ${srcdir}/gtxframe.h ${DEST}/include/afs/gtxframe.h
+ ${INSTALL_DATA} ${srcdir}/gtxinput.h ${DEST}/include/afs/gtxinput.h
+ ${INSTALL_DATA} ${srcdir}/gtxkeymap.h ${DEST}/include/afs/gtxkeymap.h
+ ${INSTALL_DATA} ${srcdir}/gtxlightobj.h ${DEST}/include/afs/gtxlightobj.h
+ ${INSTALL_DATA} ${srcdir}/gtxobjdict.h ${DEST}/include/afs/gtxobjdict.h
+ ${INSTALL_DATA} ${srcdir}/gtxobjects.h ${DEST}/include/afs/gtxobjects.h
+ ${INSTALL_DATA} ${srcdir}/gtxtextcb.h ${DEST}/include/afs/gtxtextcb.h
+ ${INSTALL_DATA} ${srcdir}/gtxtextobj.h ${DEST}/include/afs/gtxtextobj.h
+ ${INSTALL_DATA} ${srcdir}/gtxwindows.h ${DEST}/include/afs/gtxwindows.h
+ ${INSTALL_DATA} ${srcdir}/gtxX11win.h ${DEST}/include/afs/gtxX11win.h
#
# Misc targets
$(RM) -f *.o *.a *.ln object_test screen_test curses_test core cb_test gtxtest AFS_component_version_number.c
include ../config/Makefile.version
-
-