aboutsummaryrefslogtreecommitdiffstats
path: root/filter/Makefile
blob: 04c6b33405387de9b5f846a9031552a9c67bd741 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

OBJS = filter-arg-types.lo filter-arg.lo filter-xml.lo filter-format.lo
SRCS = filter-arg-types.c filter-arg.c filter-xml.c filter-format.c

LIBFILTEROBJS = filter-sexp.lo
LIBFILTERSRCS = filter-sexp.c

LIBTOOL=sh ../libtool
#CC=insure gcc

CFLAGS = `gnome-config --cflags xml gnome gtk gtkhtml gnomeui` -g -I../camel -I .. -I../libibex
LDFLAGS = `gnome-config --libs xml gnome gtk gtkhtml gnomeui` ../camel/libcamel.la -lpthread

all: libfilter.la filter-driver filter-druid

filter-druid: $(OBJS) filter-druid.lo libfilter.la
    $(LIBTOOL) --mode link $(CC) $^ -o $@ $(LDFLAGS)

filter-driver: $(OBJS) filter-driver.lo libfilter.la
    $(LIBTOOL) --mode link $(CC) $^ -o $@ $(LDFLAGS)

libfilter.la: $(LIBFILTEROBJS)
    $(LIBTOOL) --mode link $(CC) -static $^ -o $@

%.lo: %.c
    $(LIBTOOL) --mode compile $(CC) $(CFLAGS) -c -o $@ $<

clean:
    -rm -rf *.o *.lo core .libs