mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 17:27:01 +00:00
Made the OOM-shim package makefile work
This commit is contained in:
@@ -1,9 +1,27 @@
|
||||
include $(ONL)/make/any.mk
|
||||
|
||||
ifndef TOOLCHAIN
|
||||
$(error Must define $$TOOLCHAIN to use this Makefile)
|
||||
endif
|
||||
|
||||
liboom_shim.so:
|
||||
@$(CC) -o liboom_shim.so -shared -PIC liboom_shim.c
|
||||
ifndef RELEASE
|
||||
$(warn Assuming RELEASE is wheezy -- FIXME)
|
||||
RELEASE=wheezy
|
||||
endif
|
||||
|
||||
PACKAGE=oom_shim
|
||||
|
||||
OUTDIR=$(ONL)/packages/base/$(ARCH)/$(PACKAGE)/builds/BUILD/$(RELEASE)/$(TOOLCHAIN)
|
||||
|
||||
VPATH=$(ONL)/packages/base/any/$(PACKAGE)/src
|
||||
|
||||
$(OUTDIR)/liboom_shim.so: oom_shim.c
|
||||
@mkdir -p $(OUTDIR) || true
|
||||
@$(CC) -o $(OUTDIR)/liboom_shim.so -shared -fPIC $+
|
||||
|
||||
.PHONY: deb
|
||||
deb:
|
||||
$(MAKE) -C deb
|
||||
|
||||
clean:
|
||||
rm -rf $(OUTDIR)
|
||||
|
||||
Reference in New Issue
Block a user