# We don't need kludgy automatizations here, # let's use a simple Makefile. # Just tweak the values below to fix your paths # # $Id: Makefile,v 1.1.1.1 2004/05/02 14:28:32 jaromil Exp $ CC = gcc LINKER = ld CFLAGS = -I. -Wall INSTALL = install -c PREFIX = /usr/local DOXYGEN = doxygen all: # ------------------------------------------------------------ # Linux Video Dynamic Objects # common header for a shared plugin scheme # # files included: # livido.h complete livido header # plugin_example.c shared plugin example implementation # host_example.c plugin loader example implementation # livido.dox doxygen configuration to generate documentation # # available targets: # make doc generate html documentation in the doc/ directory # make examples compile example implementations # ------------------------------------------------------------ # make doc doc: $(DOXYGEN) livido.dox # make examples examples: host_example plugin_example.so plugin_example.so: plugin_example.o host_example: host_example.c #make clean clean: rm -rf *.o *.so *~ host_example doc # generic make rules %: %.c $(CC) $(CFLAGS) -o $@ $< -ldl %.o: %.c $(CC) $(CFLAGS) -c -o $@ $< %.so: %.o $(LINKER) -E -z now -shared $^ -o $@