aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/dummy-libxbmc/Makefile
blob: 203dfa14772f226a6af5c342f245349c62ece3a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
include ../../Makefile.include
DEPS= ../../Makefile.include Makefile dummy-libxbmc.c

LIBDYLIB=libxbmc.so

all: $(PLATFORM)/$(LIBDYLIB) .installed-$(PLATFORM)

$(PLATFORM):
	mkdir -p $(PLATFORM)

$(PLATFORM)/$(LIBDYLIB): $(PLATFORM) $(DEPS)
	$(CC) -shared -o $(PLATFORM)/libxbmc.so dummy-libxbmc.c

.installed-$(PLATFORM): $(PLATFORM)/$(LIBDYLIB)
	mkdir -p  $(PREFIX)/lib/dummy-libxbmc
	cp $(PLATFORM)/libxbmc.so $(PREFIX)/lib/dummy-libxbmc
	touch $@

clean:
	rm -rf $(PLATFORM)
	rm -f .installed-$(PLATFORM)

distclean::
	rm -rf $(PLATFORM) .installed-$(PLATFORM)