echoping/SRC/plugins/Makefile.in

32 lines
503 B
Makefile
Raw Normal View History

CCFLAGS=-DHAVE_CONFIG_H -Wall -O0 -g
CCDYNAMICFLAGS=${CCFLAGS} -fPIC
LDFLAGS=
2004-04-06 20:35:56 +00:00
LDDYNAMICFLAGS=${LDFLAGS} -shared -lpq -lresolv # TODO: add the flags only when necessary
2004-04-06 20:35:56 +00:00
PLUGINS=random.so whois.so postgres dns.so
all: $(PLUGINS)
postgres: postgresql.so
%.o: %.c
${CC} ${CCDYNAMICFLAGS} -c -o $@ $<
%.so: %.o
${CC} ${LDDYNAMICFLAGS} -o $@ $<
test-postgresql: test-postgresql.o
${CC} -o $@ -l pq $<
clean:
-rm -f *.o *.so program
distclean: clean
-rm -f *~
.SECONDARY: ${OBJECTS}
# $Id$