diff options
author | John Crispin <john@openwrt.org> | 2008-01-26 04:24:05 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2008-01-26 04:24:05 +0000 |
commit | 8f39c35159a208f1d36b9912c5d307c543203b2c (patch) | |
tree | 8dbcb9d395715c1aa5bef2a4c6b6d75defb43dbb /package/gpioctl/src/Makefile | |
parent | d7b86662f7fccf36e3091cdd5f7116d0a0a28279 (diff) | |
download | master-31e0f0ae-8f39c35159a208f1d36b9912c5d307c543203b2c.tar.gz master-31e0f0ae-8f39c35159a208f1d36b9912c5d307c543203b2c.tar.bz2 master-31e0f0ae-8f39c35159a208f1d36b9912c5d307c543203b2c.zip |
add userspace tool for gpio_dev
SVN-Revision: 10267
Diffstat (limited to 'package/gpioctl/src/Makefile')
-rw-r--r-- | package/gpioctl/src/Makefile | 24 |
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 + |