-rw-r--r-- | core/opiealarm/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/core/opiealarm/Makefile b/core/opiealarm/Makefile new file mode 100644 index 0000000..e988abf --- a/dev/null +++ b/core/opiealarm/Makefile @@ -0,0 +1,26 @@ + +DESTDIR=../../bin + +CROSS:=arm-linux- +CC :=$(CROSS)gcc +LD :=$(CROSS)gcc +STRIP:=$(CROSS)strip + +CFLAGS:=-O2 +LDFLAGS:= + +all: $(DESTDIR)/opiealarm $(DESTDIR)/opieatd + +$(DESTDIR)/opiealarm: opiealarm.c + $(CC) $(CFLAGS) opiealarm.c -o $(DESTDIR)/opiealarm $(LDFLAGS) + $(STRIP) -s $(DESTDIR)/opiealarm + chmod u+s $(DESTDIR)/opiealarm + chown root $(DESTDIR)/opiealarm 2>/dev/null || echo -e "\nopiealarm must be owned by root to work correctly.\n" + +$(DESTDIR)/opieatd: opieatd + cp opieatd $(DESTDIR)/opieatd + chmod +x $(DESTDIR)/opieatd + +clean: + -rm -f *~ core + |