1include ../../config.mk 2include ../../config.in 3 4# Uncomment this on Solaris. 5#LIBS = -lsocket -lnsl 6 7CFLAGS?= -O2 8 9ifeq ($(MPOE_ENABLE_FLAG),y) 10 CFLAGS += -DMULTIPLE_PPPOE 11endif 12 13ifeq ($(CONFIG_STATIC_PPPOE),y) 14CFLAGS += -DSTATIC_PPPOE 15else 16CFLAGS += -USTATIC_PPPOE 17endif 18 19# NO IPv6 support at current stat. Must define, otherwise config.h will define HAVE_IPV6, 20# which may cause IPv4 dns query blocked. weal,April 28 21ifneq ($(INCLUDE_IPV6_FLAG),y) 22CFLAGS += -DNO_IPV6 23endif 24 25#OBJS = cache.o rfc1035.o util.o option.o forward.o isc.o \ 26# network.o dnsmasq.o dhcp.o lease.o rfc2131.o 27 28OBJS = cache.o rfc1035.o util.o option.o forward.o \ 29 network.o dnsmasq.o 30 31.c.o: dnsmasq.h config.h 32 $(CC) $(CFLAGS) $(RPM_OPT_FLAGS) -Wall -W -c $*.c 33 34dnsmasq : $(OBJS) dnsmasq.h config.h 35 $(CC) -o $@ $(OBJS) $(LIBS) 36 37 38 39