2001-05-13 15:40:29 +04:00
|
|
|
#
|
|
|
|
# build tools
|
|
|
|
#
|
2001-10-06 18:18:01 +04:00
|
|
|
AR = /usr/bin/ar cru
|
|
|
|
CD = cd
|
2001-05-13 15:40:29 +04:00
|
|
|
CXX = /usr/bin/g++
|
2001-10-06 18:18:01 +04:00
|
|
|
ECHO = echo
|
2001-05-13 15:40:29 +04:00
|
|
|
LD = /usr/bin/ld
|
|
|
|
MKDIR = /bin/mkdir
|
|
|
|
RM = /bin/rm -f
|
|
|
|
RMR = /bin/rm -rf
|
|
|
|
|
|
|
|
#
|
|
|
|
# compiler options
|
|
|
|
#
|
2001-11-19 03:33:36 +03:00
|
|
|
GCXXDEFS = -D_XOPEN_SOURCE=600
|
2001-10-06 18:18:01 +04:00
|
|
|
GCXXINCS = -I$(DEPTH)/include -I/usr/X11R6/include
|
2001-10-21 00:43:31 +04:00
|
|
|
GCXXOPTS = -Wall -W -fexceptions
|
2001-05-13 15:40:29 +04:00
|
|
|
CXXOPTIMIZER = -g
|
|
|
|
#CXXOPTIMIZER = -O2 -DNDEBUG
|
|
|
|
|
|
|
|
#
|
|
|
|
# linker options
|
|
|
|
#
|
|
|
|
GLDLIBS = -L/usr/X11R6/lib -lX11 -lXext -lXtst
|
2001-10-06 18:18:01 +04:00
|
|
|
GLDOPTS = -L$(LIBDIR)
|
|
|
|
|
2001-11-25 21:42:13 +03:00
|
|
|
#
|
|
|
|
# binary stuff
|
|
|
|
#
|
|
|
|
BINTARGET = $(BINDIR)/$(TARGET)
|
|
|
|
|
2001-10-06 18:18:01 +04:00
|
|
|
#
|
|
|
|
# library stuff
|
|
|
|
#
|
|
|
|
LIBTARGET = $(LIBDIR)/lib$(TARGET).a
|
2001-05-13 15:40:29 +04:00
|
|
|
|
|
|
|
#
|
|
|
|
# dependency generation stuff
|
|
|
|
#
|
|
|
|
MKDEP = $(DEPTH)/tools/depconv
|
|
|
|
MKDEPOPT = -MD
|
|
|
|
MKDEPPRE =
|
|
|
|
MKDEPPOST = $(MKDEP) -f $(MKDEPFILE) $*.d; $(RM) $*.d
|
|
|
|
MKDEPFILE = Makedepend
|
|
|
|
|
|
|
|
#
|
|
|
|
# stuff to clean
|
|
|
|
#
|
|
|
|
DIRT = $(_FORCE) $(LDIRT) $(GDIRT)
|
|
|
|
GDIRT = *.[eoud] a.out core ar.tmp.* $(MKDEPFILE)
|
|
|
|
|
|
|
|
#
|
2001-10-06 18:18:01 +04:00
|
|
|
# Rule macros for nonterminal makefiles that iterate over subdirectories,
|
|
|
|
# making the current target. Set SUBDIRS to the relevant list of kids.
|
2001-05-13 15:40:29 +04:00
|
|
|
#
|
2001-10-06 18:18:01 +04:00
|
|
|
# Set NOSUBMESG to any value to suppress a warning that subdirectories
|
|
|
|
# are not present.
|
2001-05-13 15:40:29 +04:00
|
|
|
#
|
2001-10-06 18:18:01 +04:00
|
|
|
SUBDIR_MAKERULE= \
|
|
|
|
if test ! -d $$d; then \
|
|
|
|
if test "$(NOSUBMESG)" = "" ; then \
|
|
|
|
${ECHO} "SKIPPING $$d: No such directory."; \
|
|
|
|
fi \
|
|
|
|
else \
|
|
|
|
${ECHO} "${CD} $$d; $(MAKE) $${RULE:=$@}"; \
|
|
|
|
(${CD} $$d; ${MAKE} $${RULE:=$@}); \
|
|
|
|
fi
|
2001-05-13 15:40:29 +04:00
|
|
|
|
2001-10-06 18:18:01 +04:00
|
|
|
SUBDIRS_MAKERULE= \
|
|
|
|
@for d in $(SUBDIRS); do $(SUBDIR_MAKERULE); done
|