1include ../config.in 2include ../config.mk 3 4OBJS = cache.o rfc1035.o dhcp.o util.o option.o forward.o network.o dnsmasq.o 5BINDIR = $(TARGETDIR)/usr/sbin 6MANDIR = $(TARGETDIR)/usr/man 7 8all : dnsmasq 9 10clean : 11 rm -f *~ $(OBJS) dnsmasq 12 rm -f $(BINDIR)/dnsmasq 13 14.c.o: dnsmasq.h 15 $(CC) -O2 -Wall -W -c $*.c 16 17 18dnsmasq : $(OBJS) dnsmasq.h config.h 19 $(CC) -o $@ $(OBJS) $(LIBS) 20 21install : dnsmasq 22 install -d $(BINDIR) 23# install -m 644 dnsmasq.8 $(MANDIR)/man8 24 install -m 755 dnsmasq $(BINDIR) 25 $(STRIP) $(BINDIR)/dnsmasq 26 27 28 29 30