mirror of https://framagit.org/bortzmeyer/echoping
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
348 B
Makefile
27 lines
348 B
Makefile
CCFLAGS=-DHAVE_CONFIG_H -Wall -O0 -g
|
|
CCDYNAMICFLAGS=${CCFLAGS} -fPIC
|
|
LDFLAGS=
|
|
LDDYNAMICFLAGS=${LDFLAGS} -shared
|
|
|
|
PLUGINS=random.so whois.so
|
|
|
|
all: $(PLUGINS)
|
|
|
|
%.o: %.c
|
|
${CC} ${CCDYNAMICFLAGS} -c -o $@ $<
|
|
|
|
%.so: %.o
|
|
${CC} ${LDDYNAMICFLAGS} -o $@ $<
|
|
|
|
clean:
|
|
-rm -f *.o *.so program
|
|
|
|
distclean: clean
|
|
-rm -f *~
|
|
|
|
.SECONDARY: ${OBJECTS}
|
|
|
|
# $Id$
|
|
|
|
|