File Makefile32.tools of Package dba-apache2-mod_qos-109

CFLAGS=-prefer-pic -O2 -g -march=i386 -mtune=i686 -fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread

all:	qs_util.o qsfilter2 qslog qspng qsrotate qssign qstail qsgrep qsexec qscheck

BASE_OBJECTS = qs_util.o
INCLUDES = -I. -I$(APACHE_HOME)/include -I/usr/include/apr-1/
LIBS = -lpthread -lapr-1 -laprutil-1 -lpcre

qs_util.o: qs_util.c qs_util.h
	gcc $(CFLAGS) -c $(INCLUDES) qs_util.c

qslog: qslog.c $(BASE_OBJECTS)
	cc $(CFLAGS) $(INCLUDES) $(BASE_OBJECTS) -o qslog qslog.c $(LIBS)
	strip qslog

qspng: qspng.c $(BASE_OBJECTS)
	cc $(CFLAGS) $(INCLUDES) $(BASE_OBJECTS) -o qspng qspng.c $(LIBS) -lpng
	strip qspng

qsrotate: qsrotate.c $(BASE_OBJECTS)
	cc $(CFLAGS) $(INCLUDES) $(BASE_OBJECTS) -o qsrotate qsrotate.c $(LIBS) -lz
	strip qsrotate

qscheck: qscheck.c $(BASE_OBJECTS)
	cc $(CFLAGS) $(INCLUDES) $(BASE_OBJECTS) -o qscheck qscheck.c $(LIBS)
	strip qscheck

qsfilter2: qsfilter2.c
	cc $(CFLAGS) $(INCLUDES) $(BASE_OBJECTS) -o qsfilter2 qsfilter2.c $(LIBS) -lcrypto
	strip qsfilter2

qssign: qssign.c
	cc $(CFLAGS) $(INCLUDES) $(BASE_OBJECTS) -o qssign qssign.c $(LIBS) -lcrypto
	strip qssign

qstail: qstail.c
	cc $(CFLAGS) $(INCLUDES) $(BASE_OBJECTS) -o qstail qstail.c $(LIBS)
	strip qstail

qsgrep: qsgrep.c
	cc $(CFLAGS) $(INCLUDES) $(BASE_OBJECTS) -o qsgrep qsgrep.c $(LIBS)
	strip qsgrep

qsexec: qsexec.c
	cc $(CFLAGS) $(INCLUDES) $(BASE_OBJECTS) -o qsexec qsexec.c $(LIBS)
	strip qsexec

clean:
	rm -f *.o qsfilter2 qslog qspng qsrotate qssign qstail qsgrep qsexec qscheck