summaryrefslogtreecommitdiff
path: root/src/libevent/Makefile (plain)
blob: 6f0a5edc5cd1a03911c333a6a11d47439b42ad10
1# Generated automatically from Makefile.in by configure.
2# $Id$
3#
4# Makefile for event-handling library
5#
6# Copyright 2002 Roaring Penguin Software Inc.
7#
8# This software may be distributed according to the terms of the GNU
9# General Public License, version 2 or (at your option) any later version.
10# LIC: GPL
11
12OBJS=event.o event_tcp.o hash.o event_sig.o
13SRCS=$(OBJS:.o=.c)
14HDRS=event.h event_tcp.h eventpriv.h hash.h
15CFLAGS=-g -O2 -Wall -Wstrict-prototypes -I.. $(DEFINES)
16AR=ar
17
18all: libevent.a
19
20libevent.a: $(OBJS)
21 rm -f libevent.a
22 $(AR) -cq libevent.a $(OBJS)
23 ranlib libevent.a
24
25event.o: event.c $(HDRS)
26 gcc $(CFLAGS) -c -o event.o event.c
27
28hash.o: hash.c $(HDRS)
29 gcc $(CFLAGS) -c -o hash.o hash.c
30
31event_sig.o: event_sig.c $(HDRS)
32 gcc $(CFLAGS) -c -o event_sig.o event_sig.c
33
34event_tcp.o: event_tcp.c $(HDRS)
35 gcc $(CFLAGS) -c -o event_tcp.o event_tcp.c
36
37clean: FORCE
38 rm -f *.a *.o *~
39
40FORCE:
41
42.phony: FORCE