author | schurig <schurig> | 2003-06-03 11:48:21 (UTC) |
---|---|---|
committer | schurig <schurig> | 2003-06-03 11:48:21 (UTC) |
commit | 17b5bc4593ab0786f6488d452ae2430d6e4c46a5 (patch) (unidiff) | |
tree | 65833ee21bfd2f43ced81559dcf0fbefde63303e | |
parent | 2474e1face1f618a23c2fa5c70b5021fb9af7c20 (diff) | |
download | opie-17b5bc4593ab0786f6488d452ae2430d6e4c46a5.zip opie-17b5bc4593ab0786f6488d452ae2430d6e4c46a5.tar.gz opie-17b5bc4593ab0786f6488d452ae2430d6e4c46a5.tar.bz2 |
allow "make install" to install this stuff into an nfs-root
-rw-r--r-- | core/opiealarm/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/opiealarm/Makefile b/core/opiealarm/Makefile index 255083d..0c8467e 100644 --- a/core/opiealarm/Makefile +++ b/core/opiealarm/Makefile | |||
@@ -1,22 +1,26 @@ | |||
1 | 1 | ||
2 | DESTDIR=$(OPIEDIR)/bin | 2 | DESTDIR=$(OPIEDIR)/bin |
3 | 3 | ||
4 | CROSS:=arm-linux- | 4 | CROSS:=arm-linux- |
5 | CC :=$(CROSS)gcc | 5 | CC :=$(CROSS)gcc |
6 | LD :=$(CROSS)gcc | 6 | LD :=$(CROSS)gcc |
7 | STRIP:=$(CROSS)strip | 7 | STRIP:=$(CROSS)strip |
8 | 8 | ||
9 | CFLAGS:=-O2 | 9 | CFLAGS:=-O2 |
10 | LDFLAGS:= | 10 | LDFLAGS:= |
11 | 11 | ||
12 | all: $(DESTDIR)/opiealarm | 12 | all: $(DESTDIR)/opiealarm |
13 | 13 | ||
14 | $(DESTDIR)/opiealarm: opiealarm.c | 14 | $(DESTDIR)/opiealarm: opiealarm.c |
15 | $(CC) $(CFLAGS) opiealarm.c -o $(DESTDIR)/opiealarm $(LDFLAGS) | 15 | $(CC) $(CFLAGS) opiealarm.c -o $(DESTDIR)/opiealarm $(LDFLAGS) |
16 | $(STRIP) --strip-all $(DESTDIR)/opiealarm | 16 | $(STRIP) --strip-all $(DESTDIR)/opiealarm |
17 | chmod u+s $(DESTDIR)/opiealarm | 17 | chmod u+s $(DESTDIR)/opiealarm |
18 | chown root $(DESTDIR)/opiealarm 2>/dev/null || echo -e "\nopiealarm must be owned by root to work correctly.\n" | 18 | chown root $(DESTDIR)/opiealarm 2>/dev/null || echo -e "\nopiealarm must be owned by root to work correctly.\n" |
19 | 19 | ||
20 | clean: | 20 | clean: |
21 | -rm -f *~ core | 21 | -rm -f *~ core |
22 | 22 | ||
23 | install: | ||
24 | cp $(DESTDIR)/opiealarm $(INSTALL_ROOT)/opt/QtPalmtop/bin | ||
25 | chown root $(INSTALL_ROOT)/opt/QtPalmtop/bin/opiealarm | ||
26 | chmod u+s $(INSTALL_ROOT)/opt/QtPalmtop/bin/opiealarm 2>/dev/null || echo -e "\nopiealarm must be owned by root to work correctly.\n" | ||