aboutsummaryrefslogtreecommitdiffstats
path: root/package/gpioctl/src/Makefile
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2008-01-26 04:24:05 +0000
committerJohn Crispin <john@openwrt.org>2008-01-26 04:24:05 +0000
commit8f39c35159a208f1d36b9912c5d307c543203b2c (patch)
tree8dbcb9d395715c1aa5bef2a4c6b6d75defb43dbb /package/gpioctl/src/Makefile
parentd7b86662f7fccf36e3091cdd5f7116d0a0a28279 (diff)
downloadupstream-8f39c35159a208f1d36b9912c5d307c543203b2c.tar.gz
upstream-8f39c35159a208f1d36b9912c5d307c543203b2c.tar.bz2
upstream-8f39c35159a208f1d36b9912c5d307c543203b2c.zip
add userspace tool for gpio_dev
SVN-Revision: 10267
Diffstat (limited to 'package/gpioctl/src/Makefile')
-rw-r--r--package/gpioctl/src/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/gpioctl/src/Makefile b/package/gpioctl/src/Makefile
new file mode 100644
index 0000000000..467697410a
--- /dev/null
+++ b/package/gpioctl/src/Makefile
@@ -0,0 +1,24 @@
+PROGS = gpioctl
+
+INSTDIR = $(prefix)/usr/bin
+INSTMODE = 0755
+INSTOWNER = root
+INSTGROUP = root
+
+OBJS = main.o
+
+all: $(PROGS)
+$(PROGS): $(OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
+ $(STRIP) $@
+
+%.o: %.c
+ $(CC) -c $(CFLAGS) $^ -o $@
+
+install: $(PROGS)
+ $(INSTALL) -d $(INSTDIR)
+ $(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) $(PROGS) $(INSTDIR)
+
+clean:
+ rm -f $(PROGS) *.o core
+