echoping/SRC/plugins/Makefile.plugins.in
Stephane Bortzmeyer c6b57a96dc * Documentation for plugins
* Better build system, with clean and dist targets
2004-05-26 20:12:12 +00:00

37 lines
555 B
Makefile

CCFLAGS=-DHAVE_CONFIG_H -Wall -O0 -g
CCDYNAMICFLAGS=${CCFLAGS} -fPIC
ifeq ("${LDFLAGS}","")
LDFLAGS=
endif
LDDYNAMICFLAGS=${LDFLAGS} -shared
# Autoconf variables
prefix = @prefix@
exec_prefix = @exec_prefix@
DESTDIR=@plugins_dir@
MANDIR=@mandir@
INSTALL=@INSTALL@
%.o: %.c
${CC} ${CCDYNAMICFLAGS} -c -o $@ $<
%.so: %.o
${CC} ${LDDYNAMICFLAGS} -o $@ $<
prepare-install:
@if [ ! -d ${DESTDIR} ]; then \
mkdir ${DESTDIR}; \
fi
clean:
-rm -f *.o *.so
distclean: clean
-rm -f *~
# $Id$
## Local Variables: ##
## mode:makefile ##
## End: ##