-rw-r--r-- | core/opiealarm/Makefile | 22 | ||||
-rw-r--r-- | core/opiealarm/opiealarm.pro | 4 |
2 files changed, 4 insertions, 22 deletions
diff --git a/core/opiealarm/Makefile b/core/opiealarm/Makefile deleted file mode 100644 index 255083d..0000000 --- a/core/opiealarm/Makefile +++ b/dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | |||
2 | DESTDIR=$(OPIEDIR)/bin | ||
3 | |||
4 | CROSS:=arm-linux- | ||
5 | CC :=$(CROSS)gcc | ||
6 | LD :=$(CROSS)gcc | ||
7 | STRIP:=$(CROSS)strip | ||
8 | |||
9 | CFLAGS:=-O2 | ||
10 | LDFLAGS:= | ||
11 | |||
12 | all: $(DESTDIR)/opiealarm | ||
13 | |||
14 | $(DESTDIR)/opiealarm: opiealarm.c | ||
15 | $(CC) $(CFLAGS) opiealarm.c -o $(DESTDIR)/opiealarm $(LDFLAGS) | ||
16 | $(STRIP) --strip-all $(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" | ||
19 | |||
20 | clean: | ||
21 | -rm -f *~ core | ||
22 | |||
diff --git a/core/opiealarm/opiealarm.pro b/core/opiealarm/opiealarm.pro new file mode 100644 index 0000000..6125b19 --- a/dev/null +++ b/core/opiealarm/opiealarm.pro | |||
@@ -0,0 +1,4 @@ | |||
1 | TEMPLATE=app | ||
2 | CONFIG=console | ||
3 | SOURCES=opiealarm.c | ||
4 | |||