File: Rules.plugin

package info (click to toggle)
openbios-sparc 1.0%2Bsvn640-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,412 kB
  • ctags: 12,091
  • sloc: ansic: 57,249; asm: 2,680; xml: 1,335; cpp: 414; makefile: 224; sh: 190
file content (15 lines) | stat: -rw-r--r-- 313 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -*- makefile -*-

INCLUDES		= -I$(top_srcdir)/include -DBOOTSTRAP
CFLAGS			= -fPIC

%.so: %.o
	$(CC) -shared $(CFLAGS) $(filter %.o,$^) -o $@

THISDIR			:= $(notdir $(shell pwd))

all-local:		$(addprefix $(ODIR)/../,$(PLUGINS))

$(ODIR)/../%.so: $(ODIR)/%.so
	install -d ../$(ODIR)
	ln -f "../$(THISDIR)"/$< $@