1*d6eebaa4SHervé Poussineau# 2*d6eebaa4SHervé Poussineau# Copyright (c) 2001, 2002 Swedish Institute of Computer Science. 3*d6eebaa4SHervé Poussineau# All rights reserved. 4*d6eebaa4SHervé Poussineau# 5*d6eebaa4SHervé Poussineau# Redistribution and use in source and binary forms, with or without modification, 6*d6eebaa4SHervé Poussineau# are permitted provided that the following conditions are met: 7*d6eebaa4SHervé Poussineau# 8*d6eebaa4SHervé Poussineau# 1. Redistributions of source code must retain the above copyright notice, 9*d6eebaa4SHervé Poussineau# this list of conditions and the following disclaimer. 10*d6eebaa4SHervé Poussineau# 2. Redistributions in binary form must reproduce the above copyright notice, 11*d6eebaa4SHervé Poussineau# this list of conditions and the following disclaimer in the documentation 12*d6eebaa4SHervé Poussineau# and/or other materials provided with the distribution. 13*d6eebaa4SHervé Poussineau# 3. The name of the author may not be used to endorse or promote products 14*d6eebaa4SHervé Poussineau# derived from this software without specific prior written permission. 15*d6eebaa4SHervé Poussineau# 16*d6eebaa4SHervé Poussineau# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17*d6eebaa4SHervé Poussineau# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18*d6eebaa4SHervé Poussineau# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19*d6eebaa4SHervé Poussineau# SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20*d6eebaa4SHervé Poussineau# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21*d6eebaa4SHervé Poussineau# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22*d6eebaa4SHervé Poussineau# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23*d6eebaa4SHervé Poussineau# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24*d6eebaa4SHervé Poussineau# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25*d6eebaa4SHervé Poussineau# OF SUCH DAMAGE. 26*d6eebaa4SHervé Poussineau# 27*d6eebaa4SHervé Poussineau# This file is part of the lwIP TCP/IP stack. 28*d6eebaa4SHervé Poussineau# 29*d6eebaa4SHervé Poussineau# Author: Adam Dunkels <adam@sics.se> 30*d6eebaa4SHervé Poussineau# 31*d6eebaa4SHervé Poussineau 32*d6eebaa4SHervé Poussineauall compile: lwip_fuzz lwip_fuzz2 lwip_fuzz3 33*d6eebaa4SHervé Poussineau.PHONY: all clean 34*d6eebaa4SHervé Poussineau 35*d6eebaa4SHervé Poussineauifeq ($(origin CC), default) 36*d6eebaa4SHervé PoussineauCC=afl-gcc 37*d6eebaa4SHervé Poussineauendif 38*d6eebaa4SHervé Poussineau 39*d6eebaa4SHervé PoussineauLDFLAGS=-lm 40*d6eebaa4SHervé Poussineau# use 'make D=-DUSER_DEFINE' to pass a user define to gcc 41*d6eebaa4SHervé PoussineauCFLAGS=-O2 $(D) 42*d6eebaa4SHervé Poussineau 43*d6eebaa4SHervé PoussineauLWIPDIR=../../src 44*d6eebaa4SHervé PoussineauCONTRIBDIR=../../contrib 45*d6eebaa4SHervé Poussineauinclude $(CONTRIBDIR)/ports/unix/Common.mk 46*d6eebaa4SHervé Poussineau 47*d6eebaa4SHervé PoussineauDEPFILES=.depend_fuzz .depend_lwip .depend_app 48*d6eebaa4SHervé Poussineau 49*d6eebaa4SHervé Poussineauclean: 50*d6eebaa4SHervé Poussineau rm -f *.o $(LWIPLIBCOMMON) $(APPLIB) lwip_fuzz lwip_fuzz2 lwip_fuzz3 *.s $(DEPFILES) *.core core 51*d6eebaa4SHervé Poussineau 52*d6eebaa4SHervé Poussineaudepend dep: $(DEPFILES) 53*d6eebaa4SHervé Poussineau @true 54*d6eebaa4SHervé Poussineau 55*d6eebaa4SHervé Poussineauifneq ($(MAKECMDGOALS),clean) 56*d6eebaa4SHervé Poussineauinclude $(DEPFILES) 57*d6eebaa4SHervé Poussineauendif 58*d6eebaa4SHervé Poussineau 59*d6eebaa4SHervé Poussineau.depend_fuzz: fuzz.c fuzz2.c fuzz3.c fuzz_common.c 60*d6eebaa4SHervé Poussineau $(CCDEP) $(CFLAGS) -MM $^ > .depend_fuzz || rm -f .depend_fuzz 61*d6eebaa4SHervé Poussineau.depend_lwip: $(LWIPFILES) 62*d6eebaa4SHervé Poussineau $(CCDEP) $(CFLAGS) -MM $^ > .depend_lwip || rm -f .depend_lwip 63*d6eebaa4SHervé Poussineau.depend_app: $(APPFILES) 64*d6eebaa4SHervé Poussineau $(CCDEP) $(CFLAGS) -MM $^ > .depend_app || rm -f .depend_app 65*d6eebaa4SHervé Poussineau 66*d6eebaa4SHervé Poussineaulwip_fuzz: $(DEPFILES) $(LWIPLIBCOMMON) $(APPLIB) fuzz.o fuzz_common.o 67*d6eebaa4SHervé Poussineau $(CC) $(CFLAGS) -o lwip_fuzz fuzz.o fuzz_common.o $(APPLIB) $(LWIPLIBCOMMON) $(LDFLAGS) 68*d6eebaa4SHervé Poussineau 69*d6eebaa4SHervé Poussineaulwip_fuzz2: $(DEPFILES) $(LWIPLIBCOMMON) $(APPLIB) fuzz2.o fuzz_common.o 70*d6eebaa4SHervé Poussineau $(CC) $(CFLAGS) -o lwip_fuzz2 fuzz2.o fuzz_common.o $(APPLIB) $(LWIPLIBCOMMON) $(LDFLAGS) 71*d6eebaa4SHervé Poussineau 72*d6eebaa4SHervé Poussineaulwip_fuzz3: $(DEPFILES) $(LWIPLIBCOMMON) $(APPLIB) fuzz3.o fuzz_common.o 73*d6eebaa4SHervé Poussineau $(CC) $(CFLAGS) -o lwip_fuzz3 fuzz3.o fuzz_common.o $(APPLIB) $(LWIPLIBCOMMON) $(LDFLAGS) 74