-rw-r--r-- | core/opiealarm/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/opiealarm/Makefile b/core/opiealarm/Makefile index f20d451..03e6957 100644 --- a/core/opiealarm/Makefile +++ b/core/opiealarm/Makefile @@ -1,18 +1,18 @@ -DESTDIR=../../bin +DESTDIR=$(OPIEDIR)/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) --strip-all $(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" |