mirror of
https://framagit.org/bortzmeyer/echoping
synced 2024-11-09 01:10:38 +00:00
c6b57a96dc
* Better build system, with clean and dist targets
37 lines
555 B
Makefile
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: ##
|
|
|