Extracting parts of the formatting method into configuration and an options helper...
[cslatevm.git] / src / plugins / Makefile
blobabd4e08993db8e3e07bda4b1142ccf2fe5f5db65
2 slateroot=../..
4 include $(slateroot)/common.mk
6 all: $(PLUGINS)
7 $(SILENT) $(LIBTOOL) $(LIBTOOL_FLAGS) --mode=finish $(libdir)
9 clean:
10 $(SILENT) rm -f $(libdir)/* *.a *.o .libs/*
13 %.o: %.c
14 $(SECHO) "Compiling src/plugins/$(BASENAME)/$< ($(MODE))"
15 $(SILENT) $(LIBTOOL) $(LIBTOOL_FLAGS) --mode=compile $(CC) $(CFLAGS) $(CFLAGS_$<) -o $@ -c $<
17 %.o: %.m
18 $(SECHO) "Compiling src/plugins/$(BASENAME)/$< ($(MODE))"
19 $(SILENT) $(LIBTOOL) $(LIBTOOL_FLAGS) --mode=compile $(CC) $(CFLAGS) $(CFLAGS_$<) -o $@ -c $<
21 %$(LIB_SO_EXT): %.la
22 $(SECHO) "Installing $(BASENAME) Plug-in ($(MODE))"
23 mkdir -p `pwd`/$(libdir)
24 $(SILENT) $(LIBTOOL) $(LIBTOOL_FLAGS) --mode=install install $< `pwd`/$(libdir) $(SILENT_ERRORS)
26 %.la: %.lo
27 $(SECHO) "Linking src/plugins/$(BASENAME)/$< ($(MODE))"
28 $(SILENT) $(LIBTOOL) $(LIBTOOL_FLAGS) --mode=link $(CC) $(LIBS) $(LDFLAGS) $(LDFLAGS_$<) -module -o $@ $< -rpath `pwd` $(LDFLAGS)
30 %.lo: %.c
31 $(SECHO) "Compiling src/plugins/$(BASENAME)/$< ($(MODE))"
32 $(SILENT) $(LIBTOOL) $(LIBTOOL_FLAGS) --mode=compile $(CC) $(CFLAGS) $(CFLAGS_$<) -o $@ -c $<
34 %.lo: %.m
35 $(SECHO) "Compiling src/plugins/$(BASENAME)/$< ($(MODE))"
36 $(SILENT) $(LIBTOOL) $(LIBTOOL_FLAGS) --mode=compile $(CC) $(CFLAGS) $(CFLAGS_$<) -o $@ -c $<
38 #%.o: %.c
39 # $(LIBTOOL) $(LIBTOOL_FLAGS) --mode=compile $(CC) $(CFLAGS) $(CFLAGS_$<) -fPIC -c -o $@ $<
40 # $(CC) $(CFLAGS) $(CFLAGS_$<) -c -o $@ $<
42 #%$(LIB_SO_EXT): %.o
43 # $(LIBTOOL) $(LIBTOOL_FLAGS) --mode=link $(CC) $(CFLAGS) -shared -fPIC $(LDFLAGS) $(LDFLAGS_$<) -o $@ $<
45 #clean:
46 # $(LIBTOOL) $(LIBTOOL_FLAGS) --mode=clean rm -f *.o *.so ../../lib/*.$(LIB_SO_EXT)
48 .PHONY: clean