1 # Common Makefile 'top'
16 MKDEPS = $(topdir)/mkdeps
19 INSTALL_BIN = $(INSTALL) -m 755
20 INSTALL_DIR = $(INSTALL) -d
21 INSTALL_DATA = $(INSTALL) -m 644
24 exec_prefix = ${prefix}
25 bindir = ${exec_prefix}/bin
26 libdir = ${exec_prefix}/lib
27 includedir = ${prefix}/include
31 SUBMAKE = $(MAKE) DESTDIR='$(DESTDIR)'
33 INC = -I$(topdir) -I$(topdir)/include -I.
36 CFLAGS = -g -Wall $(DEFS) $(INC)
44 wrap_AR = $(AR) $(ARFLAGS) $(1) $(2)
45 wrap_CC = $(CC) $(CFLAGS) $(1) -c $(2) -o $(3)
46 wrap_LD = $(CC) -o $(1) $(2) $(3) $(LDFLAGS)
47 wrap_RANLIB = $(RANLIB) $(1)
52 wrap_AR = @echo "AR $(1)"; $(AR) $(ARFLAGS) $(1) $(2)
53 wrap_CC = @echo "CC $(2)"; $(CC) $(CFLAGS) $(1) -c $(2) -o $(3)
54 wrap_LD = @echo "LD $(2)"; $(CC) -o $(1) $(2) $(3) $(LDFLAGS)
55 wrap_RANLIB = @echo "RANLIB $(1)"; $(RANLIB) $(1)
58 # vim: ts=8 sw=8 noet fdm=marker tw=80