LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File Makefile.tools of Package dba-apache2-mod_qos-109 (Project home:csbuild:DBA)

CFLAGS=

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