dnsmasq: stay close as possible to master branch
[tomato.git] / release / src-rt-6.x.4708 / router / bridge / brctl / Makefile.in
blobe1956d69ce2405347be5caa5671401f78967ce49
2 KERNEL_HEADERS=-I@KERNEL_HEADERS@
4 CC=@CC@
5 CFLAGS= -Wall @CFLAGS@
6 LDFLAGS=@LDFLAGS@
7 INCLUDE=-I../libbridge $(KERNEL_HEADERS)
8 LIBS= -L ../libbridge -lbridge @LIBS@
10 prefix=@prefix@
11 exec_prefix=@exec_prefix@
12 bindir=@bindir@
13 sbindir=@sbindir@
14 mandir=@mandir@
16 INSTALL=@INSTALL@
19 common_SOURCES= brctl_cmd.c brctl_disp.c
20 brctl_SOURCES= brctl.c $(common_SOURCES)
22 common_OBJECTS= $(common_SOURCES:.c=.o)
23 brctl_OBJECTS= $(brctl_SOURCES:.c=.o)
25 OBJECTS= $(common_OBJECTS) $(brctl_OBJECTS)
27 PROGRAMS= brctl
30 all: $(PROGRAMS)
32 install: $(PROGRAMS)
33 mkdir -p $(DESTDIR)$(sbindir)
34 $(INSTALL) -m 755 $(PROGRAMS) $(DESTDIR)$(sbindir)
36 brctl: $(brctl_OBJECTS) ../libbridge/libbridge.a
37 $(CC) $(LDFLAGS) $(brctl_OBJECTS) $(LIBS) -o brctl
39 %.o: %.c brctl.h
40 $(CC) $(CFLAGS) $(INCLUDE) -c $<
42 clean:
43 rm -f *.o brctl core