File: Makefile.in

package info (click to toggle)
ulogd 0.97-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 476 kB
  • ctags: 379
  • sloc: ansic: 2,099; sh: 231; makefile: 155
file content (42 lines) | stat: -rw-r--r-- 1,153 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
41
42
#

include @top_srcdir@/Rules.make
CFLAGS+=-I@top_srcdir@/libipulog/include -I@top_srcdir@/conffile

SUBDIRS=conffile libipulog extensions doc

ifeq (x@MYSQLINCLUDES@,x)
else
SUBDIRS+=mysql
endif

#  Normally You should not need to change anything below

all: recurse ulogd

distrib:
	@for d in $(SUBDIRS); do if ! make -C $$d distrib; then exit 1; fi; done
	@make distclean

recurse: 
	@for d in $(SUBDIRS); do if ! make -C $$d; then exit 1; fi; done

ulogd: ulogd.c $(LIBIPULOG) ulogd.h conffile/conffile.o $(LIBIPULOG)/libipulog.a
	$(CC) $(CFLAGS) -rdynamic $(LIBS) $< conffile/conffile.o $(LIBIPULOG)/libipulog.a -o $@

clean:
#	rm -f ulogd *.o extensions/*.o extensions/*.so conffile/*.o
	rm -f ulogd ulogd.o
	@for d in $(SUBDIRS); do if ! make -C $$d $@; then exit 1; fi; done

distclean: clean
	@for d in $(SUBDIRS); do if ! make -C $$d $@; then exit 1; fi; done
	rm -f Makefile config.cache config.log config.status Rules.make

install: all
	@for d in $(SUBDIRS); do if ! make -C $$d $@; then exit 1; fi; done
	@INSTALL@ -m 755 ulogd $(DESTDIR)@sbindir@/ulogd
	@INSTALL@ -m 600 ulogd.conf $(DESTDIR)@sysconfdir@/ulogd.conf
	
doc:
	$(MAKE) -C $@