generic: add rt2x00_platform.h
[openwrt.git] / package / gpioctl / src / Makefile
1 PROGS = gpioctl
2
3 INSTDIR = $(prefix)/usr/bin
4 INSTMODE = 0755
5 INSTOWNER = root
6 INSTGROUP = root
7
8 OBJS = main.o
9
10 all: $(PROGS)
11 $(PROGS): $(OBJS)
12 $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
13 $(STRIP) $@
14
15 %.o: %.c
16 $(CC) -c $(CFLAGS) $^ -o $@
17
18 install: $(PROGS)
19 $(INSTALL) -d $(INSTDIR)
20 $(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) $(PROGS) $(INSTDIR)
21
22 clean:
23 rm -f $(PROGS) *.o core
24
This page took 0.046605 seconds and 5 git commands to generate.